counter_culture 2.5.0 → 2.5.1

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: d23a499dee5870dc087f2e8ce149275601321728359755ece6f4143c1859e464
4
- data.tar.gz: e4a114da0ca6ab7e8439e8f497c5924ca5c728699f6a939aaf53cd0bb82e4b22
3
+ metadata.gz: 777802252a7bcb024846dbf377b2914567ab94e5bea74889b910fa7adcbdc5a6
4
+ data.tar.gz: '09238bd80b3ec7df9573ae591f44a4f4c01eb408acf279f84fd1c642317f0593'
5
5
  SHA512:
6
- metadata.gz: 16d8b66aec6b846328a99596736f4faf8aca1b84b07cd3f5257ec476b4edecae0f4360ab073199c90850bd93c0d8b7705a2723f9644a1df33dafdccc759273f2
7
- data.tar.gz: 871f23c424dcecf010f65f9cb948090246814bf5c691a2da3c03d750b320c655d0930107748a937a1926784c9ec1f2953e683a674288460d7e01952277f8dbcd
6
+ metadata.gz: 75c18349057e37e2de194b8d58583d430ee23c161d3f33ae69ab2b12d8237c21940526e2b1de1ee869704ea55a5ebca710b6aeaa4528d33b1f9c113eacef30c6
7
+ data.tar.gz: adb4fee3d7c03874b5d484a086a184a65e25d535281841bc111117c2b56993c0217a5881103cc877ddb7b5e9bba8d8c8a8c0932b92e36586ef472e933d3fb6db
@@ -1,3 +1,8 @@
1
+ ## 2.5.1 (May 18, 2020)
2
+
3
+ Bugfixes:
4
+ - Fix migration generation in Rails 6+ (#281)
5
+
1
6
  ## 2.5.0 (May 12, 2020)
2
7
 
3
8
  Bugfixes:
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module CounterCulture
2
- VERSION = '2.5.0'.freeze
2
+ VERSION = '2.5.1'.freeze
3
3
  end
@@ -27,7 +27,7 @@ class CounterCultureGenerator < ActiveRecord::Generators::Base
27
27
  end
28
28
 
29
29
  def migration_version
30
- if Rails.version.start_with? '5.'
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.0
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-12 00:00:00.000000000 Z
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
- rubyforge_project:
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.