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.
Webinar: Ansible with Ruby on Rails
Want to learn more about using Ansible to manage your Ruby or Rails servers? Sign up for this webinar. Ansible is a server configuration management tool like Chef or Puppet.
Viewmaster - The layout version switcher for Rails.
At http://preyproject.com We just opensourced Viewmaster, gem that helps handling the transition for multiple layouts. The common pattern to minimize the impact on the users when you launch a new version of your app is to allow them to transition back and forth between versions. This gem provides said functionality, allowing you to easily implement the transition between your from current layout to (one or many) new layout versions.
Performance Benchmark On Ruby's Dynamic Method
As a dynamic programming language, ruby parses and compiles your code at runtime. This gives you the ability to call methods dynamically, define methods at runtime or even handle function calls that doesn’t even exist. But how about the performance of these technicals? Here is some benchmarks
Cron for GitHub
Build periodically with Cron for GitHub App
The difference between back-references and global variables in Ruby regexp
Use back-references for processing strings within the gsub method call. Choose global variables when using a block instead of a replacement argument, or if the regexp call is before manipulating with the result. [more inside]
Use and abuse of Ruby on Rails environments
stop using separate Rails environment to represent server stages like dev.rb, qa.rb production.rb that have exactly the same options. Here’s my explanation:
RSpec matchers for controller action filters
I just published my first gem for testing execution of before/around/after filters with RSpec.
Premium Ruby on Rails Screencasts Launching Soon - 50% lifetime discount
Hey everyone! Some of you may know my other screencast series, MotionInMotion (RubyMotion screencast), which has had great success the past 1.5 years. Time to bring that success to Ruby on Rails! FluffyTuts will be launching late-March with the new series RailsInMotion. To get a 50% lifetime discount head on over to the email launch list: [more inside]
InfraRuby 3.6 statically typed Ruby compiler released!
InfraRuby is a compiler and runtime for statically typed Ruby.
Track micro-services messages uniformly
Utracker logs the interactions between your micro-services in one place with an uniform format. Check the example and send me back some feedback if your interested. [more inside]
Gallerist
Gallerist is a web application to browse libraries of Apple’s Photos app. It is built on top of Sinatra. –
Configuration With a Singleton Instance
Maintain a clean configuration for your module and have constants that are truly constant.
Understanding standard streams and redirection
Understanding standard streams and redirection with Ruby.
Rubocop – Your personal code reviewer
Rubocop is a static analysis tool that will help you keep your code void of a number of style and potential error issues. Check out the full blog post: Rubocop – Your personal code reviewer
From Ruby to C#
Wanted to share my thoughts on being a while in C# world as a Rubyist
Rails 4 performance tips
Your application grows and gets slower? In this performance blog post I introduce you to some gems and tips that help you speed up your applications.
search_cop v1.0.6 is out
This is a bug fix release. It fixes a PostgreSQL date out of range exception. Check out search_cop to get search engine like fulltext query support for ActiveRecord.
Shopify Rate Limits with Ruby and Sidekiq
Learn how to deal with shopify’s rate limits in a multithreaded environment - Shopify Rate Limits, Sidekiq, and You
Running a Rails app on Docker using the Passenger image
Setting up a Rails development environment using Docker Compose, boot2docker and the Passenger image.
Algorithms Every Programmer Should Know: Reservoir Sampling
I wrote and annotated a small RubyGem to explain the math behind reservoir sampling. [more inside]
Numeric Bases and Defining Your Own
Explaining numeric bases, positional notation, and implementing your own number bases.
Full Stack Fest Barcelona CFP open
I’m one of the organizers of Full Stack Fest, a conference born from joining the quite successful Baruco and FutureJS. It takes place in the wonderful city of Barcelona this September 1-5. We’re committed to making the conference as diverse as possible, and looking at the previous edition’s attendance statistics, we feel like we can do better. We definitely strive to have a speaker roster and attendee profile as diverse as possible, as this makes for a much richer experience and higher quality. Tickets will be on sale starting this next Monday at 10:00 CEST, and we already have a call for papers and workshops running (with blind selection - will be over on May the 1st). Send in your proposals and stay tuned for Monday!
Gem of the Week #10 - annotate gem - annotate your ActiveRecord models
Hello, over at the Planet Ruby the Gem of the Week series continues with #10 - annotate that lets you annotate your ActiveRecord models with comments about your table structure (schema information). Full article. Cheers.
Testing Ruby Mixins in Isolation
Testing mixin Modules doesn’t have to involve copying-and-pasting tests from one file to another or shared examples. You can write simple isolated tests for your mixins using this easy to understand technique.