activerecord 3.2.13.rc1 → 3.2.13.rc2

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: d152752397963fbb89a3df0673c3fc204a8ad09d
4
- data.tar.gz: 68758aa69846d6dee43c968e7ec8256db958a44b
3
+ metadata.gz: 07d967b0fe7f1da7edf5eba2e9ca20b3215cce38
4
+ data.tar.gz: e78535cfa5461f2e911d5b0d5e219fe9c6530c13
5
5
  SHA512:
6
- metadata.gz: 9cf4972e5c7a8b5f1880650b0e3f9716c0606773863ca640cea5a71677f1fa6db9095534f25e445644740a98a5ae410a787832c925f19555196cfe7188cab88d
7
- data.tar.gz: 5f334b07081d7c3bf46b1af59e2123f9e38b2820b89b3b488b549ab98eca8bd656295fdf09f1eb6e01ede7b18c0e8ca67a1beb5b110c57344e2b4bfb161f903d
6
+ metadata.gz: 151d5edca041ed74a00ea329a66cc868028f64a80eeebfb9b113eb20dd48a52d2c41d8c5efc8b3ee64ea10834489f513c8554a42e02134abc7294fbb39776aab
7
+ data.tar.gz: d4c0505b01e38756f9cd23d87011e0c51f13b9cf03d590811e3bda6aa2d0f4784eb90a1967d5376af5acfc67a3f5be4c5139b534e41de7ced92928366ec84d52
@@ -1,8 +1,3 @@
1
- ## unreleased ##
2
-
3
- * No changes.
4
-
5
-
6
1
  ## Rails 3.2.13 (Feb 17, 2013) ##
7
2
 
8
3
  * Reverted 921a296a3390192a71abeec6d9a035cc6d1865c8, 'Quote numeric values
@@ -228,16 +223,6 @@
228
223
 
229
224
  *Victor Costan*
230
225
 
231
- * `#pluck` can be used on a relation with `select` clause.
232
- Fixes #7551.
233
- Backport of #8176.
234
-
235
- Example:
236
-
237
- Topic.select([:approved, :id]).order(:id).pluck(:id)
238
-
239
- *Yves Senn*
240
-
241
226
  * Use `nil?` instead of `blank?` to check whether dynamic finder with a bang
242
227
  should raise RecordNotFound.
243
228
  Fixes #7238.
@@ -26,9 +26,15 @@ module ActiveRecord
26
26
 
27
27
  private
28
28
  def hash_rows
29
- @hash_rows ||= @rows.map { |row|
30
- Hash[@columns.zip(row)]
31
- }
29
+ @hash_rows ||=
30
+ begin
31
+ # We freeze the strings to prevent them getting duped when
32
+ # used as keys in ActiveRecord::Model's @attributes hash
33
+ columns = @columns.map { |c| c.dup.freeze }
34
+ @rows.map { |row|
35
+ Hash[columns.zip(row)]
36
+ }
37
+ end
32
38
  end
33
39
  end
34
40
  end
@@ -3,7 +3,7 @@ module ActiveRecord
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
5
  TINY = 13
6
- PRE = "rc1"
6
+ PRE = "rc2"
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.13.rc1
4
+ version: 3.2.13.rc2
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: 2013-02-27 00:00:00.000000000 Z
11
+ date: 2013-03-06 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.13.rc1
19
+ version: 3.2.13.rc2
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.13.rc1
26
+ version: 3.2.13.rc2
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.13.rc1
33
+ version: 3.2.13.rc2
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.13.rc1
40
+ version: 3.2.13.rc2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: arel
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -245,7 +245,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
245
245
  version: 1.3.1
246
246
  requirements: []
247
247
  rubyforge_project:
248
- rubygems_version: 2.0.0
248
+ rubygems_version: 2.0.2
249
249
  signing_key:
250
250
  specification_version: 4
251
251
  summary: Object-relational mapper framework (part of Rails).