operation 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/operation/deferrable.rb +1 -1
- data/lib/operation/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d6777097e8f95155f096ea3dc8b6b9e40e0462d
|
4
|
+
data.tar.gz: 1479fd33c099038ce0ba1b6a151fbcaab5269849
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54eac5c9b0d6dc05bac51ea7fb4d5064ebae2f464ba7c021fbf8117c88d71575d83c620b85c4e82921e754f679cebf3ad0fb0e2241f49c73082a02e2629959e8
|
7
|
+
data.tar.gz: 8cee760417824fa4a6177f6827fd2d85aeb8b4af98021fe52e997f9fe10c2b9914eff9b2869062c6601a0b48a5bffcf5c823365990752a2a92375b26872b3a49
|
data/lib/operation/deferrable.rb
CHANGED
@@ -56,7 +56,7 @@ class Operation
|
|
56
56
|
def progress!(new_percent, code = nil)
|
57
57
|
return if succeeded? || failed?
|
58
58
|
@percent = new_percent.to_i
|
59
|
-
@status = code unless
|
59
|
+
@status = code unless [:succeeded, :failed].include?(code)
|
60
60
|
|
61
61
|
progressables.each do |callback|
|
62
62
|
callback.call self
|
data/lib/operation/version.rb
CHANGED