The Ruby and Rails community linklog
Made a library? Written a blog post? Found a useful tutorial? Share it with the Ruby community here or just enjoy what everyone else has found!
Submit a post
Post Preview
Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.
Build a Calendar with (Functional) Ruby
In the start of a multi-part series, we will build a calendar library to later be rendered, styled, and then acted upon via coffeescript to create appointments, all while keeping our Ruby immutable and functional! [more inside]
Object-to-Object Transformations with Representable
The new Representable 1.2.6 release allows you to directly transform objects to objects, making it simple and fast to map deeply nested object graphs to your desired format. My 3-minutes blog post explains how.
RailsConf 2015 talks that you should watch
Over the weekend I watched a lot of talks from RailsConf 2015 and these are my favourites (so far). You can check them out here.
Idiosyncratic Ruby: Episode 1-4
Idiosyncratic Ruby is a new resource about weird stuff in Ruby. There will be a new blog post every day in May! The first days covered the following:
Best Ruby resources worth following.
Offline over the weekend? [more inside]
Integrate Rubocop in your workflow
Let Rubocop help you to enforce your styleguide:
time_boots.gem - simple time steps
I’ve recently published the gem for tasks like “round time to edge of day”, “advance time by 4 weeks”, “generate ‘each hour’ sequence” and so on. Small, no dependencies, no monkey-patching.
When APIs Change - A story of a rubygem, tests, and vcr
When APIs change you have to deal with it. In this episode of rubycasts.io we will see that scenario, how to fix it, and how to test for it. We will also discuss fast tests vs slow tests and using VCR to records conversations with remote resources. [more inside]
pluck_to_hash gem
A simple gem, adds pluck_to_hash method to ActiveRecord.. returns hash instead of array
Awesome ActiveRecord (Goodies, Libraries, Tools, Extensions, Guides, etc.) List
Hello, I’ve started yet another awesome collection on GitHub over at the Planet Ruby. What’s news? The awesome-activerecord repo collects ActiveRecord goodies, libraries, tools, extensions, guides, etc. Anything missing? Contributions welcome. Cheers.
Private Module Methods in Ruby
After years of not finding this solution; it turns out it’s really quite simple.
Having fun with opal and sprockets
Blog post about setting up an environment to play with opal.
Mutant and CI
Mutation testing is another form of checking the test coverage. As such it makes sense to put it as part of our Continuous Delivery process. In this blog post I’ll show you how we started using mutant together with TravisCI in the RailsEventStore project.
Ruby, recursion and AI
Find out all possible chess knights movements using minimax algorithm:
Ruby on Rails Podcast 189: @dhh RailsConf 2015 Keynote Discussion
Eric Steele joins Sean Devine to discuss @dhh’s RailsConf 2015 keynote on episode 189 of the Ruby on Rails Podcast on 5by5.
[CODE & TUTORIAL] How to build an SMS Voting System with Rails, Sinch & Chartist
Full code and tutorial. Build a simple SMS voting system that you can use at events, meetups, and more. Uses Sinch SMS to receive responses, Ruby for the backend, and Chartist to display the results as a nice looking graph. Try the tutorial here.
Effective Rails Development with Vim
Want to setup Vim for effective Rails development, here you go. Check this tutorial I wrote on SitePoint, from this link.
Treating ActiveRecord's interface as private using FigLeaf
The fig-leaf gem from Avdi Grimm’s Objects causes ActiveRecord’s methods to be treated as a private interface. In this post, I apply this approach to a production Rails app and explain its benefits, as well as some of the challenges encountered.
Handling RabbitMQ publisher failures
Example of handling RabbitMQ publisher failures for your publishing app, an example, when you experience a connection problem because broker(RabbitMQ) for any reason is down, you need to handle this case because the bunny is synchronous and your app may get stuck.
Send and receive Tweets using SMS
A 3 part blog series on setting up, sending and receiving Tweets by SMS using Sinatra, EventMachine, Twilio and the Twitter REST and streaming API.
Live Stream — Code Dojo: To-Do List
We’re live streaming this weeks Made Tech Code Dojo on YouTube
Solving the FizzBuzz test without a single If statement
Ruby hashes are awesome! Here’s how to do FizzBuzz without a single If statement. Declarative style programming saves of the day :)
Eigindir
One more virtus-inspired library with minimal API for PORO attributes’ definition and coersion.
Creating custom Minitest reporters
In this article I show you how to extend Minitest’s CLI and how to create custom reporters, with two practical examples. Bonus: Ever wanted a really useful reporter for Minitest, pretty much like RSpec’s? Here it is!.
Performance comparison between Digital Ocean and Shelly Cloud
A few weeks ago, I published the post, a comparison of two platforms – Heroku and Shelly Cloud. Today I would like to share my results of a similar test: Digital Ocean against Shelly Cloud. [more inside]