开发者

Do jeweler and gemspec in Gemfile work together?

开发者 https://www.devze.com 2023-03-05 07:00 出处:网络
I\'ve got a problem when using gemspec in my Gemfile and using jeweler: sudo gem install pkg/revertible_paper_trail-0.3.0.gem

I've got a problem when using gemspec in my Gemfile and using jeweler:

sudo gem install
pkg/revertible_paper_trail-0.3.0.gem
Fetching: revertible_paper_trail-0.3.0.gem (100%)
ERROR:  Error installing pkg/revertible_paper_trail-0.3.0.gem:
    revertible_paper_trail requires revertible_paper_trail (>= 0)

rake gemspec:debug shows that this got added:

if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
  s.add_runtime_dependency(%q<revertible_paper_trail>, [开发者_运维技巧">= 0"])

When dropping gemspec from the Gemfile, the runtime dependency vanishes and installing the gem works.

Now, what's best practice when using jeweler and bundler?

FYI: The code for the gem is at https://github.com/CyTeam/revertible_paper_trail


gem install has nothing to do with bundler or your Gemfile, so this question is very confusing. (BTW, your code link goes to a 404 page.)


Stop using jeweler and just maintain your own .gemspec.

0

精彩评论

暂无评论...
验证码 换一张
取 消