counter_culture 3.5.3 → 3.6.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: 7c2646918dbfacac2d3d3f923c601111bfcf58b46b1ba0ed035e9f8a557b9577
4
- data.tar.gz: 52cd080e6eb8beb589c8cfb52e73ad62fe333caea4c91d9098cbb5a78ff8f30f
3
+ metadata.gz: 5f4fd84b17129a9385e310381e0a19d5dc94a77f99bc6375e296cbf88c08fe72
4
+ data.tar.gz: a717e7ce645837b369e9fa5d40f7e721efaa8815b0ece0d814e124b798ede467
5
5
  SHA512:
6
- metadata.gz: b8736342d26f93e1cba9372057d941b216efda9bcefe8f56215b001b987e0a557f82e632376879a9006bf2b1d58cf876682f23efe7f6fb3912232d8de58442ea
7
- data.tar.gz: a92f08b7574babb1c2e79b634b3f418f3e37e7d8b83abbddd8d1d9e909e4c073034b1f1b4f5534de5d9136967dc1863fcfec0a2f49e1c7620930d5c5ece617e9
6
+ metadata.gz: 74b120975400617101789ac7721b839e57e210e68a28d1edc307e2b8e03086e0d6adc652cb9a96be7cd0a7921c7e8033216316d63f0c74da9e3b929a9d24ad39
7
+ data.tar.gz: 050d42b195d1c947aa79f8cbbaf2dea74441020c67b96aa2493463c6cdcf0a1ccb649b7a322921174a64a30f4ba9287a0450ab217915dd62844adafdc5f934cd
data/Appraisals CHANGED
@@ -7,5 +7,8 @@
7
7
  ].each do |rails_version|
8
8
  appraise "rails-#{rails_version}" do
9
9
  gem 'rails', "~> #{rails_version}.0"
10
+ if Gem::Version.new(rails_version) < Gem::Version.new("7.2")
11
+ gem 'sqlite3', "~> 1.4"
12
+ end
10
13
  end
11
14
  end
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## 3.6.0 (June 18, 2024)
2
+
3
+ Improvements:
4
+ - Don't perform a query if the `delta_magnitude` is zero (#394)
5
+
1
6
  ## 3.5.3 (February 16, 2024)
2
7
 
3
8
  Bugfixes:
@@ -43,7 +43,7 @@ Gem::Specification.new do |spec|
43
43
  spec.add_development_dependency 'rspec-extra-formatters'
44
44
  spec.add_development_dependency 'simplecov', '~> 0.16.1'
45
45
  spec.add_development_dependency 'timecop'
46
- spec.add_development_dependency 'sqlite3'
46
+ spec.add_development_dependency 'sqlite3', ">= 1.4"
47
47
  spec.add_development_dependency 'mysql2'
48
48
  spec.add_development_dependency 'pg'
49
49
  end
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 5.2.0"
6
+ gem "sqlite3", "~> 1.4"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 6.0.0"
6
+ gem "sqlite3", "~> 1.4"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 6.1.0"
6
+ gem "sqlite3", "~> 1.4"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 7.0.0"
6
+ gem "sqlite3", "~> 1.4"
6
7
 
7
8
  gemspec path: "../"
@@ -3,5 +3,6 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "rails", "~> 7.1.0"
6
+ gem "sqlite3", "~> 1.4"
6
7
 
7
8
  gemspec path: "../"
@@ -55,6 +55,8 @@ module CounterCulture
55
55
  else
56
56
  counter_delta_magnitude_for(obj)
57
57
  end
58
+ return if delta_magnitude.zero?
59
+
58
60
  # increment or decrement?
59
61
  operator = options[:increment] ? '+' : '-'
60
62
 
@@ -1,3 +1,3 @@
1
1
  module CounterCulture
2
- VERSION = '3.5.3'.freeze
2
+ VERSION = '3.6.0'.freeze
3
3
  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: 3.5.3
4
+ version: 3.6.0
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: 2024-02-17 00:00:00.000000000 Z
11
+ date: 2024-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
@@ -254,14 +254,14 @@ dependencies:
254
254
  requirements:
255
255
  - - ">="
256
256
  - !ruby/object:Gem::Version
257
- version: '0'
257
+ version: '1.4'
258
258
  type: :development
259
259
  prerelease: false
260
260
  version_requirements: !ruby/object:Gem::Requirement
261
261
  requirements:
262
262
  - - ">="
263
263
  - !ruby/object:Gem::Version
264
- version: '0'
264
+ version: '1.4'
265
265
  - !ruby/object:Gem::Dependency
266
266
  name: mysql2
267
267
  requirement: !ruby/object:Gem::Requirement
@@ -345,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
345
345
  - !ruby/object:Gem::Version
346
346
  version: '0'
347
347
  requirements: []
348
- rubygems_version: 3.4.19
348
+ rubygems_version: 3.5.10
349
349
  signing_key:
350
350
  specification_version: 4
351
351
  summary: Turbo-charged counter caches for your Rails app.