counter_culture 0.1.31 → 0.1.32

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
  SHA1:
3
- metadata.gz: 5768633c82c0cda2df6b2f4b213eef15e6f57a2a
4
- data.tar.gz: b4e1cfdf54ebe4bdcbb224968f9f4cb80c93138a
3
+ metadata.gz: c76907944f824031e31fcc691b102507788efae1
4
+ data.tar.gz: 284f75c98c1fdc54a9184abdeb4bef21966eb87f
5
5
  SHA512:
6
- metadata.gz: 5c5faff89fb5e8fbf0a3c983f6d0da2bdb3a0aa46a246a51d1a6012495fea76b0a4a2141bb77111a21b34a44de0f5110187643e202ea482a3323b872be75fb4c
7
- data.tar.gz: 1b94ac39d665d0acc1b0e6784cc12954125383777709b9fedc5016c569615fccd0e0337707d81228793be12f03005831127177d91f246245702e398d0b5c5d47
6
+ metadata.gz: 43598278f71d3711c3c767c89bdf766b2c9388ed32f81900b7f934d705df7ba5f7c53e4cde6fe2401528fda002036133a6123cd27e0ffbed6f8846f2801e89ab
7
+ data.tar.gz: 1f42db9e571e7939c139ca6e8d591e9a8430e8512cb831942edb6e0612637f4b23ca027b9320f017ac9531d8702a183554878e028b00de24d8c4701d32a2007d
@@ -1,3 +1,8 @@
1
+ ## 0.1.32 (March 16, 2015)
2
+
3
+ Improvements:
4
+ - Restores compatibility with Rails 3.2 (fixes #100)
5
+
1
6
  ## 0.1.31 (March 7, 2015)
2
7
 
3
8
  Bugfixes:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.31
1
+ 0.1.32
@@ -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 0.1.31 ruby lib
5
+ # stub: counter_culture 0.1.32 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "counter_culture"
9
- s.version = "0.1.31"
9
+ s.version = "0.1.32"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Magnus von Koeller"]
14
- s.date = "2015-03-08"
14
+ s.date = "2015-03-17"
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."
16
16
  s.email = "magnus@vonkoeller.de"
17
17
  s.extra_rdoc_files = [
@@ -365,7 +365,7 @@ module CounterCulture
365
365
  if was
366
366
  first = relation.shift
367
367
  foreign_key_value = send("#{relation_foreign_key(first)}_was")
368
- value = relation_klass(first).find_by(relation_primary_key(first) => foreign_key_value) if foreign_key_value
368
+ value = relation_klass(first).where("#{relation_primary_key(first)} = ?", foreign_key_value).first if foreign_key_value
369
369
  else
370
370
  value = self
371
371
  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: 0.1.31
4
+ version: 0.1.32
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: 2015-03-08 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: after_commit_action