dry-monads-sorbet 1.1.0.pre → 1.1.0.pre.2

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: '049f294fb576c334ec99b72100c3c5ecec9457817277afa92f54d356ebc54eb5'
4
- data.tar.gz: a8c16ec2b42ce8f3269bfd070f506ebaffde611eab1b2d02642d22f92ee0c697
3
+ metadata.gz: ead24a6629229828f0f40df6fc7585f73b81bc0fd6e3b1473195012fb6618214
4
+ data.tar.gz: e9d20aac3f6161b14974998c869866b49ece49e80666bb6affffded96f103c8c
5
5
  SHA512:
6
- metadata.gz: d6a7e46d9f3493d682cabdd58f26557f3e1a41399ff4a9ef6c91a25e869709269bd5768bf91734b677f89aab32cf08f72404df4b0e73ca89a2dd2c0584ea0d93
7
- data.tar.gz: 3a786a7232de50b443739a0b46fe5db4142306eb8b6499785f82e9e3f77f382e4266bb05ff78b3f01ee6f5f679da1a9a55f8cc8fb08519ea960d7b258eade28b
6
+ metadata.gz: afdbea8a3e22f43a4f7720f6453d9dcb6c323fa258b5cb1ac0d7cbd348014c73cd7920ffbee3ebf529535b2335450d348850457ff42140d2bff7a01422f7e5da
7
+ data.tar.gz: c1d67c6baab915a51c0be38d835739c6ac661d396a490db3ffbb8958a686586071b0970d0bbbf575a78ada6d4689a4aac8ad56684167d62c9d8d056f341cc623
@@ -1 +1 @@
1
- 2.5.5
1
+ 2.7.1
data/README.md CHANGED
@@ -16,7 +16,7 @@ require 'dry/monads/sorbet'
16
16
  class MyClass
17
17
  extend T::Sig
18
18
 
19
- sig{returns(Dry::Monads::Sorbet[StandardError, String])}
20
- def my_method
19
+ sig{returns(Dry::Monads::Result[StandardError, String])}
20
+ def my_result
21
21
  ...
22
22
  ```
@@ -3,7 +3,7 @@
3
3
  module Dry
4
4
  module Monads
5
5
  module Sorbet
6
- VERSION = '1.1.0.pre'
6
+ VERSION = '1.1.0.pre.2'
7
7
  end
8
8
  end
9
9
  end
@@ -1,9 +1,7 @@
1
- # typed: true
1
+ # typed: strong
2
2
  #
3
3
  # dry-monads-1.3.1
4
4
  #
5
- # Note: This file depends on dry/monads/sorbet to define generics.
6
-
7
5
  module Dry
8
6
  end
9
7
  module Dry::Monads
@@ -40,9 +38,6 @@ module Dry::Monads::Transformer
40
38
  end
41
39
  class Dry::Monads::Maybe
42
40
  extend T::Helpers
43
- extend T::Generic
44
- Elem = type_member
45
-
46
41
  abstract!
47
42
  sealed!
48
43
 
@@ -81,21 +76,14 @@ class Dry::Monads::Maybe
81
76
  end
82
77
  def to_result(val = nil, &blk); end
83
78
 
84
- sig {returns(T::Boolean)}
85
79
  def failure?; end
86
80
  def monad; end
87
-
88
- sig {returns(T::Boolean)}
89
81
  def none?; end
90
82
  def self.coerce(value); end
91
83
  def self.lift(*args, &block); end
92
84
  def self.pure(value = nil, &block); end
93
85
  def self.to_proc; end
94
-
95
- sig {returns(T::Boolean)}
96
86
  def some?; end
97
-
98
- sig {returns(T::Boolean)}
99
87
  def success?; end
100
88
  def to_maybe; end
101
89
  def to_monad; end
@@ -166,9 +154,6 @@ module Dry::Monads::Maybe::Hash
166
154
  end
167
155
  class Dry::Monads::Result
168
156
  extend T::Helpers
169
- extend T::Generic
170
- FailureType = type_member
171
- SuccessType = type_member
172
157
  abstract!
173
158
  sealed!
174
159
 
@@ -210,8 +195,9 @@ class Dry::Monads::Result
210
195
  def failure; end
211
196
 
212
197
  sig do
213
- params(blk: T.proc.params(arg0: FailureType).returns(Dry::Monads::Result[FailureType, SuccessType]))
214
- .returns(Dry::Monads::Result[FailureType, SuccessType])
198
+ type_parameters(:NewFailureType)
199
+ .params(blk: T.proc.params(arg0: FailureType).returns(Dry::Monads::Result[T.type_parameter(:out, :NewFailureType), SuccessType]))
200
+ .returns(Dry::Monads::Result[T.type_parameter(:out, :NewFailureType), SuccessType])
215
201
  end
216
202
  def or(&blk); end
217
203
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dry-monads-sorbet
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0.pre
4
+ version: 1.1.0.pre.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Luke Worth
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-01-18 00:00:00.000000000 Z
11
+ date: 2020-06-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sorbet
@@ -151,8 +151,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
151
  - !ruby/object:Gem::Version
152
152
  version: 1.3.1
153
153
  requirements: []
154
- rubyforge_project:
155
- rubygems_version: 2.7.6.2
154
+ rubygems_version: 3.1.2
156
155
  signing_key:
157
156
  specification_version: 4
158
157
  summary: Sorbet type hints for Dry::Monads