sorbet-rails 0.7.24 → 0.7.25
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sorbet-rails/active_record_rbi_formatter.rb +1 -1
- data/spec/test_data/v5.2/expected_active_record_base.rbi +4 -4
- data/spec/test_data/v5.2/expected_active_record_relation.rbi +4 -4
- data/spec/test_data/v6.0/expected_active_record_base.rbi +4 -4
- data/spec/test_data/v6.0/expected_active_record_relation.rbi +4 -4
- data/spec/test_data/v6.1/expected_active_record_base.rbi +4 -4
- data/spec/test_data/v6.1/expected_active_record_relation.rbi +4 -4
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99ef9d97be5d8b7c9ce91c26827337bb0cf170a704d0e1c025a1a47964b8f0cd
|
4
|
+
data.tar.gz: 831bc3d6fc4aafd8e0f4ea315369a410b3dbd90669a8bbd5b5f059fe9ce6543b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7309e5f22a4f7979ff5665c0d17d2c22bf823d9bbb4d6468668d6df0ad5b6e4243a300974e5b289c8314adbfc40f04d889a3d4a69a1d932b443d5ae688a11256
|
7
|
+
data.tar.gz: '06496c5b1cf2b7e688fb100cba9d3dfae8baded69712b0a8b2e4adfbef27ec93dca88205813776c9905329ac17e118bb871c19a2d6abfbaff1dce006c27eda3d'
|
@@ -279,7 +279,7 @@ class SorbetRails::ActiveRecordRbiFormatter
|
|
279
279
|
class_rbi.create_method(
|
280
280
|
boolean_method,
|
281
281
|
parameters: [
|
282
|
-
Parameter.new("&block", type: "T.nilable(T.proc.params(e: #{type}).returns(T::Boolean))"),
|
282
|
+
Parameter.new("&block", type: "T.nilable(T.proc.params(e: #{type}).returns(T.nilable(T::Boolean)))"),
|
283
283
|
],
|
284
284
|
return_type: "T::Boolean",
|
285
285
|
class_method: class_method,
|
@@ -96,16 +96,16 @@ class ActiveRecord::Base
|
|
96
96
|
end
|
97
97
|
def self.find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
98
98
|
|
99
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
99
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
100
100
|
def self.any?(&block); end
|
101
101
|
|
102
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
102
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
103
103
|
def self.many?(&block); end
|
104
104
|
|
105
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
105
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
106
106
|
def self.none?(&block); end
|
107
107
|
|
108
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
108
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
109
109
|
def self.one?(&block); end
|
110
110
|
|
111
111
|
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
@@ -101,16 +101,16 @@ class ActiveRecord::Relation
|
|
101
101
|
end
|
102
102
|
def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
103
103
|
|
104
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
104
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
105
105
|
def any?(&block); end
|
106
106
|
|
107
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
107
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
108
108
|
def many?(&block); end
|
109
109
|
|
110
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
110
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
111
111
|
def none?(&block); end
|
112
112
|
|
113
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
113
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
114
114
|
def one?(&block); end
|
115
115
|
|
116
116
|
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
@@ -96,16 +96,16 @@ class ActiveRecord::Base
|
|
96
96
|
end
|
97
97
|
def self.find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
98
98
|
|
99
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
99
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
100
100
|
def self.any?(&block); end
|
101
101
|
|
102
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
102
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
103
103
|
def self.many?(&block); end
|
104
104
|
|
105
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
105
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
106
106
|
def self.none?(&block); end
|
107
107
|
|
108
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
108
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
109
109
|
def self.one?(&block); end
|
110
110
|
|
111
111
|
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
@@ -101,16 +101,16 @@ class ActiveRecord::Relation
|
|
101
101
|
end
|
102
102
|
def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
103
103
|
|
104
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
104
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
105
105
|
def any?(&block); end
|
106
106
|
|
107
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
107
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
108
108
|
def many?(&block); end
|
109
109
|
|
110
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
110
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
111
111
|
def none?(&block); end
|
112
112
|
|
113
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
113
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
114
114
|
def one?(&block); end
|
115
115
|
|
116
116
|
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
@@ -96,16 +96,16 @@ class ActiveRecord::Base
|
|
96
96
|
end
|
97
97
|
def self.find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
98
98
|
|
99
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
99
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
100
100
|
def self.any?(&block); end
|
101
101
|
|
102
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
102
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
103
103
|
def self.many?(&block); end
|
104
104
|
|
105
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
105
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
106
106
|
def self.none?(&block); end
|
107
107
|
|
108
|
-
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T::Boolean))).returns(T::Boolean) }
|
108
|
+
sig { params(block: T.nilable(T.proc.params(e: T.attached_class).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
109
109
|
def self.one?(&block); end
|
110
110
|
|
111
111
|
sig { params(conditions: T.untyped).returns(T::Boolean) }
|
@@ -101,16 +101,16 @@ class ActiveRecord::Relation
|
|
101
101
|
end
|
102
102
|
def find_in_batches(start: nil, finish: nil, batch_size: 1000, error_on_ignore: nil, &block); end
|
103
103
|
|
104
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
104
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
105
105
|
def any?(&block); end
|
106
106
|
|
107
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
107
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
108
108
|
def many?(&block); end
|
109
109
|
|
110
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
110
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
111
111
|
def none?(&block); end
|
112
112
|
|
113
|
-
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T::Boolean))).returns(T::Boolean) }
|
113
|
+
sig { params(block: T.nilable(T.proc.params(e: Elem).returns(T.nilable(T::Boolean)))).returns(T::Boolean) }
|
114
114
|
def one?(&block); end
|
115
115
|
|
116
116
|
sig { params(conditions: T.untyped).returns(T::Boolean) }
|