mangrove 0.16.0 → 0.18.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/README.md +3 -2
- data/docs/Mangrove/ControlFlow/ControlSignal.html +2 -2
- data/docs/Mangrove/ControlFlow.html +2 -2
- data/docs/Mangrove/Option/ControlSignal.html +2 -2
- data/docs/Mangrove/Option/None.html +6 -6
- data/docs/Mangrove/Option/Some.html +4 -4
- data/docs/Mangrove/Option.html +2 -2
- data/docs/Mangrove/Result/ControlSignal.html +2 -2
- data/docs/Mangrove/Result/Err.html +257 -92
- data/docs/Mangrove/Result/Ok.html +257 -92
- data/docs/Mangrove/Result.html +393 -52
- data/docs/Mangrove.html +3 -3
- data/docs/_index.html +8 -8
- data/docs/file.README.html +5 -4
- data/docs/index.html +5 -4
- data/docs/method_list.html +203 -139
- data/docs/top-level-namespace.html +2 -2
- data/lib/mangrove/option.rb +4 -4
- data/lib/mangrove/result.rb +42 -4
- data/lib/mangrove/version.rb +1 -1
- metadata +8 -51
- data/sorbet/rbi/gems/method_source@1.0.0.rbi +0 -272
- data/sorbet/rbi/gems/unparser@0.6.9.rbi +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1cfc3160fc21f4d4a647ffa2626d32fd547e5dd16e85da36614d2aee7705a2f4
|
4
|
+
data.tar.gz: 8f51c89c685e1d9bb33c803237af0de5dfc280812d7312d03cd95483219c3a47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77016fe8709eea630aa24af790d175af9105339724c7145c982a47aa4ceb4f7d84a5fe15f39f56c4a23aaf7e93a8e020d4b5843ca844fc5ddfdbe48200604e45
|
7
|
+
data.tar.gz: 75aae8968e35d34c7c2c69a16d822d0a65b0b79e0587623ad3520188e66c423a0aa7dad24b42060c37901c5b0d1e714806c5b78737249c781e77266f84a1806c
|
data/.rubocop.yml
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
AllCops:
|
4
4
|
TargetRubyVersion: 3.1
|
5
|
+
NewCops: enable
|
5
6
|
|
6
7
|
Layout/FirstArrayElementIndentation:
|
7
8
|
EnforcedStyle: consistent
|
@@ -27,6 +28,9 @@ Metrics/MethodLength:
|
|
27
28
|
Metrics/ModuleLength:
|
28
29
|
Enabled: false
|
29
30
|
|
31
|
+
Naming/BlockForwarding:
|
32
|
+
EnforcedStyle: explicit
|
33
|
+
|
30
34
|
Naming/VariableNumber:
|
31
35
|
EnforcedStyle: snake_case
|
32
36
|
|
data/README.md
CHANGED
@@ -145,9 +145,10 @@ my_none = Option::None.new
|
|
145
145
|
## Commands for Development
|
146
146
|
```
|
147
147
|
git config core.hooksPath hooks
|
148
|
+
bundle install
|
148
149
|
bundle exec tapioca init
|
149
|
-
bundle exec tapioca gems
|
150
|
-
bundle exec tapioca dsl
|
150
|
+
bundle exec tapioca gems -w `nproc`
|
151
|
+
bundle exec tapioca dsl -w `nproc`
|
151
152
|
bundle exec tapioca check-shims
|
152
153
|
bundle exec tapioca init
|
153
154
|
bundle exec rspec -f d
|
@@ -213,9 +213,9 @@
|
|
213
213
|
</div>
|
214
214
|
|
215
215
|
<div id="footer">
|
216
|
-
Generated on Wed Nov
|
216
|
+
Generated on Wed Nov 15 22:12:58 2023 by
|
217
217
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
218
|
-
0.9.34 (ruby-3.
|
218
|
+
0.9.34 (ruby-3.1.2).
|
219
219
|
</div>
|
220
220
|
|
221
221
|
</div>
|
@@ -105,9 +105,9 @@
|
|
105
105
|
</div>
|
106
106
|
|
107
107
|
<div id="footer">
|
108
|
-
Generated on Wed Nov
|
108
|
+
Generated on Wed Nov 15 22:12:58 2023 by
|
109
109
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
110
|
-
0.9.34 (ruby-3.
|
110
|
+
0.9.34 (ruby-3.1.2).
|
111
111
|
</div>
|
112
112
|
|
113
113
|
</div>
|
@@ -424,9 +424,9 @@
|
|
424
424
|
</div>
|
425
425
|
|
426
426
|
<div id="footer">
|
427
|
-
Generated on Wed Nov
|
427
|
+
Generated on Wed Nov 15 22:13:01 2023 by
|
428
428
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
429
|
-
0.9.34 (ruby-3.
|
429
|
+
0.9.34 (ruby-3.1.2).
|
430
430
|
</div>
|
431
431
|
|
432
432
|
</div>
|
@@ -471,10 +471,10 @@
|
|
471
471
|
<span class='kw'>false</span>
|
472
472
|
<span class='kw'>when</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="" title="Mangrove::Option::None (class)">None</a></span></span>
|
473
473
|
<span class='kw'>true</span>
|
474
|
-
<span class='kw'>else</span>
|
475
|
-
<span class='
|
476
|
-
<span class='
|
477
|
-
|
474
|
+
<span class='kw'>else</span> <span class='comment'># rubocop:disable Lint/DuplicateBranch
|
475
|
+
</span> <span class='comment'># Because == is defined on BasicObject, we can't be sure that `other` is an Option
|
476
|
+
</span> <span class='kw'>false</span>
|
477
|
+
<span class='kw'>end</span>
|
478
478
|
<span class='kw'>end</span></pre>
|
479
479
|
</td>
|
480
480
|
</tr>
|
@@ -1075,9 +1075,9 @@
|
|
1075
1075
|
</div>
|
1076
1076
|
|
1077
1077
|
<div id="footer">
|
1078
|
-
Generated on Wed Nov
|
1078
|
+
Generated on Wed Nov 15 22:12:59 2023 by
|
1079
1079
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1080
|
-
0.9.34 (ruby-3.
|
1080
|
+
0.9.34 (ruby-3.1.2).
|
1081
1081
|
</div>
|
1082
1082
|
|
1083
1083
|
</div>
|
@@ -575,8 +575,8 @@
|
|
575
575
|
<span class='id identifier rubyid_other'>other</span><span class='period'>.</span><span class='id identifier rubyid_instance_variable_get'>instance_variable_get</span><span class='lparen'>(</span><span class='symbol'>:@inner</span><span class='rparen'>)</span> <span class='op'>==</span> <span class='ivar'>@inner</span>
|
576
576
|
<span class='kw'>when</span> <span class='const'><span class='object_link'><a href="../Option.html" title="Mangrove::Option (module)">Option</a></span></span><span class='op'>::</span><span class='const'><span class='object_link'><a href="None.html" title="Mangrove::Option::None (class)">None</a></span></span>
|
577
577
|
<span class='kw'>false</span>
|
578
|
-
<span class='kw'>else</span>
|
579
|
-
<span class='comment'>#
|
578
|
+
<span class='kw'>else</span> <span class='comment'># rubocop:disable Lint/DuplicateBranch
|
579
|
+
</span> <span class='comment'># Because == is defined on BasicObject, we can't be sure that `other` is an Option
|
580
580
|
</span> <span class='kw'>false</span>
|
581
581
|
<span class='kw'>end</span>
|
582
582
|
<span class='kw'>end</span></pre>
|
@@ -1192,9 +1192,9 @@
|
|
1192
1192
|
</div>
|
1193
1193
|
|
1194
1194
|
<div id="footer">
|
1195
|
-
Generated on Wed Nov
|
1195
|
+
Generated on Wed Nov 15 22:12:59 2023 by
|
1196
1196
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1197
|
-
0.9.34 (ruby-3.
|
1197
|
+
0.9.34 (ruby-3.1.2).
|
1198
1198
|
</div>
|
1199
1199
|
|
1200
1200
|
</div>
|
data/docs/Mangrove/Option.html
CHANGED
@@ -1135,9 +1135,9 @@
|
|
1135
1135
|
</div>
|
1136
1136
|
|
1137
1137
|
<div id="footer">
|
1138
|
-
Generated on Wed Nov
|
1138
|
+
Generated on Wed Nov 15 22:12:58 2023 by
|
1139
1139
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1140
|
-
0.9.34 (ruby-3.
|
1140
|
+
0.9.34 (ruby-3.1.2).
|
1141
1141
|
</div>
|
1142
1142
|
|
1143
1143
|
</div>
|
@@ -424,9 +424,9 @@
|
|
424
424
|
</div>
|
425
425
|
|
426
426
|
<div id="footer">
|
427
|
-
Generated on Wed Nov
|
427
|
+
Generated on Wed Nov 15 22:13:01 2023 by
|
428
428
|
<a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
429
|
-
0.9.34 (ruby-3.
|
429
|
+
0.9.34 (ruby-3.1.2).
|
430
430
|
</div>
|
431
431
|
|
432
432
|
</div>
|