kleisli 0.2.2 → 0.2.3

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: f961cee935ddef3376c9626dc6ee671b3d71dd28
4
- data.tar.gz: e26f1050450bb9bb5179b14d39bbda49c180d87d
3
+ metadata.gz: e5a46d7eddb131b8c719366a3236447925698c9d
4
+ data.tar.gz: 6ae4c0940c4f2277dfc28b0310c2f9e5b69c10b6
5
5
  SHA512:
6
- metadata.gz: f3a54414eb473fe1e854011e2dafb796561bfa251404e49340a53ef4cf7ff65e3ce1c0d4aa7aa4b34790811deea87e7999fe97f54d61599e7fc4f8267332a933
7
- data.tar.gz: 031eecf67163e1e6748b865fda13fec8588548ebe284c3f5177a061f32c620f8c5ff33359c09e97a4024bd5a13e65e4b5fb8deed25b30abade234367e1611a90
6
+ metadata.gz: 4fcaf5ea5e682a2f0050c65b56b53f6ddd7ccffee4ea1201586bd17ecd2d8e5ba24b8a6d67fdcf82d87a1e400b12569d3a1947b5695f29ba2e6e4a109e07fff0
7
+ data.tar.gz: 5633da971c9b9b889fdd8fb87eec05ecdff82ae3f51d8e1ee4c220eaef040daa53832343ecf5be356edbbc551fb2234c344b3b0bda8d36152a38b5b084691ec7
data/lib/kleisli/maybe.rb CHANGED
@@ -33,7 +33,7 @@ module Kleisli
33
33
  self
34
34
  end
35
35
 
36
- def or(other, &other_blk)
36
+ def or(other=None(), &other_blk)
37
37
  if other_blk
38
38
  other_blk.call
39
39
  else
@@ -60,7 +60,7 @@ module Kleisli
60
60
  block.call(@value)
61
61
  end
62
62
 
63
- def or(other, &other_blk)
63
+ def or(other=None(), &other_blk)
64
64
  self
65
65
  end
66
66
 
@@ -1,3 +1,3 @@
1
1
  module Kleisli
2
- VERSION = "0.2.2"
2
+ VERSION = "0.2.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kleisli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Bach