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.
Using ActiveRestClient to Access an API
Recently Which? launched its first piece of open source software, a Ruby Gem to easily interact with REST APIs. There’s pretty full documentation on its GitHub page, but I wanted to write a bit more of a real world introduction to using ActiveRestClient to access an API.
Tearing Down Capybara Tests of AJAX Pages
Have you hit issues reliably tearing down Capybara tests of pages that make AJAX requests? We wrote a post on how we used Rack middleware to help solve this problem.
Elasticsearch integration for ActiveModel and Rails
The elasticsearch-model and elasticsearch-rails gems for ActiveModel/Record and Rails integration with Elasticsearch have been released. Read more at github.com/elasticsearch/elasticsearch-rails.
REVIEW AND RE-FACTORING- Its all about Finding Opportunities
I just posted a blog on refactoring… Finding Opportunities
world.db, football.db. beer.db - Pre-Built SQLite Databases for Download
Hello, For your convenience I’ve pre-built w/ the (sportdb, beerdb) Ruby gems some SQLite databases using the open public domain data sets. You’ll find the releases on GitHub. world.db (~ 0.5 Megs), football.db (~ 1.3 Megs), beer.db (~ 1 Meg). Cheers. PS: A new database is in the works. Welcome the wine.db. Prost.
Better Nesting in API Documents With Representable 1.7.6
Representable helps you rendering and parsing API documents. Mapping deeply nested documents to flat objects has been a bit of a pain. A new DSL method simplifies that in an enjoyable way.
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.