Monthly Archives: April 2012

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

Serialization of ActiveRecord model fields – let AR do it and avoid much pain – Ruby on Rails 3.0.9, Ruby 1.9.2

Created an ActiveRecord model that had a single field that would hold a data structure that included a non-AR object as a part of a Hash that I wanted serialized to the database and de-serialized on retrieval. Remembering my java … Continue reading

Posted in Ruby on Rails | Leave a comment