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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1fff1639273ef4d4926c8a962ccca0717601bf37b5358f2ba65d1d3dd6f30ea
4
- data.tar.gz: beb11055a2c9fff7b68af66586a226b97fe53cec2d22fb67180f81d1613eb07c
3
+ metadata.gz: aa2f22dcbb9d2f0da9e28c414cb0c5031ca0e85efae1fb1ff43f9f7fedb27467
4
+ data.tar.gz: ee48cde475b14fd8d1f558b77b9208c597d39ed6e94280008c08b722bc870ad2
5
5
  SHA512:
6
- metadata.gz: 82a914cdda372923944b1ff69839cc46b7bc00e26b2aca4abe91308bbb7d40ac6ce2fe0959eb6a8ae0d4b09f029744d83f807fa6e2b4d1e4469fa4eba56edbc7
7
- data.tar.gz: 4dc31bad6e1b504d1c175d787074d0e2623964bbeceeb292300e6c84103e5dc8917177e8d191060a759c28dae1eaf7ff4ab9fbb40557300f2630a5e1ea90c83b
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
  ```
@@ -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
 
@@ -2,5 +2,5 @@
2
2
  # frozen_string_literal: true
3
3
 
4
4
  module Mangrove
5
- VERSION = "0.23.0"
5
+ VERSION = "0.24.0"
6
6
  end
@@ -4,6 +4,7 @@
4
4
  require "mangrove"
5
5
  require "tapioca/dsl"
6
6
 
7
+ # @api private
7
8
  module Tapioca
8
9
  module Compilers
9
10
  class MangroveEnum < Tapioca::Dsl::Compiler
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.23.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: 2023-12-06 00:00:00.000000000 Z
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.11128
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.11128
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.4.10
132
+ rubygems_version: 3.5.3
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Type Utility for Ruby.