evt-try 0.2.0.0 → 0.2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/try/controls.rb +1 -0
- data/lib/try/controls/error.rb +6 -0
- data/lib/try/try.rb +4 -2
- metadata +3 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4918e02f488831286de87dcaf423680bde46c232
|
4
|
+
data.tar.gz: d12d4c58717f4146d5137edd965ee6ce695ceb31
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4204e453d36eed9a0228aefb80673b7ce2127f67990239bed187b9110dbf0e6c8a428a79041f275e34f8076752231d19ec59f38a514750251bb9c6a310b5d7f3
|
7
|
+
data.tar.gz: b4fe9b6b4a347dfd57c56bad63b4d3a9e44744723730bd28e6d11d60b33711e1585799a7f66a34090bc7feb7e9d32da48861f8ed613bd1db2b2595f2e1bd97d0
|
data/lib/try/controls.rb
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'try/controls/error'
|
data/lib/try/try.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module Try
|
2
|
-
def self.call(*errors, &action)
|
2
|
+
def self.call(*errors, error_probe: nil, &action)
|
3
3
|
success = false
|
4
4
|
|
5
5
|
begin
|
@@ -13,6 +13,8 @@ module Try
|
|
13
13
|
end
|
14
14
|
end
|
15
15
|
|
16
|
-
|
16
|
+
error_probe.call(e) unless error_probe.nil?
|
17
|
+
|
18
|
+
return success
|
17
19
|
end
|
18
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: evt-try
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- The Eventide Project
|
@@ -31,6 +31,8 @@ extensions: []
|
|
31
31
|
extra_rdoc_files: []
|
32
32
|
files:
|
33
33
|
- lib/try.rb
|
34
|
+
- lib/try/controls.rb
|
35
|
+
- lib/try/controls/error.rb
|
34
36
|
- lib/try/try.rb
|
35
37
|
homepage: https://github.com/eventide-project/try
|
36
38
|
licenses:
|