counter_culture 2.5.0 → 2.5.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/counter_culture/reconciler.rb +0 -2
- data/lib/counter_culture/version.rb +1 -1
- data/lib/generators/counter_culture_generator.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 777802252a7bcb024846dbf377b2914567ab94e5bea74889b910fa7adcbdc5a6
|
|
4
|
+
data.tar.gz: '09238bd80b3ec7df9573ae591f44a4f4c01eb408acf279f84fd1c642317f0593'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 75c18349057e37e2de194b8d58583d430ee23c161d3f33ae69ab2b12d8237c21940526e2b1de1ee869704ea55a5ebca710b6aeaa4528d33b1f9c113eacef30c6
|
|
7
|
+
data.tar.gz: adb4fee3d7c03874b5d484a086a184a65e25d535281841bc111117c2b56993c0217a5881103cc877ddb7b5e9bba8d8c8a8c0932b92e36586ef472e933d3fb6db
|
data/CHANGELOG.md
CHANGED
|
@@ -102,8 +102,6 @@ module CounterCulture
|
|
|
102
102
|
# iterate in batches; otherwise we might run out of memory when there's a lot of
|
|
103
103
|
# instances and we try to load all their counts at once
|
|
104
104
|
batch_size = options.fetch(:batch_size, CounterCulture.config.batch_size)
|
|
105
|
-
start_index = options[:start]
|
|
106
|
-
finish_index = options[:finish]
|
|
107
105
|
|
|
108
106
|
counts_query = counts_query.where(options[:where]).group(full_primary_key(relation_class))
|
|
109
107
|
|
|
@@ -27,7 +27,7 @@ class CounterCultureGenerator < ActiveRecord::Generators::Base
|
|
|
27
27
|
end
|
|
28
28
|
|
|
29
29
|
def migration_version
|
|
30
|
-
if Rails.version.
|
|
30
|
+
if Gem::Version.new(Rails.version) >= Gem::Version.new('5.0.0')
|
|
31
31
|
"[#{Rails::VERSION::MAJOR}.#{Rails::VERSION::MINOR}]"
|
|
32
32
|
end
|
|
33
33
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: counter_culture
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.5.
|
|
4
|
+
version: 2.5.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Magnus von Koeller
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2020-05-
|
|
11
|
+
date: 2020-05-18 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: after_commit_action
|
|
@@ -304,8 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
304
304
|
- !ruby/object:Gem::Version
|
|
305
305
|
version: '0'
|
|
306
306
|
requirements: []
|
|
307
|
-
|
|
308
|
-
rubygems_version: 2.7.6.2
|
|
307
|
+
rubygems_version: 3.1.2
|
|
309
308
|
signing_key:
|
|
310
309
|
specification_version: 4
|
|
311
310
|
summary: Turbo-charged counter caches for your Rails app.
|