RubyFlow The Ruby and Rails community linklog


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

You can use basic HTML markup (e.g. <a>) or Markdown.
Note that your post may be edited to suit the format of the site.

As you are not logged in, you will be
directed via GitHub to signup or sign in

Post Preview

Note: Only the first pargraph is shown on the front page and overly long paragraphs may be broken up.

  Last Friday

Put your tests to good use, Refactor with confidence

Testing your code well is hard, and it can be easy to neglect. You’ll be glad you didn’t though when you have to change the implementation of a feature without your users noticing anything, except maybe a performance bump. Let’s go through how we can use and modify existing tests to allow a change in code that you can be confident will work when you get to production.

Ruby Loops

Newbie in Ruby? Me too, let’s learn together? [more inside]

DotenvSekrets gem

I’ve just released a new gem named DotenvSekrets that joins the power of dotenv and sekrets in order to allow encrypted env files. [more inside]

Measuring rails routes test coverage

In a big project 100% code coverage is too expensive (if even possible). But there’re times you want to make sure that at least all your important routes are hit by the test suite. routes_coverage gem generates nice html simplecov-style reports on that.

How we build JSON APIs with Rails

A couple of months ago, we started a new project and decided to use Ember on the front and Rails as an API backend. Early in development, we found ourselves repeating similar code in multiple places in our controllers, so we decided to roll our own solution to the problem. Check out our blog post for more details.

Ruby gem for managing proxies

proxy_fetcher gem can help your Ruby application to fetch free proxy lists from the HideMyAss service, validate them, and use for making some HTTP(S) requests.

The Ruby Module Builder Pattern

Did you know that Ruby has configurable modules? Just subclass the Module class, dynamically define some methods in an initializer, and include an instance of the resulting module in another class. I call this thing a “Module Builder” and I just wrote a long blog post explaining what it’s all about. Ruby’s had this secret up its sleeve for all these years, and most of us never knew about it.

Loading older posts