wallaby-active_record 0.3.0.beta1 → 0.3.0
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03f5967aca28af5990d234b365d6ca0bd25cc4f997ff3f46626528f8408534d5
|
4
|
+
data.tar.gz: d54094df9feffc22a6c0e96a4bf6603edb89739bbc431765b0953ef6bea857bf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f1c7bbcce9cb0131706f56ad6d929f3457ce793019d4df3ab9ab9fd57aa3a7433703cccba4c5e164d1320409297d1c235e1f8feccde141eeff96f3a690811aa5
|
7
|
+
data.tar.gz: 633a73990fa2d56756e96d661a84877624fe00a158543b0b0a6bc59136ddf0ca234fa16ed4a887fbf929ecdb7e9eb9a56f013aefecb9ababe0c5ceb0805fef44
|
@@ -45,7 +45,7 @@ module Wallaby
|
|
45
45
|
# @param column [ActiveRecord::ConnectionAdapters::Column]
|
46
46
|
# @return [String] field type
|
47
47
|
def to_type(column)
|
48
|
-
return 'active_storage' if @model_class.respond_to?("with_attached_#{column.name}")
|
48
|
+
return 'active_storage' if @model_class.respond_to?(:"with_attached_#{column.name}")
|
49
49
|
|
50
50
|
column.type.to_s
|
51
51
|
end
|
@@ -15,7 +15,7 @@ module Wallaby
|
|
15
15
|
|
16
16
|
# @return [Integer] total count for the collection
|
17
17
|
def total
|
18
|
-
@collection.unscope(:offset, :limit).count # rubocop:disable CodeReuse/ActiveRecord
|
18
|
+
@tatal ||= @collection.unscope(:offset, :limit).count # rubocop:disable CodeReuse/ActiveRecord
|
19
19
|
end
|
20
20
|
|
21
21
|
# @return [Integer] page size from parameters or Wallaby configuration
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wallaby-active_record
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.0
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
-
-
|
7
|
+
- Tianwen Chen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-04-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -16,28 +16,34 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.0
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 8.0.0
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
27
|
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
29
|
+
version: 6.0.0
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: 8.0.0
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: wallaby-core
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
30
36
|
requirements:
|
31
37
|
- - '='
|
32
38
|
- !ruby/object:Gem::Version
|
33
|
-
version: 0.3.0
|
39
|
+
version: 0.3.0
|
34
40
|
type: :runtime
|
35
41
|
prerelease: false
|
36
42
|
version_requirements: !ruby/object:Gem::Requirement
|
37
43
|
requirements:
|
38
44
|
- - '='
|
39
45
|
- !ruby/object:Gem::Version
|
40
|
-
version: 0.3.0
|
46
|
+
version: 0.3.0
|
41
47
|
- !ruby/object:Gem::Dependency
|
42
48
|
name: cancancan
|
43
49
|
requirement: !ruby/object:Gem::Requirement
|
@@ -125,13 +131,13 @@ files:
|
|
125
131
|
- lib/adapters/wallaby/active_record/pundit_provider.rb
|
126
132
|
- lib/wallaby/active_record.rb
|
127
133
|
- lib/wallaby/active_record/version.rb
|
128
|
-
homepage: https://github.com/wallaby-rails/wallaby-active_record
|
134
|
+
homepage: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-active_record
|
129
135
|
licenses:
|
130
136
|
- MIT
|
131
137
|
metadata:
|
132
|
-
homepage_uri: https://github.com/wallaby-rails/wallaby-active_record
|
133
|
-
source_code_uri: https://github.com/wallaby-rails/wallaby-active_record
|
134
|
-
changelog_uri: https://github.com/wallaby-rails/wallaby-
|
138
|
+
homepage_uri: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-active_record
|
139
|
+
source_code_uri: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-active_record
|
140
|
+
changelog_uri: https://github.com/wallaby-rails/wallaby-rails/blob/main/wallaby-active_record/CHANGELOG.md
|
135
141
|
rubygems_mfa_required: 'true'
|
136
142
|
post_install_message:
|
137
143
|
rdoc_options: []
|
@@ -144,11 +150,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
144
150
|
version: '0'
|
145
151
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
152
|
requirements:
|
147
|
-
- - "
|
153
|
+
- - ">="
|
148
154
|
- !ruby/object:Gem::Version
|
149
|
-
version:
|
155
|
+
version: '0'
|
150
156
|
requirements: []
|
151
|
-
rubygems_version: 3.
|
157
|
+
rubygems_version: 3.5.5
|
152
158
|
signing_key:
|
153
159
|
specification_version: 4
|
154
160
|
summary: Wallaby's ActiveRecord ORM adapter
|