geckoboard/nash — pull request #1 by carvil (2012-06-08 20:56:58+00:00)
Title: Fix 'uninitialized constant Hashie::Dash' and add rake to gemspec

Hi geckoboard,

I installed your gem with:

gem install nashie

Then, in `pry`, I required it:

require 'nashie'

and I got the following error:

NameError: uninitialized constant Hashie::Dash
from /Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/nashie-0.0.2/lib/nashie.rb:13:in `'

I fixed this problem by requiring `hashie/dash` instead of `hashie/hash` in `lib/nashie.rb`.

I also added `rake` as a development dependency, in order to be able to run:

bundle exec rake build

Without this change, I would get:

/Users/carvil/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/bundler-1.1.0/lib/bundler/rubygems_integration.rb:147:in `block in replace_gem': rake is not part of the bundle. Add it to Gemfile. (Gem::LoadError)
from /Users/carvil/.rbenv/versions/1.9.3-p125/bin/rake:18:in `

'

Finally, I also moved `hashie` to the gemspec file as a runtime dependency.

Do you agree with these changes?

Thanks.