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.
Faraday - Using Backup Host for Remote Requests
Nowadays almost every Rails application interact with the remote service or API. The problem is that you can’t fully trust those services and you forced to add a lot of test coverage and exception handling for this part of code. Once i worked with the API that had mirror server for case when the main one is unavailable. I write a middleware for Faraday, which will use backup host(provided by user) if the original one is unresponsive. [more inside]
A comprehensive guide to install Ruby & Rails on your PC with screencast
This blog on how to install Ruby & Rails from scratch at Codelearn should be a good resource as it covers all OSes - Windows, Linux & Mac.
Are You a Stable or a Volatile? Recap of Michael Lopp's RailsConf Talk
At RailsConf, Michael Lopp broke down two spectrums of personalities, stables and volatiles, and how these personalities play out in the application development environment. SmartLogic’s Matt recaps the stables and volatiles talk here if you missed it at RailsConf. Interesting to think about how this can help you work better with the people on your team.
Creating a Custom Rspec Generator
I was having trouble finding a good resource this, so I blogged about how I created a custom Rspec generator for one of my gems.
Attrio 0.4 released
Today we released Attrio-0.4 (attributes manager for plain old Ruby objects). In this release several issues were fixed but the most significant change is that attributes defined with Attrio are inheritable. Also all class level variables were removed. [more inside]
Performance optimization with pry-debugger
I just wrote in the Wimdu Engineering Blog about performance optimization with pry-debugger :)
Casting: adding behavior to objects without using extend
Most software developers tend to write code where objects are given too many responsibilities. Code with bloated objects is more difficult to test, to understand and to maintain in the long run. To keep the code small and focused, different strategies can be used to extract behavior. A new gem, “casting”, claims to bring the benefits of both mix-ins and delegation, but without their drawbacks. Read more:
chruby 0.3.6 and ruby-install 0.2.0 released!
Released chruby 0.3.6 and ruby-install 0.2.0. chruby is an ultra-minimal Ruby switcher (~90 LoC), that does one thing and one thing only, switches Rubies. ruby-install downloads, compiles and installs any version of Ruby, JRuby, Rubinius or MagLev. ruby-install supports automatically installing into ~/.rubies / /opt/rubies and can install additional dependencies using your system’s package manager.
I18n tasks to introspect translations
I just shared i18n-tasks. Rails I18n tasks to find missing / unused translations and more. Works with slim / coffee / haml etc. Provides these tasks:
Connecting rails project with multiple databases.
I just posted this article in my blog
Last chance to sponsor your cat for a good cause ^_^
Earlier this year we announced a sponsorship program for Burlington Ruby Conference where your cat (or dog, or guinea pig) can be a sponsor. 25% of the proceeds go toward our local humane society, the other 75% will go toward conference scholarships for women. As an incentive, we are offering two sponsorship tiers: As a “Middleclass Cat” your pet will be featured on our website, and as an “Aristocat” they will also be featured on the speaker videos. In order to get the donations and scholarship program wrapped up ahead of the conference, we will be closing the sponsorship form at the end of June. For details visit http://burlingtonruby.com/cat.html
Ruby implementation of Melkman's algorithm with animation
Melkman’s algorithm comes to the rescue when you need to find convex hull of a simple polygonal chain. Checkout blog post or Github repo.
Omnibus Tutorial: Package a standalone Ruby gem
Now, thanks to Omnibus, there’s an easy way to distribute your Ruby gems as standalone, full-stack programs. This means folks without Ruby can have as smooth of an experience with your hip new gem as a hardened Rubyist.
New Ruby ORM
I just released SORM - Zero-dependency pure Ruby ORM.
The pesky problem of freezing thin servers
I’ve spent two days debugging this problem and would have never expected the bug to originate from a standard library. Read all about the pesky problem of freezing thin servers.
I have wrote a blogpost for Must Have Ge...
I have wrote a blogpost for Must Have Gems for Development Machine in Ruby on Rails that helps to make things faster or sometimes bring simplicity to the development process
Come talk at BohConf 2013, or just come--Baltimore, 7-19
Hey, we’re holding BohConf 2013 in Baltimore on July 19th. Submit a talk for BohConf, check out BohConf Ignite on the 18th, or just come get your NerdyBoh on. Bonus: BohConf is running the same weekend as ArtScape, a gigantic art festival in Baltimore. Details on submitting a talk or buying an (affordable) ticket here.
The launch of Nusii - SaaS application for creating client proposals
I just launched a SaaS application for creating client proposals.
How we saved over $3.5k a year for our newly launched rails app
We just launched follower.io and talked about how we saved $3.5k a year on external services we needed to launch our rails app.
Learn More About India’s Exciting RubyConfIndia 2013
Prakash Murthy talks about India’s only Ruby conference scheduled for 22 and 23 June 2013. He is hoping to make more friends, learn some new stuff, make some impact, and have a lot of fun at this conference.
Exception Notification v4.0.0.rc1 has just been released!
Do a gem install exception_notification –pre to try it out and give feedback. Final version coming out next week. Lots of features added, see changelog for more details
Nginx treasures to be used with Rails application
From DevOps point of view some functionality should be moved outside an application backe-end, say to front-end layer to just make things easier. I’d like to share simple solutions we use on production. [more inside]
Slide Show (S9) 2.0.0 Update - Command Suite Added - build, install, ls, new, etc.
What’s new? The slideshow gem now sports a git or gem like command suite. For example, to install the impress.js presentation pack issue $ slideshow install impress.js or to
list all installed template packs issue $ slideshow list or $ slideshow ls to get a quick starter sample issue $ slideshow new and finally to build your slideshow issue $ slideshow build welcome.text More info. Cheers.
Does the GIL Make Your Ruby Code Thread-Safe?
This is an important question for anyone using multiple threads on MRI. In the last part of my series on the GIL, I try to dispel this common misconception. Find out for yourself.