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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf954108bc3f1509923aeb64fff8704ce06d3023
4
- data.tar.gz: 157d3f6c00fdcc349a93a1fb9893e9a8dae2ed7a
3
+ metadata.gz: 0caee53d2208f16f8a197c9333bf7004144515a3
4
+ data.tar.gz: e5b34e104645052561fa58acaf6faf2bc79165ed
5
5
  SHA512:
6
- metadata.gz: f461e469d24b71323e076f80e3b396c87d1cd36805a04b0668cad600af2e11da25b1e44ecb22d4ed8346e724ef88fefcc03a7390b5793b08321a9cfb859cc6e9
7
- data.tar.gz: 07f36379d86f0d0ef94bd4c38abf7c1e962426b59d49646447294d765e2f46b61797d1a8f9e9494ee15f24813251476b0c07737c6eeed79a92b60dee14703152
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
@@ -1,3 +1,3 @@
1
1
  module Gracefully
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
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.0
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-10-14 00:00:00.000000000 Z
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: