Feature/ruby1.9

Ruby 1.9 compatibility with passing specs.