It's Rails day as Heroku moves to Ruby 2.0, Rails 2.3's life is lingering, we build Awesome APIs, visit removing Views, cut back on Callbacks, expand our Environments, and tackle Changed Tests on this episode of Ruby5.
Listen to this e...
It's Rails day as Heroku moves to Ruby 2.0, Rails 2.3's life is lingering, we build Awesome APIs, visit removing Views, cut back on Callbacks, expand our Environments, and tackle Changed Tests on this episode of Ruby5.
Listen to this episode on Ruby5
This episode is sponsored by Heroku
Heroku just released their Dashboard Notification Center. On it, you'll get updates and alerts that affect you and your running applications. This includes security vulnerabilities, changes to Heroku default configurations, add-on updates, and more.
Heroku is now defaulting to MRI Ruby 2.0
Just yesterday afternoon, Heroku announced that MRI Ruby 2.0 is now the default version of Ruby for all new applications. This does not mean that you must upgrade right away (only Rails 4 officially supports Ruby 2), but it's time to start working your way up the Ruby 1.9 chain and getting ready for the migration.
Rails LTS and the Rails 2.3 end of life
With the upcoming release of Rails 4, the Rails core team officially drops all support for the Rails 2.3 branch. That means that either you're on your own for security updates, you're relying on the community, or perhaps Makaranda's Rails LTS (long term support) service is for you. It's a commercial fork of Rails to offer longer term framework support.
Building Awesome Rails Apis Part 1
Daniel Morrison over at Collective Idea has started a blog series on Building Awesome Rails APIs, and it’s got some good information in it. Part 1 focuses on routing, subdomains, namespacing, versioning, and more.
Stubbing Views in Rails Controller Testing
A few days ago, Francesco Rodríguez introduced a new gem he’s just released called Blind. Blind is a gem which disables view rendering in your Minitest/Test::Unit Rails controller tests.
Beyond the Rails Environments
David Henemeier Hansson published a post at 37signals about the multitude of Rails environments they run. They run a total of six Rails environments, ranging from the standard to a beta environment and a 10% rollout environment.
The Problem With Rails Callbacks
Back in early May, Samuel Mullen wrote up an article entitled “The Problem with Rails Callbacks.” He highlights the issues with relying on callbacks and observers and offers a service-oriented solution.
Running Changed Tests
Last week, Robert Jackson wrote up a little git trick which allows you to only run those tests on a new git branch which have been modified from the master branch. This could be useful for quickly running only your locally modified tests.