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

Doesn't work with Ruby 2.0 #31

Closed
victorcoder opened this Issue Mar 11, 2013 · 2 comments

Comments

Projects
None yet
2 participants

Following the stack trace:

/Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/internal/loose.rb:108:in unpack_object_header_gently': undefined method>>' for "x":String (NoMethodError)
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/internal/loose.rb:56:in get_raw_object' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/internal/loose.rb:32:in[]'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:84:in block in get_raw_object_by_sha1' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:83:ineach'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:83:in get_raw_object_by_sha1' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:334:inwalk_log'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:287:in log' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby/repository.rb:306:inrev_list'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:70:in block in rev_list' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:211:inblock in try_run'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/2.0.0/timeout.rb:65:in timeout' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:210:intry_run'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/git-ruby.rb:70:in rev_list' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/commit.rb:120:infind_all'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/grit-2.5.0/lib/grit/repo.rb:427:in commit' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/git.rb:57:ininitialize'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:23:in new' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:23:ininitialize'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:70:in initialize' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:12:innew'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/deployment.rb:12:in create' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/command.rb:122:indeployment'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/command/deploy.rb:30:in execute' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:38:inblock in execute'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/command.rb:92:in initialize' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:36:innew'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:36:in execute' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/lib/dandelion/application.rb:7:inexecute'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/lib/ruby/gems/2.0.0/gems/dandelion-0.3.10/bin/dandelion:7:in <top (required)>' from /Users/victorcoder/.rbenv/versions/2.0.0-p0/bin/dandelion:23:inload'
from /Users/victorcoder/.rbenv/versions/2.0.0-p0/bin/dandelion:23:in <main>'

There are a few open pull requests for Grit to be updated to Ruby 2.0.0, but for now it's hardcoded to 1.9
mojombo/grit#152

You can either use Ruby 1.9.3 for now, wait for https://github.com/mojombo/grit/ to update to 2.0.0, or modify https://github.com/scttnlsn/dandelion/ to use https://github.com/gitlabhq/grit gem install gitlab-grit

I reported it without noticing, thanks.

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