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.
Pronto now supports Reek!
Pronto reeks! No, wait, that’s not right… Actually, Pronto performs quick automated code reviews with the help of various analysis tools (RuboCop, Brakeman, Flay, etc.) by checking only the introduced changes. And now it detects various code smells with the help of Reek. Check it out: Pronto and pronto-reek.
JSON API with rails-api and active_model_serializers
I described two great gems: rails-api and active_model_serializers which can be useful for building JSON API. JSON API with rails-api and active_model_serializers
Introducing "tedium" gem
The great folks at Thoughtbot just announced the release of fomulaic, a smart and DRY way to fill in forms with Capybara. [more inside]
Chewy - ElasticSearch Rails integration.
Hey, guys! Here we launched a new ElasticSearch Rails integration gem. And this is the introductory article.
FiniteMachine second release
The finite_machine v0.2.0 brings tons of improvements, including support for custom error handlers, generic state and event listeners and easy integration with other object through target helper.
Roar Got Better Http Support!
Roar 0.12.3 comes with HTTPS and basic auth support for client representers, as well as a simpler API for dealing with HTTP - read about it here.
Inch: v0.3.1 released
This minor release brings performance enhancements and bugfixes to Inch. [more inside]
I DRY-ed Up My Code and Now It's Hard to Work With. What Happened?
“Don’t Repeat Yourself” is one of the most valuable ideas from one of the most valuable books I read during my software development career. If you can refactor away duplicate code, you will produce more general, more stable code. When you start DRY-ing up your code, though, you’ll start to run into some problems: code that doesn’t handle edge cases well, code that’s too generalized and hard to read, or code that’s hard to find. If refactoring toward DRYness doesn’t work all the time, how do you know when you should refactor?
Tips for building a CLI
We’re used to building web UIs and even mobile UIs, but what is required to make a CLI? Ninefold have just released their CLI gem, and we’ve taken some time to document some of the tricks we used to build it.
The great RubyMotion debate - snake_case vs cameCase
Earlier today I posted a link to an article on Twitter from The Frontier Group, which was talking about their experiences with RubyMotion, great article, but when I tweeted the link, it sparked some discussions between me and other people, and other groups of people which those discussions then got brought up with me. [more inside]
Chef-Rundeck 2.0 Released!
Just released chef-rundeck 2.0.0 with Rundeck 2.0 and Windows support via WimRM.
Make Remote Files Local with Ruby Tempfile
My buddy Lawson just posted about working with remote files using the Tempfile library.
stately 0.3.2 released
Stately is an elegant, extremely lightweight, and simple DSL for creating state machines. It’s pure Ruby and works in Rails, Sinatra, or any other framework. This latest release fixes a bug with stately interacting with ActiveRecord.
Command Line Reporter 3.3.1 Released
This release fixes an issue when encoding a table with standard ascii or utf8 characters. Check out the wiki to see examples of nicely formatted tables. As always The gem is available on rubygems.org with source on github. For those not familiar with “the reporter”, it provides a ruby DSL for writing reports with built in features for progress reporting and table formatting. It is very handy for system level and data reporting scripts.
arnoldc.rb : A Ruby implementation of the Arnold Schwarzenegger-based programming language
I spent a couple of hours reimplementing the Arnold Schwarzenegger based programming language to run on any Ruby VM and here’s the result: arnoldc.rb.
Reflecting on RubyMotion Experiences at The Frontier Group
Reflecting on RubyMotion Experiences at The Frontier Group – Part 1 in a series of Rails to RubyMotion tips
OmniAuth example app for Rails 4.1
The Rails and OmniAuth starter app is a new Rails 4.1 example from the RailsApps project, with configuration using the new config/secrets.yml file, and a choice of Bootstrap or Foundation front-end frameworks.
MagmaConf 2014
MagmaConf 2014</a href> takes place this June 4, 5 and 6 in beautiful Manzanillo, Mexico; and our Early Bird discount tickets are now available for purchase here</a href>! Don’t miss our on your chance to attend Mexico’s premier web development conference. We’ve got some great speakers lined up including Sandi Metz, Desi McAdam, and Fred George (check out the full line up here</a href>). We’ve also got your amazing beach side room all made up just for you, so make sure to book your room at Magma Village</a href> before it’s too late! Finally, make sure to stay up-to-date on all things MagmaConf (including special discounts!) by subscribing to our newsletter</a href>.
Lita 3.0 released
Version 3.0 of Lita, the chat bot built with Ruby, has been released. This new version contains many new features and improvements. Take a look at the release announcement for details.
acts_as_thermometer : providing a simple resource for heat mapping
I just launched a new Gem, thermometer, as a way to provide quick heat mapping on ActiveRecord models and associations. As this is my first Gem, would love any feedback! Tested with ruby 1.9.3, 2.0.0, Rails 4. Cheers, Nick
Rails app for kids to practice Maths
A rails app I did some time ago for children to practice math sums. Ad free! maths practice..
Objective-C isn't what you think it is (if you think like a Rubyist)
Ruby and Objective-C look like opposites—one is dynamic, the other’s static; one is interpreted and the other’s compiled—but really they are cut from the same cloth. Here’s a look at Objective-C from a Rubyist’s perspective.
Testing complex conditionals
Testing complex conditionals - how to simplify nested contexts, and reduce overall tests paths.