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: 90fb0c2b0c23402987290d4b290b953de709949ffffcbfc1255e8ef7c5efd653
4
- data.tar.gz: 67d1cbd6394ed22ff8db981b043d10c719992175630e8e0bcc38d5eec4e42acd
3
+ metadata.gz: 03f5967aca28af5990d234b365d6ca0bd25cc4f997ff3f46626528f8408534d5
4
+ data.tar.gz: d54094df9feffc22a6c0e96a4bf6603edb89739bbc431765b0953ef6bea857bf
5
5
  SHA512:
6
- metadata.gz: 678e44a61fe8bd550d24924c95fe4b52a51a8e5667f93e46efadb337613e14a99d7befef28d85f2de8d988b6fcf11dc91577640de4246edebb8fba778a639772
7
- data.tar.gz: 610ef0709fd1c48f770fa2414ba7d64b51b8bc3410b12453a8d3c9a6c1c10fbb62ddb65cd0cd5768415eb8bb2554def31c71a7ad1c11a41490e3cf408466efd1
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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Wallaby
4
4
  module ActiveRecordGem
5
- VERSION = '0.3.0.beta1' # :nodoc:
5
+ VERSION = '0.3.0' # :nodoc:
6
6
  end
7
7
  end
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.beta1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
- - Tian Chen
7
+ - Tianwen Chen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-09-22 00:00:00.000000000 Z
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: 4.2.0
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: 4.2.0
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.beta1
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.beta1
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-active_record/blob/master/CHANGELOG.md
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: 1.3.1
155
+ version: '0'
150
156
  requirements: []
151
- rubygems_version: 3.3.7
157
+ rubygems_version: 3.5.5
152
158
  signing_key:
153
159
  specification_version: 4
154
160
  summary: Wallaby's ActiveRecord ORM adapter