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.
Wrote new blog post about whats new in rails 4 app directory
Heroku OAuth API with Sinatra
Do more with Heroku OAuth, and their API all running in Sinatra.
Vimscript And You!
Just wrote a article outlining how to TDD a Vim plugin with Vimrunner and Rspec. Vimscript and You!.
The Self-Pipe Trick Explained
This post explains the only safe way to handle Unix signals in the face of waiting on file descriptors (eg. sockets, pipes). This technique is used by awesome server software like Unicorn, Passenger, Foreman, and non-Ruby projects like nginx. Give it a read on RubySource.
Visitor pattern and double dispatch in ruby
Wrote a blog on visitor pattern and double dispatch in ruby .
Actually good content detection with LanguageFilter
I just created the language_filter gem, which detects and optionally filters multiple categories of language. I’ve seen a few gems that already try to offer this - most notably tjackiw’s obscenity and intridea’s profanity_filter. This gem is based on the former, but is completely refactored and offers many improvements, including the creation multiple, independent filters; simpler configuration; a diverse and growing set of pre-packaged matchlists (for not only profanity, but also sexual, violent, and hateful content); more robust whitelist handling; and much more.
Lita: A multi-service chat bot with extendable behavior
Lita is a chat bot written in Ruby with persistent storage provided by Redis. It can connect to any chat service (given that there is an adapter available for it) and can have new behavior added via handlers. The plugin system is managed with regular RubyGems and Bundler. [more inside]
RSpec 2.14 Released
RSpec 2.14 has been released. Highlights include improvements to the profiler, a --warnings flag, shared example groups scoped by context, a new message expectation syntax (expect(foo).to receive(:bar)), and test spies (expect(foo).to have_received(:bar)).
CouchDB Sinatra REST bare-metal call test application
Some months ago I was involved in configuring an API to use with CouchDB. In the process of this, I created a test application using Sinatra to utilize the various CouchDB REST calls. This is that application. [more inside]
ess and ess-rails: generate and parse feeds in the new Event Syndication Standard
I’ve just released the version 1.0 of the ess and rails-ess gems. They make it easy to build and parse feeds in the new ESS format. [more inside]
Rapidfire - A gem to manage surveys in your rails app.
I just launched rapidfire gem. This gem helps you in managing surveys, and letting users take those surveys.
How to declutter your lib directory
A short recipe for tidying your lib up
Package your Ruby-based tool the safe and easy way
Ruby is my everyday programming language to develop web applications. But it is also a powerful scripting language that comes with all “batteries included” for interacting with my Unix system. It is especially suited to write new command-line utilities. For instance, I often use guard to trigger some automatic processing on my files. Read more:
Exception Notification v4.0.0 has just been released!
Rails 4 compatibility, Resque & Sidekiq support, and many more features! Get it while it’s still hot! See Changelog for more info
RailsPresenter: a presentation layer for Rails apps (alternative to Draper)
I just launched RailsPresenter, it gives you a nice presentation layer for your Rails apps, it was extracted from a big production app where it really helped to clean up complex views, here I explain why it could be a good alternative to Draper.
Routastic: A Rails routes editor
I just launched Routastic. What is Routastic? It serves as an interactive Rails routes editor. Simply, I got tired of the pattern of modifying config/routes.rb, then running rake routes and grepping for some result. This is completely inefficient. My inspiration came from the beautiful Rubular.com and its interactive regular expression building.
jquery_mockjax_rails - integrate jQuery Mockjax with RSpec/Capybara
I have just released jquery_mockjax_rails gem to help stubbing out javascript requests to 3rd APIs in a super easy manner. Hope to receive your feedbacks.
Is the Puma vs Phusion Passenger comparison biased?
Yesterday, Phusion published a Puma vs Phusion Passenger comparison. But is the comparison biased?
XML/JSON parsing speed of light trick
My friend just posted a note with an useful XML/JSON parsing trick - take a look;)
Puma vs Phusion Passenger
A comparison between Puma and Phusion Passenger, with pros and cons for each: Puma vs Passenger on the Github wiki
Wherelizer: Update your deprecated ActiveRecord queries
A tool to help you conquer the mountain of ActiveRecord deprecation warnings when upgrading an old project to Rails 4: The Wherelizer
Upgrading to Rails 4.0 from Rails 3.2 – Test case – Part II (assets, models)
Second part of my tutorial on how to update from Rails 3.2 to Rails 4.0. You can check it out here: Upgrading to Rails 4.0 from Rails 3.2 – Test case – Part II (assets, models)
Flying Passenger
The Phusion Passenger application server introduced a new advanced mode: Flying Passenger
Launched: Learn to secure your Rails app step-by-step
Code Climate just launched a one-month, free email course on how to secure Rails applications step-by-step.