counter_culture 2.2.3 → 2.2.4
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/.travis.yml +4 -4
- data/Appraisals +1 -1
- data/CHANGELOG.md +5 -0
- data/gemfiles/{rails_6.0.0.rc1.gemfile → rails_6.0.gemfile} +1 -1
- data/lib/counter_culture/counter.rb +5 -1
- data/lib/counter_culture/reconciler.rb +5 -1
- data/lib/counter_culture/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1aa4340620f0ec34dbb3c5509ef3390eaffde8c280d9cdc06c11ba842367c33f
|
|
4
|
+
data.tar.gz: ab9934d186e52e271ff2b5b09cc85927892c7b9c5e8e18220bc4e2dda56dd918
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6d9dfd7a08e7b68e8d4d00b731fe6ca27d78fc51e060992c60b494cbb0853c29f57a8d2373fc5ed8b2442b44c1e7ed1952c3a4eccda15244c66a4f652bf841a5
|
|
7
|
+
data.tar.gz: 1f197ae5fa09c9044557790a0d2e7f2b61ae5d3dd3352dc7c5cbc1bc6164d9e8dfa3401084c544a708a43c750705e1f80af1530d4166c226335610bfbfc6907c
|
data/.travis.yml
CHANGED
|
@@ -8,13 +8,13 @@ rvm:
|
|
|
8
8
|
- "2.3.8"
|
|
9
9
|
- "2.4.6"
|
|
10
10
|
- "2.5.5"
|
|
11
|
-
- "2.6.
|
|
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.
|
|
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.
|
|
25
|
+
gemfile: gemfiles/rails_6.0.gemfile
|
|
26
26
|
- rvm: "2.4.6"
|
|
27
|
-
gemfile: gemfiles/rails_6.0.
|
|
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
data/CHANGELOG.md
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
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
|
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.
|
|
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-
|
|
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.
|
|
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.
|
|
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.
|