resonad 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 +4 -4
- data/lib/resonad.rb +2 -2
- data/lib/resonad/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8fb9bdc62ea509b9a399e73085ee092022ae7b7c
|
4
|
+
data.tar.gz: ec43b7e451ab8dd66555594bbef173fb847796e9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8a04e80c7f93f45ac43b5502b21e9a55e20fc640fd52ce5bba1951b98a9794883351bc0e7bbf8f9e634c09fcf8f835641d4f97c856653e086466241b6b47653f
|
7
|
+
data.tar.gz: e26eddbce9dd17b6fd569cb658a3122bc02ad6cff7b570e67bb7128f236f8568eb45400d52e07f9fb9957863dacaa7b5420439e79bf39148fa2ad38e07a3a2fc
|
data/lib/resonad.rb
CHANGED
@@ -134,11 +134,11 @@ class Resonad
|
|
134
134
|
def flat_map
|
135
135
|
raise NotImplementedError, "should be implemented in subclass"
|
136
136
|
end
|
137
|
-
|
137
|
+
def and_then(&block); flat_map(&block); end
|
138
138
|
|
139
139
|
def flat_map_error
|
140
140
|
raise NotImplementedError, "should be implemented in subclass"
|
141
141
|
end
|
142
|
-
|
142
|
+
def or_else(&block); flat_map_error(&block); end
|
143
143
|
|
144
144
|
end
|
data/lib/resonad/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: resonad
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Dalling
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-05-
|
11
|
+
date: 2017-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|