gemfury 0.4.22 → 0.4.23

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aba06ba54f3b96613a5ec79c5064318cae01ad29
4
- data.tar.gz: 7dc442b3f49568981e7d3e3ec4c4428b8fa15ef3
3
+ metadata.gz: e2553539535112ec8be52a3a257ba8d6b36386d3
4
+ data.tar.gz: 39f6446d83275606c1db1c6ce8e84feaedc8b048
5
5
  SHA512:
6
- metadata.gz: ee08a1dfd66bff9516a20b5dc093e18eb03dbbf4daba4ea4a6229bdc4a2827f255c356729c3d9a8c11887771d321e4b3674dfd69f90734130b04eeb8da242132
7
- data.tar.gz: ad534718c4c3cddc37a196db65cf91f72f4592c21f2f852bf1d79f77f54ee7f1117622e214f23474cbb169d38e2698390ae2923507237915f0d199584114de1d
6
+ metadata.gz: e54f6b4e89d6fe2e3d999667955b344cf5c92481775729d3275a9a56bddbd69df4daae06550a7c1b60da009e1e964bef29e613fa0139f2cd9e6796aa6b4d83f8
7
+ data.tar.gz: 2ab337df7f22b288dd10b1f10473866f82a707536a2891a76f70fe81a6e047d011c4e4c23849cc596f183fcec19c1a5e6b780a38dd0612fb67d119d160c95346
@@ -4,6 +4,7 @@ gem "faraday", ">= 0.7.4", "< 0.9.0.pre"
4
4
  gem "faraday_middleware", ">= 0.7", "< 0.10.0.pre"
5
5
 
6
6
  require 'cgi'
7
+ require 'uri'
7
8
  require 'netrc'
8
9
  require 'multi_json'
9
10
  require 'faraday_middleware'
@@ -148,6 +148,7 @@ module Gemfury
148
148
  when 'Forbidden' then Gemfury::Forbidden
149
149
  when 'GemVersionError' then Gemfury::InvalidGemVersion
150
150
  when 'InvalidGemFile' then Gemfury::CorruptGemFile
151
+ when 'DupeVersion' then Gemfury::DupeVersion
151
152
  else Gemfury::Error
152
153
  end
153
154
  else
@@ -178,6 +178,8 @@ private
178
178
  shell.say "- done"
179
179
  rescue Gemfury::CorruptGemFile
180
180
  shell.say "- problem processing this package", :red
181
+ rescue Gemfury::DupeVersion
182
+ shell.say "- this version already exists", :red
181
183
  rescue Gemfury::TimeoutError, Errno::EPIPE
182
184
  shell.say "- this file is too much to handle", :red
183
185
  shell.say " Visit http://www.gemfury.com/large-package for more info"
@@ -17,6 +17,9 @@ module Gemfury
17
17
  # Corrupt Gem File
18
18
  CorruptGemFile = Class.new(Error)
19
19
 
20
+ # Version already exists
21
+ DupeVersion = Class.new(Error)
22
+
20
23
  # TimeoutError for 503s
21
24
  TimeoutError = Class.new(Error)
22
25
  end
@@ -1,3 +1,3 @@
1
1
  module Gemfury
2
- VERSION = '0.4.22'
2
+ VERSION = '0.4.23'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gemfury
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.22
4
+ version: 0.4.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Rykov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-11 00:00:00.000000000 Z
11
+ date: 2014-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: highline