Tag: Ruby

Avoiding a series of tests with Ruby Hashes of Hashes that might have nil before the leaf hash

No Picture

I’m mostly using Ruby to write Opscode Chef Cookbooks. There are a lot of hashes of hashes that contain attributes or Data Bags. Things that look like: If I wanted to test if this value is set I…

Read More »

Nice jruby installation cookbook (Opscode)

No Picture

There are a lot of good example Opscode cookbooks out there. Unfortunately they can be hard to find. People are not submitting them to the Opscode Cookbook repository. Its still hard to untangle your own cookbooks into something…

Read More »

Cross Domain RESTful AJAX with jQuery and Rails 2.2.2

No Picture

Flinn Mueller aka actsasflinn wrote an blog post Cross domain RESTful JSON-P with Rails back in July. There he showed how to monkeypatch Rails to allow json-p to do all the REST verbs even when going across domains….

Read More »

QuarkRuby: Consume non rails-style REST APIs

No Picture

It seems that most “RESTful” APIs in the wild are well, pretty wild. They don’t meet the strict requirements of the pure CRUD/REST of ActiveResource. The article in QuarkRuby:  Consume non rails-style REST APIs shows how to create a nice ruby…

Read More »