maybe.rb 1.1.0 → 1.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: 76f25a1f8164ed416c85278d29854b79f9cc1b82
4
- data.tar.gz: 72c7c898320b68f6cbfcaed4fce6c6075303dc90
3
+ metadata.gz: 98e4683c2300b32ac4cca4f5167e63d1868b33d4
4
+ data.tar.gz: 691340f59ab77c643453e3e33e223927055fd740
5
5
  SHA512:
6
- metadata.gz: 45a77cd9f4ea97a2f64e054984cfc18b20a277328c37e2f30911b6fb659d16b14c1149da74df1cb28803aad4f1fd27e9b146e5f3f5624f26682888ae10d5f3cf
7
- data.tar.gz: 92166879a1c7df591a153b34512506d982b62f1b0d728bdddc0ddec2337de797ad10c0a80ee5a52810419c2fd76dc021ee3183dae7abc1a7fbba5c8b8ba47dc7
6
+ metadata.gz: d000ace1ab0e0a275634db84b07dc5b5754075952c7e58f1713daf06f89a3541c3241d7689289a0fbfe303f5f21ef63c43113f39d47e5b54969ad056848d722a
7
+ data.tar.gz: 3eb924956e87df7044ad23af83dbc74efdafba52b68f8c910f14bc3809b717274eab867206607d6e3936c269c1b130b9773945a0127a09e5f183c754e8b2d364
@@ -9,13 +9,13 @@ class Object
9
9
  #
10
10
  # @see [Maybe#get]
11
11
  #
12
- def maybe(*args)
12
+ def maybe(*args, &block)
13
13
  retval = Maybe.new(self)
14
14
 
15
15
  if !args.empty?
16
- retval = retval.maybe(*args)
16
+ retval = retval.maybe(*args, &block)
17
17
  elsif block_given?
18
- retval = retval.maybe(&Proc.new)
18
+ retval = retval.maybe(&block)
19
19
  end
20
20
 
21
21
  return retval
@@ -1,3 +1,3 @@
1
1
  class Maybe
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end # Maybe
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maybe.rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Olery B.V.