kleisli 0.2.4 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 41794ac25c17f21d71cb68652fc5bdb145e842ba
4
- data.tar.gz: eebad705764a6f960fc3b45564bd49819d76d8dd
3
+ metadata.gz: 92d1a397efbd6ac061fed997761069dcd1b2ad36
4
+ data.tar.gz: e9f62d5c5496fe17e5b7fdc30f7c8e7fcbcf6c81
5
5
  SHA512:
6
- metadata.gz: ca78ce8dbdf319c5456e6d396d86bfe86820b60e4e888197bbccb110e9646d5bde36166907fdc9e4f8eb34223148359045e828eb6c55b1ad6ece40f3ae3f4168
7
- data.tar.gz: a4ab4a99e58c378d77dae463aa2640c55dc9e1d377f9896776dd6a4291221c23a98aa1d3809db18bbe2377640a8514d2584f27d83d973f050021644dc75d69a7
6
+ metadata.gz: 0bfdd4cfc587eedeb5aa8cecc09d1692ea08733abf00081dec5e8112c3f884180b5feafcb90681750e05004cd166d4af86c7c8720bb73607f0144bb10ff7606e
7
+ data.tar.gz: d971e42804481e99b3c7a0765a6a9fbbf1bd45016b108d9bacb8e5b36a1a328fac6e668a3ddaafb571b1c80e00863aaf94d521591ddf97951160c79227ba61cb
@@ -36,7 +36,7 @@ module Kleisli
36
36
  Maybe::Some.new(@right)
37
37
  end
38
38
 
39
- def or(other, &other_blk)
39
+ def or(other=nil, &other_blk)
40
40
  self
41
41
  end
42
42
  end
@@ -60,7 +60,7 @@ module Kleisli
60
60
  Maybe::None.new
61
61
  end
62
62
 
63
- def or(other, &other_blk)
63
+ def or(other=self, &other_blk)
64
64
  if other_blk
65
65
  other_blk.call(@left)
66
66
  else
@@ -34,7 +34,7 @@ module Kleisli
34
34
  self
35
35
  end
36
36
 
37
- def or(other=None(), &other_blk)
37
+ def or(other=self, &other_blk)
38
38
  if other_blk
39
39
  other_blk.call
40
40
  else
@@ -61,7 +61,7 @@ module Kleisli
61
61
  block.call(@value)
62
62
  end
63
63
 
64
- def or(other=None(), &other_blk)
64
+ def or(other=nil, &other_blk)
65
65
  self
66
66
  end
67
67
 
@@ -1,3 +1,3 @@
1
1
  module Kleisli
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
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.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Bach
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-01-19 00:00:00.000000000 Z
12
+ date: 2015-01-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler