gemcutter 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/commands/upgrade.rb +7 -2
  2. metadata +3 -3
@@ -48,8 +48,13 @@ class Gem::Commands::UpgradeCommand < Gem::Command
48
48
  request.basic_auth email, password
49
49
  response = Net::HTTP.new(url.host, url.port).start { |http| http.request(request) }
50
50
 
51
- Gem.configuration[:gemcutter_key] = response.body
52
- Gem.configuration.write
51
+ case response
52
+ when Net::HTTPSuccess
53
+ Gem.configuration[:gemcutter_key] = response.body
54
+ Gem.configuration.write
55
+ else
56
+ say response.body
57
+ end
53
58
  end
54
59
 
55
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemcutter
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Quaranto
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-06-09 00:00:00 -04:00
12
+ date: 2009-06-13 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -51,7 +51,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  requirements: []
52
52
 
53
53
  rubyforge_project: gemcutter
54
- rubygems_version: 1.3.3
54
+ rubygems_version: 1.3.4
55
55
  signing_key:
56
56
  specification_version: 3
57
57
  summary: Kickass gem hosting