Closed compactcode closed 13 years ago
Thanks for the effort. However this doesn't make the project any easier to build. If you need to install the local gem: rake gem
. If you need to install development dependencies: gem install chargify --dev
.
gem install chargify --dev
ERROR: Error installing chargify:
hoe requires minitest (>= 2.0.2, development)
In any case, I just wanted to run the gem's test suite but got stuck dicking around with gem deps. Over it now.
Hmm. I have a similar issue with rubygems v1.6.2. Seems it's an issue that was just fixed: https://rubyforge.org/tracker/?group_id=126&atid=575&func=detail&aid=28454 Oh rubygems
Actually, this pull request would fix an issue. Right now, if you don't have the hashie and httparty and json gems already installed, bundler will refuse to install the chargify gem. This is because the gemspec is requiring the whole library (just to get the version number), which in turn requires hashie, httparty, and json. Since the gemspec is reay by bundler before installing the dependencies (because, you know, that's where the dependencies come from), the install will fail unless you already have hashie, httparty, and json installed.
The exact error message is:
There was a LoadError while evaluating chargify.gemspec: no such file to load -- hashie from
I added a Gemfile to the project to make it easier to checkout and build.
I had to adjust the gemspec so that it doesn't have direct dependancies on external gems. This was achieved by moving the VERSION constant into a separate file and just requiring that.