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.
Ruby Fibers - MetaCasts.tv
Introduced in Ruby 1.9, Fibers, are a lightweight concurrency library that puts the scheduling of work into the hands of the developer, and not the VM. As we look into Fibers we will also touch about the Enumerable module and even a bit of Ruby 2.0 goodness. [more inside]
Should you upgrade Rails from 3.2.12 to 3.2.13?
If you wonder if you should upgrade or not, here’s a sum-up of the last security issues fixed in rails 3.2.13 :
Bootstrap Tag Autocomplete javascript library
Just launched a bootstrap plugin to autocomplete tags for contenteditable div elements. It works in the same way tagging people on Facebook, Twitter or Sandglaz works.
BasicPresenter
I just launched BasicPresenter, the most simplest presenter pattern implementation in town (< 100 lines of code). Confortable to use, framework agnostic, works with Rails, Padrino or simply Sinatra. Give it a spin in your next project!
Padrino Web Framework 0.11.0: Padrino Lives!
We have just released Padrino 0.11.0 after 9 months of active development and the work of dozens of contributors! Padrino is a powerful agnostic ruby web framework built directly on top of Sinatra. This release includes a totally redesigned admin dashboard, upgrades to the latest Sinatra, CSRF and SafeBuffer support, Gemified and namespaced apps out of the box, and quite a bit more. Read the details in our blog post and in our changelog.
parallel_tests + zeus for the first time
Weekend project: Speed up your parallel_tests with zeus using zeus-parallel_tests
Immutability in Ruby Part 1: Data Structures
I just mused about immutable objects in Ruby, and why and how one could use them.
[ANN] jsonpp 1.1.0
gem install jsonpp [more inside]
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.
Flame graphs in Ruby MiniProfiler
I just launched Flame graph support for Mini Profiler
Awesome development VPS
If you have been looking for a small VPS to try stuff: Chunkhost is your solution!