mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Import rubygems 1.6.0 (released version @ 58d8a0b9)
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30996 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
86bb0af7ea
commit
25a9b62d45
73 changed files with 2408 additions and 719 deletions
|
@ -23,6 +23,7 @@ class Gem::Commands::OwnerCommand < Gem::Command
|
|||
def initialize
|
||||
super 'owner', description
|
||||
add_proxy_option
|
||||
add_key_option
|
||||
defaults.merge! :add => [], :remove => []
|
||||
|
||||
add_option '-a', '--add EMAIL', 'Add an owner' do |value, options|
|
||||
|
@ -45,7 +46,7 @@ class Gem::Commands::OwnerCommand < Gem::Command
|
|||
|
||||
def show_owners name
|
||||
response = rubygems_api_request :get, "api/v1/gems/#{name}/owners.yaml" do |request|
|
||||
request.add_field "Authorization", Gem.configuration.rubygems_api_key
|
||||
request.add_field "Authorization", api_key
|
||||
end
|
||||
|
||||
with_response response do |resp|
|
||||
|
@ -70,7 +71,7 @@ class Gem::Commands::OwnerCommand < Gem::Command
|
|||
owners.each do |owner|
|
||||
response = rubygems_api_request method, "api/v1/gems/#{name}/owners" do |request|
|
||||
request.set_form_data 'email' => owner
|
||||
request.add_field "Authorization", Gem.configuration.rubygems_api_key
|
||||
request.add_field "Authorization", api_key
|
||||
end
|
||||
|
||||
with_response response
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue