counter_culture 2.1.3 → 2.1.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0beff678fd83c3d1dd16c6f9d2b3104bc5b7fd4e3f53fe916071df4c3a7fd0d5
4
- data.tar.gz: df317d7031cc176137898bf0cc7fe9e8b74d469752b4497b404f9e799a5efae7
3
+ metadata.gz: a7eb651872e81e3ab6f49970fcfc99e578c4faad126137cee4e72d85be233f3e
4
+ data.tar.gz: 5cd7b7ea96f8d6b7ab0e90ed803d734d5777506e870f9d7fe319209cf979f88d
5
5
  SHA512:
6
- metadata.gz: ae81d2fa63abcac9f46af293eb22be9b618345a3a9c8c4be337fab683f15506573c4b392d2c32258b58217684e5f7efad6c1562b484c23ae8fbd76b10282d2fc
7
- data.tar.gz: 7e916af1fef3cdb9a445332e6f172d421d5a104a4e086c848375109fb3303e55916a02068f2501ae2feb3a657f3335561a5273b87b3ce159031c14ad34cd5d26
6
+ metadata.gz: 7af00566af755096a6eccca05a1426795a05e852ed8a8c792910fc2f6399cf3747bc849b0ffa7725cc691cc22ffa617901d31013ff0be920a6938f5480ae5174
7
+ data.tar.gz: a53c2371b56e1d7f83fae4def6c6e9cfa54ad0fa74aad6aec4d5498c2f935b350c1fc692eedee03bff79d730d8aaf195a92ec1a37df7141a0903c528d25a2d57
@@ -1,3 +1,8 @@
1
+ ## 2.1.4 (January 21, 2019)
2
+
3
+ Improvements:
4
+ - Avoid instantiating model class during `counter_culture` call (#246)
5
+
1
6
  ## 2.1.3 (January 19, 2019)
2
7
 
3
8
  Bugfixes:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.3
1
+ 2.1.4
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: counter_culture 2.1.3 ruby lib
5
+ # stub: counter_culture 2.1.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "counter_culture".freeze
9
- s.version = "2.1.3"
9
+ s.version = "2.1.4"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib".freeze]
13
13
  s.authors = ["Magnus von Koeller".freeze]
14
- s.date = "2019-01-19"
14
+ s.date = "2019-01-22"
15
15
  s.description = "counter_culture provides turbo-charged counter caches that are kept up-to-date not just on create and destroy, that support multiple levels of indirection through relationships, allow dynamic column names and that avoid deadlocks by updating in the after_commit callback.".freeze
16
16
  s.email = "magnus@vonkoeller.de".freeze
17
17
  s.extra_rdoc_files = [
@@ -23,7 +23,7 @@ module CounterCulture
23
23
  before_destroy :_update_counts_after_destroy, unless: :destroyed_for_counter_culture?
24
24
 
25
25
  if respond_to?(:before_real_destroy) &&
26
- new.respond_to?(:paranoia_destroyed?)
26
+ instance_methods.include?(:paranoia_destroyed?)
27
27
  before_real_destroy :_update_counts_after_destroy,
28
28
  if: -> (model) { !model.paranoia_destroyed? }
29
29
  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.1.3
4
+ version: 2.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Magnus von Koeller
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-19 00:00:00.000000000 Z
11
+ date: 2019-01-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: after_commit_action