kleisli 0.2.3 → 0.2.4

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: e5a46d7eddb131b8c719366a3236447925698c9d
4
- data.tar.gz: 6ae4c0940c4f2277dfc28b0310c2f9e5b69c10b6
3
+ metadata.gz: 41794ac25c17f21d71cb68652fc5bdb145e842ba
4
+ data.tar.gz: eebad705764a6f960fc3b45564bd49819d76d8dd
5
5
  SHA512:
6
- metadata.gz: 4fcaf5ea5e682a2f0050c65b56b53f6ddd7ccffee4ea1201586bd17ecd2d8e5ba24b8a6d67fdcf82d87a1e400b12569d3a1947b5695f29ba2e6e4a109e07fff0
7
- data.tar.gz: 5633da971c9b9b889fdd8fb87eec05ecdff82ae3f51d8e1ee4c220eaef040daa53832343ecf5be356edbbc551fb2234c344b3b0bda8d36152a38b5b084691ec7
6
+ metadata.gz: ca78ce8dbdf319c5456e6d396d86bfe86820b60e4e888197bbccb110e9646d5bde36166907fdc9e4f8eb34223148359045e828eb6c55b1ad6ece40f3ae3f4168
7
+ data.tar.gz: a4ab4a99e58c378d77dae463aa2640c55dc9e1d377f9896776dd6a4291221c23a98aa1d3809db18bbe2377640a8514d2584f27d83d973f050021644dc75d69a7
data/lib/kleisli/maybe.rb CHANGED
@@ -18,6 +18,7 @@ module Kleisli
18
18
 
19
19
  def *(other)
20
20
  self >-> f {
21
+ f = f.to_proc
21
22
  other >-> val {
22
23
  Maybe.lift(f.arity > 1 ? f.curry.call(val) : f.call(val))
23
24
  }
@@ -1,3 +1,3 @@
1
1
  module Kleisli
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.4"
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.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josep M. Bach