Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add support for Ruby 2.0 #28

Closed
pitr opened this Issue May 7, 2013 · 6 comments

Comments

Projects
None yet
3 participants

pitr commented May 7, 2013

.bundle/gems/ruby/2.0.0/gems/stickler-2.3.0/lib/stickler/repository/local.rb:5:in `require': cannot load such file -- rubygems/format (LoadError)
from .bundle/gems/ruby/2.0.0/gems/stickler-2.3.0/lib/stickler/repository/local.rb:5:in `<top (required)>'
from .bundle/gems/ruby/2.0.0/gems/stickler-2.3.0/lib/stickler/repository.rb:9:in `require'
from .bundle/gems/ruby/2.0.0/gems/stickler-2.3.0/lib/stickler/repository.rb:9:in `<top (required)>'
from .bundle/gems/ruby/2.0.0/gems/stickler-2.3.0/lib/stickler.rb:12:in `require'
from .bundle/gems/ruby/2.0.0/gems/stickler-2.3.0/lib/stickler.rb:12:in `<top (required)>'
Owner

copiousfreetime commented May 7, 2013

Yup, this looks like one of the updates with rubygems 2.0

http://blog.rubygems.org/2013/02/24/2.0.0-released.html

Merged Gem::Format into Gem::Package. Use Gem::Package.new instead of Gem::Format.from_file_by_path

@ghost ghost assigned copiousfreetime May 7, 2013

mbasset commented May 29, 2013

+1

I am having a very similar issue after the rubygem 2.0 update using stickler 2.3.0, gem 2.0.3, bundler 1.3.5, ruby 1.9.3p392.

/Users/matthew/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems/format.rb:62:in `from_io': private method `open' call
ed for Gem::Package:Class (NoMethodError)
        from /Users/matthew/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems/format.rb:46:in `block in from_file_by_path'
        from /Users/matthew/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems/format.rb:45:in `open'
        from /Users/matthew/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/rubygems/format.rb:45:in `from_file_by_path'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/gems/stickler-2.3.0/lib/stickler/repository/remote.rb:257:in `specification_from_gem_file'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/gems/stickler-2.3.0/lib/stickler/repository/remote.rb:253:in `speclite_from_gem_file'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/gems/stickler-2.3.0/lib/stickler/repository/remote.rb:75:in `push'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/gems/stickler-2.3.0/lib/stickler/client/push.rb:39:in `block in run'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/gems/stickler-2.3.0/lib/stickler/client/push.rb:35:in `each'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/gems/stickler-2.3.0/lib/stickler/client/push.rb:35:in `run'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/gems/stickler-2.3.0/bin/stickler:46:in `'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/bin/stickler:23:in `load'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/bin/stickler:23:in `'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `eval'
        from /Users/matthew/.rvm/gems/ruby-1.9.3-p392/bin/ruby_noexec_wrapper:14:in `'
Owner

copiousfreetime commented May 29, 2013

Thanks for the reminder ;-). I'll take care of this this week.

mbasset commented Jun 7, 2013

Incase anyone is wondering I have an alpha release that appears to work at least in a basic fashion for ruby 2.0.0 hacked together in about 5 mins. Not really pull request worthy though but should be enough to push using stickler with ruby 2.0.0 for now. https://github.com/mbasset/stickler

Owner

copiousfreetime commented Sep 19, 2013

I haven't forgotten about this, working on it now. And it will go into the next version

Owner

copiousfreetime commented Nov 12, 2013

Version 2.4 released, and includes this fix.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment