pengwynn / chargify

Ruby wrapper for the chargify.com SAAS and billing API
MIT License
61 stars 29 forks source link

Configure the project so that it can be built using bundler. #8

Closed compactcode closed 13 years ago

compactcode commented 13 years ago

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.

cldwalker commented 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.

compactcode commented 13 years ago

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.

cldwalker commented 13 years ago

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

nachof commented 12 years ago

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

/chargify.gemspec:3