Category Archives: Ruby

Using Pry with Padrino

Using Pry with Padrino Pry is a really powerful replacement for IRB – I love using it with Rails. I recently started working with Padrino and of course had to have it working there as well. Pry will read and … Continue reading

Posted in Ruby | Leave a comment

Ruby on Rails 3.1 with Ruby 1.9.2 – speeding up rspec 2 (2.11) tests

After reading a number of posts on speeding up tests with Rails: * http://www.skuunk.com/2012/05/speeding-up-rspec.html * http://www.dixis.com/?p=553 * http://stackoverflow.com/questions/3663075/speeding-up-rspec-tests-in-a-large-rails-application * http://www.rubyinside.com/careful-cutting-to-get-faster-rspec-runs-with-rails-5207.html * http://highgroove.com/articles/2012/04/06/sane-rspec-config-for-clean,-and-slightly-faster,-specs.html * http://blog.plataformatec.com.br/2011/12/three-tips-to-improve-the-performance-of-your-test-suite/ * https://makandracards.com/makandra/950-speed-up-rspec-by-deferring-garbage-collection * http://kpumuk.info/ruby-on-rails/my-top-7-rspec-best-practices/ We implemented a combination of practices to reduce our test execution time … Continue reading

Posted in Ruby, Ruby on Rails | Leave a comment

Freezing ruby data structures recursively

Flavorrific published a monkey patch that extends Object with a deep freeze method that freezes child arrays and hashes of a data structure so that they aren’t accidentally changed (for example, configuration data from YAML). I have extended his work … Continue reading

Posted in Ruby | Leave a comment

Easy to use ruby library for interacting with Confluence – confluence4r

http://confluence.atlassian.com/display/DISC/Confluence4r I added a gemspec for the package to the bottom of the page if you want to build it as a gem in-house. — Max Schubert

Posted in Ruby | Leave a comment