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 +4 -4
- data/.ruby-version +1 -1
- data/README.md +2 -2
- data/lib/dry/monads/sorbet/version.rb +1 -1
- data/rbi/dry-monads.rbi +4 -18
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ead24a6629229828f0f40df6fc7585f73b81bc0fd6e3b1473195012fb6618214
|
4
|
+
data.tar.gz: e9d20aac3f6161b14974998c869866b49ece49e80666bb6affffded96f103c8c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: afdbea8a3e22f43a4f7720f6453d9dcb6c323fa258b5cb1ac0d7cbd348014c73cd7920ffbee3ebf529535b2335450d348850457ff42140d2bff7a01422f7e5da
|
7
|
+
data.tar.gz: c1d67c6baab915a51c0be38d835739c6ac661d396a490db3ffbb8958a686586071b0970d0bbbf575a78ada6d4689a4aac8ad56684167d62c9d8d056f341cc623
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.1
|
data/README.md
CHANGED
data/rbi/dry-monads.rbi
CHANGED
@@ -1,9 +1,7 @@
|
|
1
|
-
# typed:
|
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
|
-
|
214
|
-
.returns(Dry::Monads::Result[
|
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-
|
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
|
-
|
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
|