sorbet-schema 0.3.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +35 -0
- data/Gemfile.lock +17 -17
- data/lib/sorbet-schema/hash_transformer.rb +27 -2
- data/lib/sorbet-schema/version.rb +1 -1
- data/lib/typed/coercion/boolean_coercer.rb +31 -0
- data/lib/typed/coercion/coercer.rb +3 -3
- data/lib/typed/coercion/coercer_registry.rb +14 -2
- data/lib/typed/coercion/date_coercer.rb +29 -0
- data/lib/typed/coercion/enum_coercer.rb +27 -0
- data/lib/typed/coercion/float_coercer.rb +6 -4
- data/lib/typed/coercion/integer_coercer.rb +6 -4
- data/lib/typed/coercion/string_coercer.rb +6 -4
- data/lib/typed/coercion/struct_coercer.rb +12 -10
- data/lib/typed/coercion/typed_array_coercer.rb +34 -0
- data/lib/typed/coercion.rb +4 -4
- data/lib/typed/deserialize_error.rb +1 -1
- data/lib/typed/field.rb +49 -5
- data/lib/typed/hash_serializer.rb +18 -6
- data/lib/typed/json_serializer.rb +4 -2
- data/lib/typed/schema.rb +10 -0
- data/lib/typed/serialization_error.rb +17 -0
- data/lib/typed/serialize_error.rb +6 -0
- data/lib/typed/serializer.rb +12 -7
- data/lib/typed/validations/field_type_validator.rb +1 -1
- data/lib/typed/validations/type_mismatch_error.rb +1 -1
- data/sorbet/rbi/gems/{minitest@5.22.2.rbi → minitest@5.22.3.rbi} +19 -18
- data/sorbet/rbi/gems/{rubocop-ast@1.31.1.rbi → rubocop-ast@1.31.2.rbi} +70 -70
- data/sorbet/rbi/gems/{rubocop@1.61.0.rbi → rubocop@1.62.1.rbi} +276 -233
- data/sorbet/rbi/gems/{standard@1.34.0.rbi → standard@1.35.1.rbi} +56 -56
- metadata +13 -7
- /data/sorbet/rbi/gems/{rubocop-sorbet@0.7.7.rbi → rubocop-sorbet@0.7.8.rbi} +0 -0
@@ -14,25 +14,25 @@ class RuboCop::CommentConfig
|
|
14
14
|
# source://standard//lib/standard/rubocop/ext.rb#20
|
15
15
|
def initialize(processed_source); end
|
16
16
|
|
17
|
-
# source://rubocop/1.
|
17
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#63
|
18
18
|
def comment_only_line?(line_number); end
|
19
19
|
|
20
20
|
# source://forwardable/1.3.3/forwardable.rb#231
|
21
21
|
def config(*args, **_arg1, &block); end
|
22
22
|
|
23
|
-
# source://rubocop/1.
|
23
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#51
|
24
24
|
def cop_disabled_line_ranges; end
|
25
25
|
|
26
|
-
# source://rubocop/1.
|
26
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#39
|
27
27
|
def cop_enabled_at_line?(cop, line_number); end
|
28
28
|
|
29
|
-
# source://rubocop/1.
|
29
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#47
|
30
30
|
def cop_opted_in?(cop); end
|
31
31
|
|
32
|
-
# source://rubocop/1.
|
32
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#55
|
33
33
|
def extra_enabled_comments; end
|
34
34
|
|
35
|
-
# source://rubocop/1.
|
35
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#30
|
36
36
|
def processed_source; end
|
37
37
|
|
38
38
|
# source://forwardable/1.3.3/forwardable.rb#231
|
@@ -40,49 +40,49 @@ class RuboCop::CommentConfig
|
|
40
40
|
|
41
41
|
private
|
42
42
|
|
43
|
-
# source://rubocop/1.
|
43
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#96
|
44
44
|
def analyze; end
|
45
45
|
|
46
|
-
# source://rubocop/1.
|
46
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#124
|
47
47
|
def analyze_cop(analysis, directive); end
|
48
48
|
|
49
|
-
# source://rubocop/1.
|
49
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#144
|
50
50
|
def analyze_disabled(analysis, directive); end
|
51
51
|
|
52
|
-
# source://rubocop/1.
|
52
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#155
|
53
53
|
def analyze_rest(analysis, directive); end
|
54
54
|
|
55
|
-
# source://rubocop/1.
|
55
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#135
|
56
56
|
def analyze_single_line(analysis, directive); end
|
57
57
|
|
58
|
-
# source://rubocop/1.
|
58
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#164
|
59
59
|
def cop_line_ranges(analysis); end
|
60
60
|
|
61
|
-
# source://rubocop/1.
|
61
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#170
|
62
62
|
def each_directive; end
|
63
63
|
|
64
|
-
# source://rubocop/1.
|
64
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#69
|
65
65
|
def extra_enabled_comments_with_names(extras:, names:); end
|
66
66
|
|
67
|
-
# source://rubocop/1.
|
67
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#190
|
68
68
|
def handle_enable_all(directive, names, extras); end
|
69
69
|
|
70
|
-
# source://rubocop/1.
|
70
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#204
|
71
71
|
def handle_switch(directive, names, extras); end
|
72
72
|
|
73
|
-
# source://rubocop/1.
|
73
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#115
|
74
74
|
def inject_disabled_cops_directives(analyses); end
|
75
75
|
|
76
|
-
# source://rubocop/1.
|
76
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#183
|
77
77
|
def non_comment_token_line_numbers; end
|
78
78
|
|
79
|
-
# source://rubocop/1.
|
79
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#34
|
80
80
|
def old_initialize(processed_source); end
|
81
81
|
|
82
|
-
# source://rubocop/1.
|
82
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#83
|
83
83
|
def opt_in_cops; end
|
84
84
|
|
85
|
-
# source://rubocop/1.
|
85
|
+
# source://rubocop/1.62.1/lib/rubocop/comment_config.rb#179
|
86
86
|
def qualified_cop_name(cop_name); end
|
87
87
|
end
|
88
88
|
|
@@ -94,114 +94,114 @@ class RuboCop::Cop::Lint::AssignmentInCondition < ::RuboCop::Cop::Base
|
|
94
94
|
# source://standard//lib/standard/rubocop/ext.rb#4
|
95
95
|
def message(_); end
|
96
96
|
|
97
|
-
# source://rubocop/1.
|
97
|
+
# source://rubocop/1.62.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
98
98
|
def on_if(node); end
|
99
99
|
|
100
|
-
# source://rubocop/1.
|
100
|
+
# source://rubocop/1.62.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
101
101
|
def on_until(node); end
|
102
102
|
|
103
|
-
# source://rubocop/1.
|
103
|
+
# source://rubocop/1.62.1/lib/rubocop/cop/lint/assignment_in_condition.rb#55
|
104
104
|
def on_while(node); end
|
105
105
|
|
106
106
|
private
|
107
107
|
|
108
|
-
# source://rubocop/1.
|
108
|
+
# source://rubocop/1.62.1/lib/rubocop/cop/lint/assignment_in_condition.rb#82
|
109
109
|
def allowed_construct?(asgn_node); end
|
110
110
|
|
111
|
-
# source://rubocop/1.
|
111
|
+
# source://rubocop/1.62.1/lib/rubocop/cop/lint/assignment_in_condition.rb#86
|
112
112
|
def conditional_assignment?(asgn_node); end
|
113
113
|
|
114
|
-
# source://rubocop/1.
|
114
|
+
# source://rubocop/1.62.1/lib/rubocop/cop/lint/assignment_in_condition.rb#90
|
115
115
|
def skip_children?(asgn_node); end
|
116
116
|
|
117
|
-
# source://rubocop/1.
|
117
|
+
# source://rubocop/1.62.1/lib/rubocop/cop/lint/assignment_in_condition.rb#96
|
118
118
|
def traverse_node(node, &block); end
|
119
119
|
end
|
120
120
|
|
121
121
|
# source://standard//lib/standard/rubocop/ext.rb#9
|
122
122
|
class RuboCop::DirectiveComment
|
123
|
-
# source://rubocop/1.
|
123
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#32
|
124
124
|
def initialize(comment, cop_registry = T.unsafe(nil)); end
|
125
125
|
|
126
|
-
# source://rubocop/1.
|
126
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#82
|
127
127
|
def all_cops?; end
|
128
128
|
|
129
|
-
# source://rubocop/1.
|
129
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#30
|
130
130
|
def comment; end
|
131
131
|
|
132
|
-
# source://rubocop/1.
|
132
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#87
|
133
133
|
def cop_names; end
|
134
134
|
|
135
|
-
# source://rubocop/1.
|
135
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#30
|
136
136
|
def cop_registry; end
|
137
137
|
|
138
|
-
# source://rubocop/1.
|
138
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#30
|
139
139
|
def cops; end
|
140
140
|
|
141
|
-
# source://rubocop/1.
|
141
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#93
|
142
142
|
def department_names; end
|
143
143
|
|
144
|
-
# source://rubocop/1.
|
144
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#107
|
145
145
|
def directive_count; end
|
146
146
|
|
147
|
-
# source://rubocop/1.
|
147
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#62
|
148
148
|
def disabled?; end
|
149
149
|
|
150
|
-
# source://rubocop/1.
|
150
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#77
|
151
151
|
def disabled_all?; end
|
152
152
|
|
153
|
-
# source://rubocop/1.
|
153
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#67
|
154
154
|
def enabled?; end
|
155
155
|
|
156
|
-
# source://rubocop/1.
|
156
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#72
|
157
157
|
def enabled_all?; end
|
158
158
|
|
159
|
-
# source://rubocop/1.
|
159
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#98
|
160
160
|
def in_directive_department?(cop); end
|
161
161
|
|
162
|
-
# source://rubocop/1.
|
162
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#112
|
163
163
|
def line_number; end
|
164
164
|
|
165
|
-
# source://rubocop/1.
|
165
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#44
|
166
166
|
def match?(cop_names); end
|
167
167
|
|
168
|
-
# source://rubocop/1.
|
168
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#57
|
169
169
|
def match_captures; end
|
170
170
|
|
171
|
-
# source://rubocop/1.
|
171
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#30
|
172
172
|
def mode; end
|
173
173
|
|
174
|
-
# source://rubocop/1.
|
174
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#103
|
175
175
|
def overridden_by_department?(cop); end
|
176
176
|
|
177
|
-
# source://rubocop/1.
|
177
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#48
|
178
178
|
def range; end
|
179
179
|
|
180
|
-
# source://rubocop/1.
|
180
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#39
|
181
181
|
def single_line?; end
|
182
182
|
|
183
183
|
private
|
184
184
|
|
185
|
-
# source://rubocop/1.
|
185
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#133
|
186
186
|
def all_cop_names; end
|
187
187
|
|
188
|
-
# source://rubocop/1.
|
188
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#137
|
189
189
|
def cop_names_for_department(department); end
|
190
190
|
|
191
|
-
# source://rubocop/1.
|
191
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#129
|
192
192
|
def department?(name); end
|
193
193
|
|
194
|
-
# source://rubocop/1.
|
195
|
-
def
|
194
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#142
|
195
|
+
def exclude_lint_department_cops(cops); end
|
196
196
|
|
197
|
-
# source://rubocop/1.
|
197
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#122
|
198
198
|
def parsed_cop_names; end
|
199
199
|
|
200
|
-
# source://rubocop/1.
|
200
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#118
|
201
201
|
def splitted_cops_string; end
|
202
202
|
|
203
203
|
class << self
|
204
|
-
# source://rubocop/1.
|
204
|
+
# source://rubocop/1.62.1/lib/rubocop/directive_comment.rb#26
|
205
205
|
def before_comment(line); end
|
206
206
|
end
|
207
207
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sorbet-schema
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Max VelDink
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-03-
|
11
|
+
date: 2024-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sorbet-result
|
@@ -87,20 +87,26 @@ files:
|
|
87
87
|
- lib/sorbet-schema/hash_transformer.rb
|
88
88
|
- lib/sorbet-schema/version.rb
|
89
89
|
- lib/typed/coercion.rb
|
90
|
+
- lib/typed/coercion/boolean_coercer.rb
|
90
91
|
- lib/typed/coercion/coercer.rb
|
91
92
|
- lib/typed/coercion/coercer_registry.rb
|
92
93
|
- lib/typed/coercion/coercion_error.rb
|
93
94
|
- lib/typed/coercion/coercion_not_supported_error.rb
|
95
|
+
- lib/typed/coercion/date_coercer.rb
|
96
|
+
- lib/typed/coercion/enum_coercer.rb
|
94
97
|
- lib/typed/coercion/float_coercer.rb
|
95
98
|
- lib/typed/coercion/integer_coercer.rb
|
96
99
|
- lib/typed/coercion/string_coercer.rb
|
97
100
|
- lib/typed/coercion/struct_coercer.rb
|
101
|
+
- lib/typed/coercion/typed_array_coercer.rb
|
98
102
|
- lib/typed/deserialize_error.rb
|
99
103
|
- lib/typed/field.rb
|
100
104
|
- lib/typed/hash_serializer.rb
|
101
105
|
- lib/typed/json_serializer.rb
|
102
106
|
- lib/typed/parse_error.rb
|
103
107
|
- lib/typed/schema.rb
|
108
|
+
- lib/typed/serialization_error.rb
|
109
|
+
- lib/typed/serialize_error.rb
|
104
110
|
- lib/typed/serializer.rb
|
105
111
|
- lib/typed/validations.rb
|
106
112
|
- lib/typed/validations/field_type_validator.rb
|
@@ -126,7 +132,7 @@ files:
|
|
126
132
|
- sorbet/rbi/gems/lint_roller@1.1.0.rbi
|
127
133
|
- sorbet/rbi/gems/minitest-focus@1.4.0.rbi
|
128
134
|
- sorbet/rbi/gems/minitest-reporters@1.6.1.rbi
|
129
|
-
- sorbet/rbi/gems/minitest@5.22.
|
135
|
+
- sorbet/rbi/gems/minitest@5.22.3.rbi
|
130
136
|
- sorbet/rbi/gems/netrc@0.11.0.rbi
|
131
137
|
- sorbet/rbi/gems/parallel@1.24.0.rbi
|
132
138
|
- sorbet/rbi/gems/parser@3.3.0.5.rbi
|
@@ -140,10 +146,10 @@ files:
|
|
140
146
|
- sorbet/rbi/gems/regexp_parser@2.9.0.rbi
|
141
147
|
- sorbet/rbi/gems/reline@0.4.3.rbi
|
142
148
|
- sorbet/rbi/gems/rexml@3.2.6.rbi
|
143
|
-
- sorbet/rbi/gems/rubocop-ast@1.31.
|
149
|
+
- sorbet/rbi/gems/rubocop-ast@1.31.2.rbi
|
144
150
|
- sorbet/rbi/gems/rubocop-performance@1.20.2.rbi
|
145
|
-
- sorbet/rbi/gems/rubocop-sorbet@0.7.
|
146
|
-
- sorbet/rbi/gems/rubocop@1.
|
151
|
+
- sorbet/rbi/gems/rubocop-sorbet@0.7.8.rbi
|
152
|
+
- sorbet/rbi/gems/rubocop@1.62.1.rbi
|
147
153
|
- sorbet/rbi/gems/ruby-progressbar@1.13.0.rbi
|
148
154
|
- sorbet/rbi/gems/sorbet-result@1.1.0.rbi
|
149
155
|
- sorbet/rbi/gems/sorbet-struct-comparable@1.3.0.rbi
|
@@ -151,7 +157,7 @@ files:
|
|
151
157
|
- sorbet/rbi/gems/standard-custom@1.0.2.rbi
|
152
158
|
- sorbet/rbi/gems/standard-performance@1.3.1.rbi
|
153
159
|
- sorbet/rbi/gems/standard-sorbet@0.0.2.rbi
|
154
|
-
- sorbet/rbi/gems/standard@1.
|
160
|
+
- sorbet/rbi/gems/standard@1.35.1.rbi
|
155
161
|
- sorbet/rbi/gems/stringio@3.1.0.rbi
|
156
162
|
- sorbet/rbi/gems/syntax_tree@6.2.0.rbi
|
157
163
|
- sorbet/rbi/gems/tapioca@0.12.0.rbi
|
File without changes
|