gizzard 0.9.0 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: be6a21f08cb30550bee2e44335abff6799e078ba10d74d501509d4d60fbbd389
4
- data.tar.gz: b7ce022da62abd511a35474f309c6897d35de8108c301a83f3fbe31c5330ea6c
3
+ metadata.gz: cb2568fde715eb73945c6b19987ea08b3e2c72f34a6e4b5c5ab6dc8758d3f228
4
+ data.tar.gz: 3522cc6db511d5038947be77b59f6cb91c001df133690455424297ac68bd2b6c
5
5
  SHA512:
6
- metadata.gz: bef87f613ed1a34be31aac3763c9e77ff092de9a92dea49d9ee699f077b6e1d359b019ada16ad249c4e86fb2c993388843a0e9947084e2dbcd3a18c3c40a647f
7
- data.tar.gz: 99df58b96433a1a0e1b4f81b612f675bf3818924203b973414267808873b34d1697f91eb140cbb3bbd5413292bafa92a8e70667517cef07f83469acee687c06c
6
+ metadata.gz: d33ca160e6cf2499cab2eb47d122eb9200c1d255531b76ada7dfd91f79966f3cc0709fbd877bf69ad38c68435294d63d16012ecd341d6888f30b8226fa65cf28
7
+ data.tar.gz: 55c1901b302755e81bc945337b9dec1f3d1ef92d3faeecd6f967fc679c9dbf30718ca10bd3772782ca03326b42e9823e84ecc576f5cab6d285426c91b5d27f56
@@ -1,3 +1,3 @@
1
1
  module Gizzard
2
- VERSION = "0.9.0"
2
+ VERSION = "0.9.1"
3
3
  end
data/sig/gizzard.rbs ADDED
@@ -0,0 +1,45 @@
1
+ # TypeProf 0.21.8
2
+
3
+ # Classes
4
+ module Gizzard
5
+ VERSION: String
6
+
7
+ class Error < StandardError
8
+ end
9
+
10
+ module Base
11
+ extend ActiveSupport::Concern
12
+ extend ActiveRecord::Core::ClassMethods
13
+
14
+ module ClassMethods
15
+ def preload_associations: (records: untyped, associations: untyped, ?scope: nil) -> nil
16
+ def delete_all_by_id: (?batch_size: Integer) -> untyped
17
+ def less_than_id: (Integer id) -> ActiveRecord::Relation
18
+ def greater_than_id: (Integer id) -> ActiveRecord::Relation
19
+ def less_than: (String | Symbol key, untyped value) -> ActiveRecord::Relation
20
+ def less_than_equal: (String | Symbol key, untyped value) -> ActiveRecord::Relation
21
+ def greater_than: (String | Symbol key, untyped value) -> ActiveRecord::Relation
22
+ def greater_than_equal: (String | Symbol key, untyped value) -> ActiveRecord::Relation
23
+ end
24
+ end
25
+
26
+ module Mysql
27
+ include Base
28
+ extend Base::ClassMethods
29
+
30
+ module ClassMethods
31
+ def lock_in_share: -> ActiveRecord::Relation
32
+ def order_by_field: (String | Symbol column, [untyped] values) -> ActiveRecord::Relation
33
+ def order_by_id_field: ([untyped] ids) -> ActiveRecord::Relation
34
+ def use_index: (String | [String] indexes) -> ActiveRecord::Relation
35
+ def force_index: (String | [String] indexes) -> ActiveRecord::Relation
36
+ def joins_with_use_index: (String | Symbol relation_name, String | [String] indexes) -> ActiveRecord::Relation
37
+ def joins_with_force_index: (String | Symbol relation_name, String | [String] indexes) -> ActiveRecord::Relation
38
+ def left_outer_joins_with_use_index: (String | Symbol relation_name, String | [String] indexes) -> ActiveRecord::Relation
39
+ def left_outer_joins_with_force_index: (String | Symbol relation_name, String | [String] indexes) -> ActiveRecord::Relation
40
+ end
41
+
42
+ def to_id: -> Integer
43
+ def lock_in_share!: -> untyped
44
+ end
45
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gizzard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takahiro Ooishi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-12-09 00:00:00.000000000 Z
11
+ date: 2023-12-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -164,6 +164,34 @@ dependencies:
164
164
  - - "~>"
165
165
  - !ruby/object:Gem::Version
166
166
  version: '3.0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: typeprof
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: steep
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
167
195
  description: Often use snippet for ActiveRecord.
168
196
  email:
169
197
  - taka0125@gmail.com
@@ -177,6 +205,7 @@ files:
177
205
  - lib/gizzard/base.rb
178
206
  - lib/gizzard/mysql.rb
179
207
  - lib/gizzard/version.rb
208
+ - sig/gizzard.rbs
180
209
  homepage: https://github.com/taka0125/gizzard
181
210
  licenses: []
182
211
  metadata: {}