gizzard 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gizzard/version.rb +1 -1
- data/sig/gizzard.rbs +45 -0
- metadata +31 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cb2568fde715eb73945c6b19987ea08b3e2c72f34a6e4b5c5ab6dc8758d3f228
|
4
|
+
data.tar.gz: 3522cc6db511d5038947be77b59f6cb91c001df133690455424297ac68bd2b6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d33ca160e6cf2499cab2eb47d122eb9200c1d255531b76ada7dfd91f79966f3cc0709fbd877bf69ad38c68435294d63d16012ecd341d6888f30b8226fa65cf28
|
7
|
+
data.tar.gz: 55c1901b302755e81bc945337b9dec1f3d1ef92d3faeecd6f967fc679c9dbf30718ca10bd3772782ca03326b42e9823e84ecc576f5cab6d285426c91b5d27f56
|
data/lib/gizzard/version.rb
CHANGED
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.
|
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-
|
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: {}
|