activerecord 3.2.22.4 → 3.2.22.5

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: 66d5ba0e0f319c243cf6e9cbaf266e00410499f7
4
- data.tar.gz: 54206ff225d217e9447d0620d4103cff614b9870
3
+ metadata.gz: b2a1b133cbd413ee58ccc671828333632ed6db3b
4
+ data.tar.gz: 8f7eed84647eebadf1270dc241dca3063b4586f5
5
5
  SHA512:
6
- metadata.gz: d2167e6e336d5feea7a3305bb1a1f324c0df47cfd8d339aa4c9cccf0107462c797e6160c09d23a605dde1f86f12581d4d08b4b92bb33eaf950f903489d311a86
7
- data.tar.gz: afbdd3c0ad5de1976da42c075ba15c09ee7c356fded0886f49480851c64deb34c04fc73488a39e874459551b129b071fb8cdcfe3ae72c0c62a3cc9415a895d4f
6
+ metadata.gz: 0bef1cca318f136e3c84fda17c030b840b6d889a836dee9753b000bde1fa951b90873145d6a79f7f42d76db8ae6fa66e79244baea47f5e440f8dafa1ecd6325e
7
+ data.tar.gz: 98f44f3efcaa299b5044a14851dc577b63c6281d4f18c152ce2fd4de1562170e8fa6aac3109eb101fdc1b5df05f5cb06efc1b8ea6ab7e69e080ebbac137a74fd
@@ -1,3 +1,9 @@
1
+ * Support Ruby 2.3 by not unexpectedly calling `.to_proc` on Hash objects
2
+
3
+ Fixes #25010
4
+
5
+ *tlrdstd*
6
+
1
7
  ## Rails 3.2.22 (Jun 16, 2015) ##
2
8
 
3
9
  * No changes.
@@ -158,7 +158,7 @@ module ActiveRecord
158
158
  end
159
159
 
160
160
  def interpolate(sql, record = nil)
161
- if sql.respond_to?(:to_proc)
161
+ if sql.respond_to?(:to_proc) && !sql.is_a?(Hash)
162
162
  owner.send(:instance_exec, record, &sql)
163
163
  else
164
164
  sql
@@ -146,7 +146,7 @@ module ActiveRecord
146
146
  private
147
147
 
148
148
  def interpolate(conditions)
149
- if conditions.respond_to?(:to_proc)
149
+ if conditions.respond_to?(:to_proc) && !conditions.is_a?(Hash)
150
150
  instance_eval(&conditions)
151
151
  else
152
152
  conditions
@@ -113,7 +113,7 @@ module ActiveRecord
113
113
  end
114
114
 
115
115
  def process_conditions(conditions)
116
- if conditions.respond_to?(:to_proc)
116
+ if conditions.respond_to?(:to_proc) && !conditions.is_a?(Hash)
117
117
  conditions = klass.send(:instance_eval, &conditions)
118
118
  end
119
119
 
@@ -3,7 +3,7 @@ module ActiveRecord
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
5
  TINY = 22
6
- PRE = "4"
6
+ PRE = "5"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
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.22.4
4
+ version: 3.2.22.5
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: 2016-08-11 00:00:00.000000000 Z
11
+ date: 2016-09-14 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.22.4
19
+ version: 3.2.22.5
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.22.4
26
+ version: 3.2.22.5
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.22.4
33
+ version: 3.2.22.5
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.22.4
40
+ version: 3.2.22.5
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: arel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -246,8 +246,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
246
246
  version: '0'
247
247
  requirements: []
248
248
  rubyforge_project:
249
- rubygems_version: 2.5.1
249
+ rubygems_version: 2.6.6
250
250
  signing_key:
251
251
  specification_version: 4
252
252
  summary: Object-relational mapper framework (part of Rails).
253
253
  test_files: []
254
+ has_rdoc: