paperclip-azure 0.2.8 → 0.2.9

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: e6ce779207ed37f3fafc0fac09ad624fc67e5aa5
4
- data.tar.gz: 8847ab129675e2456346f221f9c670db161998a6
3
+ metadata.gz: 6ea72346e82ab322ac863af2b4aa2bcd81bb6248
4
+ data.tar.gz: 882239b5939a5084bb3c9708fce7d6944f63b5fb
5
5
  SHA512:
6
- metadata.gz: cd6e124e7ce7b410c9a8976cb77420ab967863c32cd5511914e13050b39216d044ef98ddcb53bcb09c7e9386a0498a5ad4960c2b54c07521c9e96f0e77d0eae2
7
- data.tar.gz: cf78db036595d70aa52bbd3bb81c3b0c3e8f361e63b787769f635697fcf3e8feb2d0a6511462dfbb5ae7e94c2b0d1ba2e72a00893a0b54f89e3b0be394b61dae
6
+ metadata.gz: 38eb3110908554f5ed8a0651195ff4ed7c9b4b681d1a9391bcaa1cd30e7d07d84f3d0d027e12b371c5d30b9d4ba2a6aea8b27aa32c796fec45c147ffdac73063
7
+ data.tar.gz: b56a8a1a0616617bc23dddbf90a4d302d4dd0a6a9233760c2f261af9a92af5589403cfaaaf23e8d1e7e583cecb0a424f608fc965aa0774ecac6bd6d65252a076
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.8
1
+ 0.2.9
@@ -140,11 +140,13 @@ module Paperclip
140
140
  status_code = 500 if status_code == 0
141
141
  retry_data[:count] ||= 0
142
142
 
143
- unless (status_code >= 300 && status_code < 500 && status_code != 408) ||
143
+ if (status_code >= 300 && status_code < 500 && status_code != 408) ||
144
144
  status_code == 501 ||
145
145
  status_code == 505 ||
146
146
  retry_data[:error].description == 'Blob type of the blob reference doesn\'t match blob type of the blob.' ||
147
147
  retry_data[:count] >= 5
148
+ retry_data[:count] = 0
149
+ else
148
150
  retry_data[:count] += 1
149
151
 
150
152
  sleep ((2** retry_data[:count]) - 1) * 5
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "paperclip-azure"
8
- s.version = "0.2.8"
8
+ s.version = "0.2.9"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jordan Yaker", "Supportify, Inc."]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: paperclip-azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jordan Yaker