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 frame_binding for great evil
After a discussion with a coworker, I decided to see if it was possible to extend Symbol#to_proc to invoke local methods (only for fun!). I discovered frame_binding from Ruby 2.0’s RubyVM::DebugInspector while hacking something together.
Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx Part 2
I just launched the second part Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx Part 2. Please take a look if you like.
5 developers-friendly (or not) European gateways
We recently had to test most of the European developer friendly gateway, so here are some names and what we think about them on our blog.
Cut average response time by three quarters using Redis
Shortly after launching my site using Sinatra and hosted on Heroku I was looking for ways to improve the performance. I looked through the add-on services Heroku offered and found Redis-to-go had a nice looking free tier. So I went ahead and implemented caching with Redis. Here’s the results: [more inside]
Afraid of the big nasty gem?
A malicious gem could do pretty much everything on the environment that runs its code, from stealing critical data to taking control over the entire operating system. It may only take minutes for the malicious software to access poorly protected files or to exploit its way up, from running as restricted user to escalating to a privileged user. Read More
Wiselinks 0.6
Wiselinks, a widely used alternative to PJAX and Turbolinks, got 0.6 release on last weekend. [more inside]
Pearl: DigitalOcean command line tool
I just updated Pearl. You can now rename droplets, transfer images to other regions and add ssh keys.
Mousetrap-rails gem now compatible with Rails 4 and turbolinks
I’ve just released Mousetrap-rails v0.0.10 (gem for handling keyboard shortcuts in web apps) which is now compatible with Rails 4 and works with Turbolinks gem.
Command line tool for GitHub API
I’ve just released major upgrade to the GitHub CLI which provides refined interface, more commands and better configuration.
Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx
I just launched the first part of my new tutorial Build Your Own Real Estate Listing Service with Ruby on Rails and Sphinx. Take a look if you like.
How should Authority support view caching in Rails 4?
How should the Authority gem support Rails 4’s new view caching approach? I’ve just opened a Github issue on the project and would love to get some input from the community, especially those already using the two together.
Announcing RubyAudit - Protect your apps from Gem vulnerabilities
I just announced RubyAudit. RubyAudit will alert you when a vulnerability is found in Gems your app uses.
Bringing Continuous Deployment to everyone
Continuous Deployment can be incorporated into every company. We held a meetup and talked to Etsy, GrabCAD and insightsquared how they did it. [more inside]
Bundler.unload!
I just released gem bundler-unload an extension for Bundler allowing to unload bundler back to bundlerless state. The code was extracted from rubygems-bundler and is used now as dependency.
New gem for asynchronous content loading
I just launched kent - gem for asynchronous content loading.
RSpec Shoulda Matcher Model Extras
Learn about some model matchers you might not already know about when using shoulda_matchers with RSpec.
Ruby on Rails 15 minute blog tutorial series
reInteractive Developer Leonard Garvey has put together a set of step-by-step articles to help newbies get introduced to Ruby on Rails. reInteractive have used these articles as part of their InstallFest initiative, with 35 participants already set-up and started, and a goal to reach 200 people by the end of the year.
Using Pow's default app to dynamically list/link your other Pow apps.
If you use Pow to manage your Rails apps and you have a lot of apps, you might find this useful. It’s a default app that lists/links to your other apps so you don’t have to remember their names.
So what is “binding.pry” exactly?
The very first feature that you learn about Pry is undoubtedly “binding.pry”. You put it here, there and everywhere; you’re happier than you’ve ever been before. In simple words: “binding.pry” makes your life a lot easier. But, have you ever wondered what “binding.pry” is?
Is MonoLogger safe?
MonoLogger is a “lock-free logger for Ruby 2.0”. It’s actually the exact same as Ruby’s Logger, minus the lock. I wasn’t sure if this was safe, so I did some research. Turns out MonoLogger does the right things to ensure that log messages aren’t interleaved even in the face of multiple threads. Warning: you might learn a thing or two about working with Unix file descriptors!
Temporarily add behavior to objects
The ability to add behavior to an object for a short time can make for some very flexible structures. Casting is a new gem that allows you to run methods from a module at runtime without altering the object’s superclass structure (for example, no need for #extend).
Countdown to the "big announcement" at Ruby Kaigi
The countdown on ruby-lang.github.io has almost reached zero. Once the clock hits zero, the “big announcement” will be made at Ruby Kaigi and posted on the website. Only seven more hours to go!
Creating Static Sites in Ruby with Rack
It can be useful to host static sites on heroku sometimes. Everything I found on the internet, including heroku’s own guide wasn’t ideal, so I created a tiny gem to do this and wrote a blog post about it.
heroku-buildpack-ruby-bower - Deploy Rails app to Heroku with Bower
I just released heroku-buildpack-ruby-bower. See Wiki page for usage.