activerecord 3.2.21 → 3.2.22

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of activerecord might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4d12d5e44431550c616522271504c6a129a3a80
4
- data.tar.gz: 05035b1c9da53423115748d8b8a66176428288f5
3
+ metadata.gz: d685d6b2e0591a43ef4db163eaacb4719da9b4ff
4
+ data.tar.gz: b459417898a13e28e215bcab931e45acb6a6b420
5
5
  SHA512:
6
- metadata.gz: d254f605da43430475aeb17c84e823dea51f5e44cc478c76ecd2d2551a0612cbbe9d1539ff6810af1fb41c15d9603565b9ab76d5e736481ecc5452e00170e955
7
- data.tar.gz: a4d2b116545ccd32eaa7a9e7c3f500df6c40d1c2f9005d909ddc8dff3b6779ad05d0f418bd85a6d95486f5a5d54baf0984bc52e635e7d6edb230b839508fe1d4
6
+ metadata.gz: e67ea6890e20adc8301230ed16d969ff4fb87a792f37cd4dc9436033f557bf319897b0b9e9ebe55d24d397ba1de730fc879f7fb2186f92f7002eacd70f52c5fb
7
+ data.tar.gz: b053ac5da94cd12748373ff954db55f6a5fda9dccd6953a4e47a36909d71dd32ad1f53675fdf91f2faa3edbe3ae6d4362f4a50e5e85179405b44fcd1ac42cd1f
@@ -1,3 +1,8 @@
1
+ ## Rails 3.2.22 (Jun 16, 2015) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 3.2.19 (Jul 2, 2014) ##
2
7
 
3
8
  * Fix SQL Injection Vulnerability in 'bitstring' quoting.
@@ -50,15 +50,15 @@ module ActiveRecord
50
50
  [options[:limit], count].compact.min
51
51
  end
52
52
 
53
- def has_cached_counter?(reflection = reflection)
53
+ def has_cached_counter?(reflection = self.reflection)
54
54
  owner.attribute_present?(cached_counter_attribute_name(reflection))
55
55
  end
56
56
 
57
- def cached_counter_attribute_name(reflection = reflection)
57
+ def cached_counter_attribute_name(reflection = self.reflection)
58
58
  "#{reflection.name}_count"
59
59
  end
60
60
 
61
- def update_counter(difference, reflection = reflection)
61
+ def update_counter(difference, reflection = self.reflection)
62
62
  if has_cached_counter?(reflection)
63
63
  counter = cached_counter_attribute_name(reflection)
64
64
  owner.class.update_counters(owner.id, counter => difference)
@@ -77,7 +77,7 @@ module ActiveRecord
77
77
  # it will be decremented twice.
78
78
  #
79
79
  # Hence this method.
80
- def inverse_updates_counter_cache?(reflection = reflection)
80
+ def inverse_updates_counter_cache?(reflection = self.reflection)
81
81
  counter_name = cached_counter_attribute_name(reflection)
82
82
  reflection.klass.reflect_on_all_associations(:belongs_to).any? { |inverse_reflection|
83
83
  inverse_reflection.counter_cache_column == counter_name
@@ -589,7 +589,7 @@ module ActiveRecord
589
589
 
590
590
  # interpolate the fixture label
591
591
  row.each do |key, value|
592
- row[key] = label if value == "$LABEL"
592
+ row[key] = label if value.is_a?(String) && value == "$LABEL"
593
593
  end
594
594
 
595
595
  # generate a primary key if necessary
@@ -2,7 +2,7 @@ module ActiveRecord
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 21
5
+ TINY = 22
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.21
4
+ version: 3.2.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-11-16 00:00:00.000000000 Z
11
+ date: 2015-06-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 3.2.21
19
+ version: 3.2.22
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 3.2.21
26
+ version: 3.2.22
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: activemodel
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 3.2.21
33
+ version: 3.2.22
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 3.2.21
40
+ version: 3.2.22
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: arel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -246,7 +246,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  version: '0'
247
247
  requirements: []
248
248
  rubyforge_project:
249
- rubygems_version: 2.4.2
249
+ rubygems_version: 2.4.5
250
250
  signing_key:
251
251
  specification_version: 4
252
252
  summary: Object-relational mapper framework (part of Rails).