gracefully 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gracefully/degradable_command.rb +3 -3
- data/lib/gracefully/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0caee53d2208f16f8a197c9333bf7004144515a3
|
4
|
+
data.tar.gz: e5b34e104645052561fa58acaf6faf2bc79165ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 380d2d66fb438bfd73a1bb109df37a3e13ba51a365a2d2f144248011c9cc8839dc4f7683cc48831fad2e3d6fa02c54949eb51e10932a485c2be52680d73cb0ed
|
7
|
+
data.tar.gz: 741d0f47f0cb2a68dbb70a5db13ea862b641ba06344db7103d3275a70b6ba71f2d0218f315b8ece45f116b6c5485b94137dff23dbd6dad3e09cd702c4635ad69
|
@@ -5,9 +5,9 @@ module Gracefully
|
|
5
5
|
@fallback_to = args[:fallback_to]
|
6
6
|
end
|
7
7
|
|
8
|
-
def call(*args)
|
9
|
-
Try.to { @usually.call *args }.
|
10
|
-
or_else(Try.to { @fallback_to.call *args }).
|
8
|
+
def call(*args, &block)
|
9
|
+
Try.to { @usually.call *args, &block }.
|
10
|
+
or_else(Try.to { @fallback_to.call *args, &block }).
|
11
11
|
get
|
12
12
|
end
|
13
13
|
end
|
data/lib/gracefully/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gracefully
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke KUOKA
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -122,3 +122,4 @@ test_files:
|
|
122
122
|
- spec/timecop_helper.rb
|
123
123
|
- spec/timed_command_spec.rb
|
124
124
|
- spec/togglable_command_spec.rb
|
125
|
+
has_rdoc:
|