kevinelliott / agent_orange

Parse and process User Agents like a secret one
126 stars 36 forks source link

gemspec doesn't work with bundler #7

Closed joshuasiler closed 12 years ago

joshuasiler commented 12 years ago

When using Rails and bundler, the gemspec is flagged as invalid by bundler, and gem installation fails, when using git as a source.

For example, this line in my gemspec was failing with a bundler error "invalid gemspec":

gem 'agent_orange', '0.1.0', :git => 'git://github.com/eatenbyagrue/agent_orange.git', :branch => 'hiringthing'

I fixed in a branch of my fork with the following change to the gemspec.

s.files         = "agent_orange-0.1.0.gem"
joshuasiler commented 12 years ago

Hmmm still having problems. Bundler installs the first time, then fails the second time. Have you seen this issue at all?

joshuasiler commented 12 years ago

Ended up with this in my gemspec to get it to work.

require 'rake'
s.files = FileList['lib/**/*.rb', 'bin/*', '[A-Z]*', 'test/**/*'].to_a
kevinelliott commented 12 years ago

This is isolated to your fork, as the original gemspec was generated by bundler and only modified slightly.