gem ownership - can not push gem to rubygems.org

zdavatz's Avatar

zdavatz

13 Dec, 2010 08:14 AM

Hi

I am an Admin User for the ruby spreadsheet project on rubyforge.com - but somehow I can not push the latest gem to rubygems.org - I get an ownership permission denied error when I do

rake release VERSION=0.6.5.0 --trace

the same is true for the user mhatakeyama - he is also an Admin of the project. Any hints on what to do?

Best
Zeno

  1. 1 Posted by zdavatz on 13 Dec, 2010 08:43 AM

    zdavatz's Avatar

    This is the error I get:

    ** Execute release_to_gemcutter
    /usr/bin/ruby18 -S gem push pkg/spreadsheet-0.6.5.0.gem
    Pushing gem to RubyGems.org...
    You do not have permission to push to this gem.
    rake aborted!
    Command failed with status (1): [/usr/bin/ruby18 -S gem push pkg/spreadshee...]
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `sh'
    /usr/lib/ruby/gems/1.8/gems/hoe-2.8.0/lib/hoe/gemcutter.rb:12:in `define_gemcutter_tasks'
    /usr/lib/ruby/gems/1.8/gems/hoe-2.8.0/lib/hoe/gemcutter.rb:9:in `each'
    /usr/lib/ruby/gems/1.8/gems/hoe-2.8.0/lib/hoe/gemcutter.rb:9:in `define_gemcutter_tasks'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in `invoke_prerequisites'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `invoke_prerequisites'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in `invoke_with_call_chain'
    /usr/lib/ruby/1.8/monitor.rb:242:in `synchronize'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in `invoke_with_call_chain'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
    /usr/bin/rake:19:in `load'
    /usr/bin/rake:19
    
  2. Support Staff 2 Posted by Nick Quaranto on 13 Dec, 2010 01:43 PM

    Nick Quaranto's Avatar

    Hi there,

    If you're given permission on a project at RubyForge those permissions aren't carried through to ownerships on Gemcutter. We did a one time import and aren't planning currently on maintaining a constant link in regards to permissions on both sites. I just added you as an owner on the spreadsheet gem so you should be all set.

  3. 3 Posted by zdavatz on 13 Dec, 2010 01:55 PM

    zdavatz's Avatar

    Dear Nick

    thanks! I just done another

    rake release VERSION=0.6.5.0 --trace

    that resulted in

    Pushing gem to RubyGems.org...
    There was a problem saving your gem: Home does not appear to be a valid URL
    rake aborted!
    Command failed with status (1): [/usr/bin/ruby18 -S gem push pkg/spreadshee...]
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:995:in `sh'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `call'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1010:in `sh'
    /usr/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1094:in `sh'

    Any hints on what is going on?

    Also: Can I now add any other owners as well? I still need to add "mhatakeyama" as an owner. He is an Admin at spreadsheet on Rubyforge as well and he needs to be able to push new gems as well.

    Best
    Zeno

  4. 4 Posted by zdavatz on 13 Dec, 2010 02:06 PM

    zdavatz's Avatar

    Ok, this

    gem owner gemcutter --add mhatakeyama at ywesee.com

    results in

    You do not have permission to manage this gem.

    How do I get permission to manage the gem. mhatakeyama will also need that permission.

    Best
    Zeno

  5. Support Staff 5 Posted by Nick Quaranto on 13 Dec, 2010 02:56 PM

    Nick Quaranto's Avatar

    The push error means that your homepage in the gemspec is not a valid URL, check it.

    As for the gem owner command, it's gem owner [GEM_NAME]..so in this case, it would be spreadsheet, not my gem, gemcutter :)

  6. 6 Posted by zdavatz on 13 Dec, 2010 03:10 PM

    zdavatz's Avatar
    1. Thanks! The URL in the spreadsheet.gemspec is:

    s.homepage = "http://scm.ywesee.com/?p=spreadsheet/.git;a=summary"

    What is wrong about that URL? The URL is valid if you enter it in the browser.

    1. Sorry for my dumb question. Obviously I could have noted that myself! It worked as advertised.

    2. Obviously my

    rake release VERSION=0.6.5.0 --trace

    somehow worked as I can now see the files here:

    http://rubyforge.org/frs/?group_id=678

    but

    gem search spreadsheet -r

    still shows me the last version of spreadsheet 0.6.4.1. Rubyforge.org and Rubygems.org still confuse me a bit. What goes where and when.

    Best
    Zeno

  7. 7 Posted by zdavatz on 13 Dec, 2010 04:34 PM

    zdavatz's Avatar

    Ok, now the latest gem of spreadsheet is out. I ran

    rake release VERSION=0.6.5.0 --trace

    again.

    best
    Zeno

  8. Nick Quaranto closed this discussion on 15 Dec, 2010 03:25 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions

30 Oct, 2014 04:34 PM
30 Oct, 2014 02:46 PM
28 Oct, 2014 09:51 AM
23 Oct, 2014 05:37 PM
21 Oct, 2014 10:47 AM