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.
Class#to_proc
Just stumbled upon this pattern in my code, googled it and found a nice blog post by Dan Manges explaining the idea. What do you think?
Finding redundant CSS rules with csscss
Ever wanted to find out right away how many repeated rules you have in your CSS stylesheets? Well now you can with csscss. Just run it against a series of stylesheets and it will report how much duplication is going on. [more inside]
Complete Stripe payment integration in Rails
I just posted stripe integration in rails on my blog.
Using ElasticSearch with Ruby
We just published the slides from the using ElasticSearch with Ruby (introductory) talk at Barcelona on Rails.
Speed up Travis CI builds by caching the bundle to S3
When we run our build suites on Travis Pro the bundling step takes the most time by a wide margin (aside from the test script itself). [more inside]
Ruby delegate.rb secrets
You may see quite a few uses for SimpleDelegator but the delegate library has a lot more to it than just helping you manage method_missing. Read more about it at Ruby delegate.rb secrets
Keyword Arguments in Ruby 2.0
I’m putting together a Ruby 2.0 talk for a local Ruby meetup group and I thought it wouldn’t hurt to write down what I have learned about Keyword Arguments which is a new feature in Ruby 2.0.
Tabs - a gem for keeping tabs on things.
Check out tabs, a redis-based metric tracker for keeping tabs on things. It supports counters, value, and task-based metrics. It was extracted from a product we’re working on here at DevMynd and I’d love feedback on the features and design.
Radix 2.2.0 - 100% Documented
Good documentation is so under-addressed by most developers that we really have to roll out the bright lights when someone comes along and takes up the time consuming mantle of documenting an API in complete detail. This is exactly what happened with Radix this last month. A coder going by the unassuming handle, douglascodes, announced his desire to document Radix and proceeded to do so until YARD pronounced 100% completeness. Hey, we think that is worth of a whole version bump and a big shout-out for Douglas. Thank you, Douglas!
Automatic image sharpening and blurring in the cloud
This blog post describes how to automatically sharpen images, blur images and blur only detected faces in photos. Image manipulation is performed seamlessly in the cloud by Cloudinary. Ruby on Rails sample integration code is included.
Home automation with Ruby using the LightwaveRF Wifi Link box
I recently got to play with the LightwaveRF Wifi Link box a home automation device to control lightbulbs, sockets etc. In this blog post I describe how you can use Ruby and UDP to use it to control the devices in your house.
Customize Your IRB
I just published a new article on Rake Routes: Customize Your IRB. I show some neat gems to automatically load into your IRB and a few nifty tricks (e.g. “awesome”.interesting_methods) to make your REPL sessions more fun. I also show how to add a “.railsrc” file that adds further customization when running the Rails console.
Datamappify - now supports mapping attributes to different ORMs!
Right now there’s providers for ActiveRecord and Sequel. But imagine having support for Redis and even remote web services in the future. Domain logic just got a lot tidier. :) [more inside]
DJ Mon - Monitoring for Delayed Jobs
DJ Mon is a simple Rails engine to monitor delayed jobs.
Awesome development VPS
If you have been looking for a small VPS to try stuff: Chunkhost is your solution!
xpool v0.9.0 is out
xpool is a lightweight process pool. This release(v0.9.0) includes a lot of changes, including new features & much improved performance.
RubyBeats launched
We just launched RubyBeats. It’s a Tweets aggregator for Ruby. Hope you like it like we do!
ichannel v5.1.1.4 is out
ichannel simplifies interprocess communication by providing a bi-directional channel that can be used to transport ruby objects between processes on the same machine. This release(v5.1.1.4) was focused on improving the documentation and usage examples which weren’t that good in previous releases.
rubygems-openpgp 0.6.0 released
I just released the latest version of ruybgems-openpgp. It allows you to digitally sign gems via OpenPGP.
morris-rails - Morris.js for the Rails 3 Asset Pipeline
morris-rails adds morris.js to the Rails 3 asset pipeline. Check it out!
Scorched: Sinatra-inspired web application framework
I’d like to announce a new project I’ve been working on that’s recently been released, Scorched. It’s a thoughtful redesign of the light-weight web application framework, Sinatra, intended to be even lighter and more generic, whilst introducing a couple of new concepts, the pièce de résistance being the inheritable, nestable, Controller. Looking for some early adopters to provide feedback before releasing a v1.0. [more inside]
[Experimental] Repository Pattern on top of ActiveRecord
Over the past few days I’ve started experimenting with the idea of implementing the repository pattern on top of ActiveRecord (yes, it sounds scary). The motivation came after we were about to kick start a relatively large scale system. It would be great to retain the powerfulness of ActiveRecord as well as making our app easier to maintain and test. It is basically a compromise, a stop gap, if you will. [more inside]
Send Resque exceptions via exception_notification mails
resque_exception_notification is gem to report Resque errors via the exception_notification gem for Rails.