activerecord 3.2.9 → 3.2.10

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.

@@ -0,0 +1,7 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: 6f496f2b4c79bb7122075511437560b2aeb43658
4
+ data.tar.gz: c435aa2ec2e7c6d5c03f0e56c98ffbf080a2c413
5
+ !binary "U0hBNTEy":
6
+ metadata.gz: f38cf551ebe442b62900c7063654c1f8e8637c591a37a0dac5fa98b1aeb6218a65fdef5da60032e1d6533e4041c33597d6dc441492969d435a004d8ea4cb79b9
7
+ data.tar.gz: 433c11cfc586f69e691a908c5887f9353a87b6f9db1bb7dab31b3dfd2d1b1410fca2ed320f65a9cabbbd606d567fac8c59229e9d9470542e742a083364ba4589
@@ -1,4 +1,9 @@
1
- ## Rails 3.2.9 (unreleased)
1
+ ## Rails 3.2.10 ##
2
+
3
+ * CVE-2012-5664 options hashes should only be extracted if there are extra
4
+ parameters
5
+
6
+ ## Rails 3.2.9 (Nov 12, 2012) ##
2
7
 
3
8
  * Fix issue with collection associations calling first(n)/last(n) and attempting
4
9
  to set the inverse association when `:inverse_of` was used. Fixes #8087.
@@ -40,7 +40,12 @@ module ActiveRecord
40
40
  METHOD
41
41
  send(method_id, *arguments)
42
42
  elsif match.finder?
43
- options = arguments.extract_options!
43
+ options = if arguments.length > attribute_names.size
44
+ arguments.extract_options!
45
+ else
46
+ {}
47
+ end
48
+
44
49
  relation = options.any? ? scoped(options) : scoped
45
50
  relation.send :find_by_attributes, match, attribute_names, *arguments, &block
46
51
  elsif match.instantiator?
@@ -2,7 +2,7 @@ module ActiveRecord
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
- TINY = 9
5
+ TINY = 10
6
6
  PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
metadata CHANGED
@@ -1,78 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
5
- prerelease:
4
+ version: 3.2.10
6
5
  platform: ruby
7
6
  authors:
8
7
  - David Heinemeier Hansson
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-11-12 00:00:00.000000000 Z
11
+ date: 2012-12-23 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: activesupport
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
17
  - - '='
20
18
  - !ruby/object:Gem::Version
21
- version: 3.2.9
19
+ version: 3.2.10
22
20
  type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
24
  - - '='
28
25
  - !ruby/object:Gem::Version
29
- version: 3.2.9
26
+ version: 3.2.10
30
27
  - !ruby/object:Gem::Dependency
31
28
  name: activemodel
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
31
  - - '='
36
32
  - !ruby/object:Gem::Version
37
- version: 3.2.9
33
+ version: 3.2.10
38
34
  type: :runtime
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
37
  requirements:
43
38
  - - '='
44
39
  - !ruby/object:Gem::Version
45
- version: 3.2.9
40
+ version: 3.2.10
46
41
  - !ruby/object:Gem::Dependency
47
42
  name: arel
48
43
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
44
  requirements:
51
- - - ~>
45
+ - - "~>"
52
46
  - !ruby/object:Gem::Version
53
47
  version: 3.0.2
54
48
  type: :runtime
55
49
  prerelease: false
56
50
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
51
  requirements:
59
- - - ~>
52
+ - - "~>"
60
53
  - !ruby/object:Gem::Version
61
54
  version: 3.0.2
62
55
  - !ruby/object:Gem::Dependency
63
56
  name: tzinfo
64
57
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
58
  requirements:
67
- - - ~>
59
+ - - "~>"
68
60
  - !ruby/object:Gem::Version
69
61
  version: 0.3.29
70
62
  type: :runtime
71
63
  prerelease: false
72
64
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
65
  requirements:
75
- - - ~>
66
+ - - "~>"
76
67
  - !ruby/object:Gem::Version
77
68
  version: 0.3.29
78
69
  description: Databases on Rails. Build a persistent domain model by mapping database
@@ -235,31 +226,27 @@ files:
235
226
  - lib/rails/generators/active_record.rb
236
227
  homepage: http://www.rubyonrails.org
237
228
  licenses: []
229
+ metadata: {}
238
230
  post_install_message:
239
231
  rdoc_options:
240
- - --main
232
+ - "--main"
241
233
  - README.rdoc
242
234
  require_paths:
243
235
  - lib
244
236
  required_ruby_version: !ruby/object:Gem::Requirement
245
- none: false
246
237
  requirements:
247
- - - ! '>='
238
+ - - ">="
248
239
  - !ruby/object:Gem::Version
249
240
  version: 1.8.7
250
241
  required_rubygems_version: !ruby/object:Gem::Requirement
251
- none: false
252
242
  requirements:
253
- - - ! '>='
243
+ - - ">="
254
244
  - !ruby/object:Gem::Version
255
245
  version: '0'
256
- segments:
257
- - 0
258
- hash: 4188291184896415720
259
246
  requirements: []
260
247
  rubyforge_project:
261
- rubygems_version: 1.8.24
248
+ rubygems_version: 2.0.0.preview2.1
262
249
  signing_key:
263
- specification_version: 3
250
+ specification_version: 4
264
251
  summary: Object-relational mapper framework (part of Rails).
265
252
  test_files: []