functional-light-service 0.3 → 0.3.2
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b33dd196200b5dd911a610b2ab52700ac5a7ea922ed43f71302013a978592355
|
4
|
+
data.tar.gz: 80e4a6e36df09124cdde00130751675786bb2d0ab6522310d49586a9252736a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e9129b89946d630276028b90dfa66acb7e434382a29e1d3b464264267c01ebd35c2a4f61de9007c22952bb18f72c5d260d48a3a7638d67a638328000bcc03d2d
|
7
|
+
data.tar.gz: c63f9263a8b2bf18a6434a5431095bd1ca6510743200ba2b5e55272262af76eb9b0d09cb9d6b2e4abe602ba230174c3e4732a917d57bfd831f6c2a661f955826
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.2
|
@@ -17,20 +17,14 @@ module FunctionalLightService
|
|
17
17
|
# rubocop:disable Metrics/BlockLength
|
18
18
|
FunctionalLightService.impl(Result) do
|
19
19
|
def map(proc = nil, &block)
|
20
|
-
|
21
|
-
Success() { |_| bind(proc || block) }
|
22
|
-
Failure() { |_| self }
|
23
|
-
end
|
20
|
+
success? ? bind(proc || block) : self
|
24
21
|
end
|
25
22
|
|
26
23
|
alias :>> :map
|
27
24
|
alias :and_then :map
|
28
25
|
|
29
26
|
def map_err(proc = nil, &block)
|
30
|
-
|
31
|
-
Success() { |_| self }
|
32
|
-
Failure() { |_| bind(proc || block) }
|
33
|
-
end
|
27
|
+
failure? ? bind(proc || block) : self
|
34
28
|
end
|
35
29
|
|
36
30
|
alias :or_else :map_err
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: functional-light-service
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boscolo Michele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dry-inflector
|
@@ -256,7 +256,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
256
256
|
- !ruby/object:Gem::Version
|
257
257
|
version: '0'
|
258
258
|
requirements: []
|
259
|
-
rubygems_version: 3.
|
259
|
+
rubygems_version: 3.1.2
|
260
260
|
signing_key:
|
261
261
|
specification_version: 4
|
262
262
|
summary: A service skeleton with an emphasis on simplicity with a pinch a functional
|