mangrove 0.23.0 → 0.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/lib/mangrove/result.rb +7 -0
- data/lib/mangrove/version.rb +1 -1
- data/lib/tapioca/dsl/compilers/mangrove_enum.rb +1 -0
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aa2f22dcbb9d2f0da9e28c414cb0c5031ca0e85efae1fb1ff43f9f7fedb27467
|
4
|
+
data.tar.gz: ee48cde475b14fd8d1f558b77b9208c597d39ed6e94280008c08b722bc870ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc8872e6bc079a3ff532212477cced1f87f09fc0f600c0a6a2abad0ce4ba46689dcafda6f9ec7519f33b76c45cdc0bfde527c60f85a25cbea069d3c68e64d981
|
7
|
+
data.tar.gz: 22092ce2f3907e1419efb6686e5fd588ed39d37d40f6fa1a0a5b446655fd2e90e6466cace05ec7e993b3d2d57bc1a994698d531c2fe7102cfc6f016f5164134f
|
data/README.md
CHANGED
@@ -21,7 +21,7 @@ bundle add mangrove
|
|
21
21
|
|
22
22
|
## Usage
|
23
23
|
|
24
|
-
[Documentation is available here](https://kazzix14.github.io/mangrove/).
|
24
|
+
[Documentation is available here](https://kazzix14.github.io/mangrove/docs).
|
25
25
|
For more concrete examples, see [`spec/**/**_spec.rb`](https://github.com/kazzix14/mangrove/tree/main/spec).
|
26
26
|
|
27
27
|
```ruby
|
@@ -54,6 +54,7 @@ bundle exec spoom tc
|
|
54
54
|
bundle exec ordinare --check
|
55
55
|
bundle exec ruboclean
|
56
56
|
bundle exec yardoc -o docs/ --plugin yard-sorbet
|
57
|
+
bundle exec yard server --reload --plugin yard-sorbet
|
57
58
|
rake build
|
58
59
|
rake release
|
59
60
|
```
|
data/lib/mangrove/result.rb
CHANGED
@@ -21,9 +21,12 @@ module Mangrove
|
|
21
21
|
sig { abstract.params(other: BasicObject).returns(T::Boolean) }
|
22
22
|
def ==(other); end
|
23
23
|
|
24
|
+
# @deprecated Use #is_a?(Result::Ok) instead to enable Sorbet to define types statically.
|
25
|
+
# This method will be removed in future versions.
|
24
26
|
sig { abstract.returns(T::Boolean) }
|
25
27
|
def ok?; end
|
26
28
|
|
29
|
+
# @deprecated Use #is_a?(Result::Err) instead to enable Sorbet to define types statically.
|
27
30
|
sig { abstract.returns(T::Boolean) }
|
28
31
|
def err?; end
|
29
32
|
|
@@ -209,9 +212,11 @@ module Mangrove
|
|
209
212
|
@inner
|
210
213
|
end
|
211
214
|
|
215
|
+
# @deprecated Use #is_a?(Result::Ok) instead to enable Sorbet to define types statically.
|
212
216
|
sig { override.returns(T::Boolean) }
|
213
217
|
def ok? = true
|
214
218
|
|
219
|
+
# @deprecated Use #is_a?(Result::Err) instead to enable Sorbet to define types statically.
|
215
220
|
sig { override.returns(T::Boolean) }
|
216
221
|
def err? = false
|
217
222
|
|
@@ -378,9 +383,11 @@ module Mangrove
|
|
378
383
|
raise Result::ControlSignal, block.call(@inner)
|
379
384
|
end
|
380
385
|
|
386
|
+
# @deprecated Use #is_a?(Result::Ok) instead to enable Sorbet to define types statically.
|
381
387
|
sig { override.returns(T::Boolean) }
|
382
388
|
def ok? = false
|
383
389
|
|
390
|
+
# @deprecated Use #is_a?(Result::Err) instead to enable Sorbet to define types statically.
|
384
391
|
sig { override.returns(T::Boolean) }
|
385
392
|
def err? = true
|
386
393
|
|
data/lib/mangrove/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mangrove
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kazuma Murata
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-runtime
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.5.
|
19
|
+
version: 0.5.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.5.
|
26
|
+
version: 0.5.0
|
27
27
|
description: Type Utility for Ruby.
|
28
28
|
email:
|
29
29
|
- kazzix14@gmail.com
|
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
129
129
|
- !ruby/object:Gem::Version
|
130
130
|
version: '0'
|
131
131
|
requirements: []
|
132
|
-
rubygems_version: 3.
|
132
|
+
rubygems_version: 3.5.3
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Type Utility for Ruby.
|