counter_culture 2.2.3 → 2.2.4

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: 74cbe60d3814256ebdde674294cde8b9a086ecd181651370c4785b751b7e7c00
4
- data.tar.gz: 8a1487ddb9f56cedefec29a96c900083b27975079b11e0bacc0aacbdc4c049da
3
+ metadata.gz: 1aa4340620f0ec34dbb3c5509ef3390eaffde8c280d9cdc06c11ba842367c33f
4
+ data.tar.gz: ab9934d186e52e271ff2b5b09cc85927892c7b9c5e8e18220bc4e2dda56dd918
5
5
  SHA512:
6
- metadata.gz: f7fade10fb91c25c24a7d233e75cc1cf7f9d3989ac3fbb11833e592b5746c3e6880f8d83d63873b3d2c2d5195e93ff291b217daa33aad4c8e95b0edc34d1f92b
7
- data.tar.gz: 2b6f5f9accf8e20eb5eca36d1a5189ef9050d279165a1750d784ea130b33b4128e6464f18cb44f3e7f61f4dcb82872e32e4cdb6ead764113686c55ef902a479d
6
+ metadata.gz: 6d9dfd7a08e7b68e8d4d00b731fe6ca27d78fc51e060992c60b494cbb0853c29f57a8d2373fc5ed8b2442b44c1e7ed1952c3a4eccda15244c66a4f652bf841a5
7
+ data.tar.gz: 1f197ae5fa09c9044557790a0d2e7f2b61ae5d3dd3352dc7c5cbc1bc6164d9e8dfa3401084c544a708a43c750705e1f80af1530d4166c226335610bfbfc6907c
@@ -8,13 +8,13 @@ rvm:
8
8
  - "2.3.8"
9
9
  - "2.4.6"
10
10
  - "2.5.5"
11
- - "2.6.2"
11
+ - "2.6.3"
12
12
  gemfile:
13
13
  - gemfiles/rails_4.2.gemfile
14
14
  - gemfiles/rails_5.0.gemfile
15
15
  - gemfiles/rails_5.1.gemfile
16
16
  - gemfiles/rails_5.2.gemfile
17
- - gemfiles/rails_6.0.0.rc1.gemfile
17
+ - gemfiles/rails_6.0.gemfile
18
18
  env:
19
19
  - DB=postgresql
20
20
  - DB=sqlite3
@@ -22,9 +22,9 @@ env:
22
22
  matrix:
23
23
  exclude:
24
24
  - rvm: "2.3.8"
25
- gemfile: gemfiles/rails_6.0.0.rc1.gemfile
25
+ gemfile: gemfiles/rails_6.0.gemfile
26
26
  - rvm: "2.4.6"
27
- gemfile: gemfiles/rails_6.0.0.rc1.gemfile
27
+ gemfile: gemfiles/rails_6.0.gemfile
28
28
  before_install:
29
29
  - gem uninstall -v '>= 2' -i $(rvm gemdir)@global -ax bundler || true
30
30
  - gem install bundler -v '< 2'
data/Appraisals CHANGED
@@ -3,7 +3,7 @@
3
3
  5.0
4
4
  5.1
5
5
  5.2
6
- 6.0.0.rc1
6
+ 6.0
7
7
  ].each do |rails_version|
8
8
  gem_rails_version = Gem::Version.new(rails_version)
9
9
  if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.5.0') &&
@@ -1,3 +1,8 @@
1
+ ## 2.2.4 (August 21, 2019)
2
+
3
+ Bugfixes:
4
+ - Test and fix behavior in Rails 6.0.0 release (#268)
5
+
1
6
  ## 2.2.3 (June 20, 2019)
2
7
 
3
8
  Improvements:
@@ -3,7 +3,7 @@
3
3
  source "https://rubygems.org"
4
4
 
5
5
  gem "sqlite3", "~> 1.4"
6
- gem "rails", "~> 6.0.0.rc1.0"
6
+ gem "rails", "~> 6.0.0"
7
7
  gem "pg", "~> 1.0"
8
8
  gem "mysql2"
9
9
 
@@ -69,7 +69,11 @@ module CounterCulture
69
69
  if touch
70
70
  current_time = obj.send(:current_time_from_proper_timezone)
71
71
  timestamp_columns = obj.send(:timestamp_attributes_for_update_in_model)
72
- timestamp_columns << touch if touch != true
72
+ if touch != true
73
+ # starting in Rails 6 this is frozen
74
+ timestamp_columns = timestamp_columns.dup
75
+ timestamp_columns << touch
76
+ end
73
77
  timestamp_columns.each do |timestamp_column|
74
78
  updates << "#{timestamp_column} = '#{current_time.to_formatted_s(:db)}'"
75
79
  end
@@ -133,7 +133,11 @@ module CounterCulture
133
133
  if options[:touch]
134
134
  current_time = record.send(:current_time_from_proper_timezone)
135
135
  timestamp_columns = record.send(:timestamp_attributes_for_update_in_model)
136
- timestamp_columns << options[:touch] if options[:touch] != true
136
+ if options[:touch] != true
137
+ # starting in Rails 6 this is frozen
138
+ timestamp_columns = timestamp_columns.dup
139
+ timestamp_columns << options[:touch]
140
+ end
137
141
  timestamp_columns.each do |timestamp_column|
138
142
  updates << "#{timestamp_column} = '#{current_time.to_formatted_s(:db)}'"
139
143
  end
@@ -1,3 +1,3 @@
1
1
  module CounterCulture
2
- VERSION = '2.2.3'.freeze
2
+ VERSION = '2.2.4'.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: 2.2.3
4
+ version: 2.2.4
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: 2019-06-20 00:00:00.000000000 Z
11
+ date: 2019-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: after_commit_action
@@ -276,7 +276,7 @@ files:
276
276
  - gemfiles/rails_5.0.gemfile
277
277
  - gemfiles/rails_5.1.gemfile
278
278
  - gemfiles/rails_5.2.gemfile
279
- - gemfiles/rails_6.0.0.rc1.gemfile
279
+ - gemfiles/rails_6.0.gemfile
280
280
  - lib/counter_culture.rb
281
281
  - lib/counter_culture/counter.rb
282
282
  - lib/counter_culture/extensions.rb
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  - !ruby/object:Gem::Version
305
305
  version: '0'
306
306
  requirements: []
307
- rubygems_version: 3.0.4
307
+ rubygems_version: 3.0.3
308
308
  signing_key:
309
309
  specification_version: 4
310
310
  summary: Turbo-charged counter caches for your Rails app.