wallaby-active_record 0.3.0.beta1 → 0.3.0.beta2

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: c0ffcff5694a2b37982d0e752e4208f026d09afd5f04f652a0e929ca4d7e56d1
4
+ data.tar.gz: 1bafa98bdb7c0c0d8a9cbcde34ee3adf395602e114c7eab7cd453220739208e8
5
5
  SHA512:
6
- metadata.gz: 678e44a61fe8bd550d24924c95fe4b52a51a8e5667f93e46efadb337613e14a99d7befef28d85f2de8d988b6fcf11dc91577640de4246edebb8fba778a639772
7
- data.tar.gz: 610ef0709fd1c48f770fa2414ba7d64b51b8bc3410b12453a8d3c9a6c1c10fbb62ddb65cd0cd5768415eb8bb2554def31c71a7ad1c11a41490e3cf408466efd1
6
+ metadata.gz: acf252735ca164597c15324ec2addacfa080ebe763e99e0830d8e7194acf69844e7b7daeaa8387fe9efe746d5d9a70a7d9a49ac26b608a34cb0c5fb9d6ea9dd7
7
+ data.tar.gz: d6357260a030a20f5a1300eed8836ee3907cc326c2a02d005e0f66e21afe954a4803af02f209de38de0c2f1f2ae3c881ae3d64a005fa910c813215a1941788d7
@@ -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.beta2' # :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.beta2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tian 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-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.0
19
+ version: 6.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.0
26
+ version: 6.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: wallaby-core
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 0.3.0.beta1
33
+ version: 0.3.0.beta2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 0.3.0.beta1
40
+ version: 0.3.0.beta2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: cancancan
43
43
  requirement: !ruby/object:Gem::Requirement