qrush-gemcutter 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/commands/upgrade.rb +7 -2
  2. metadata +2 -2
@@ -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: qrush-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-04 00:00:00 -07:00
12
+ date: 2009-06-13 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15