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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ea9995d332dc919678919021f657e1b0e6c97030b951c046ec3c5679d67259ef
4
- data.tar.gz: 4ee98435162b3514c091e0e4f2e716b90a350f5b9ec5e4c01aa2237e3df62c21
3
+ metadata.gz: 99ef9d97be5d8b7c9ce91c26827337bb0cf170a704d0e1c025a1a47964b8f0cd
4
+ data.tar.gz: 831bc3d6fc4aafd8e0f4ea315369a410b3dbd90669a8bbd5b5f059fe9ce6543b
5
5
  SHA512:
6
- metadata.gz: '009ecc5a48c03bdf2169355907c43c92baaf570eaed5b8770d4afe8fe2bff377c4204a78dc4ed27a151854606bba464152f74ac3ed49a640ee55ae9e37afeebf'
7
- data.tar.gz: c317f146ba948570d989aad38f9d11e1fff5dcae666284513f574be1630177c6be668f341731244b4b6803b0a154cba6d45c23c6c4f2194190c632c54a534a1b
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) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sorbet-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.24
4
+ version: 0.7.25
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chan Zuckerberg Initiative