activerecord 3.0.13.rc1 → 3.0.13

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.

data/CHANGELOG CHANGED
@@ -1,3 +1,14 @@
1
+ * Rails 3.0.13 (May 31, 2012)
2
+
3
+ * Bugfix circular reference while saving has_one relationship
4
+
5
+ * Test for circular reference while saving has_one relationship
6
+
7
+ * Fixed typo in composed_of example with Money#<=>
8
+
9
+ * predicate builder should not recurse for determining where columns.
10
+ Thanks to Ben Murphy for reporting this! CVE-2012-2661
11
+
1
12
  * Rails 3.0.11 (unreleased)
2
13
 
3
14
  * Exceptions from database adapters should not lose their backtrace.
@@ -5,17 +5,17 @@ module ActiveRecord
5
5
  @engine = engine
6
6
  end
7
7
 
8
- def build_from_hash(attributes, default_table)
8
+ def build_from_hash(attributes, default_table, check_column = true)
9
9
  predicates = attributes.map do |column, value|
10
10
  table = default_table
11
11
 
12
12
  if value.is_a?(Hash)
13
13
  table = Arel::Table.new(column, :engine => @engine)
14
- build_from_hash(value, table)
14
+ build_from_hash(value, table, false)
15
15
  else
16
16
  column = column.to_s
17
17
 
18
- if column.include?('.')
18
+ if check_column && column.include?('.')
19
19
  table_name, column = column.split('.', 2)
20
20
  table = Arel::Table.new(table_name, :engine => @engine)
21
21
  end
@@ -3,7 +3,7 @@ module ActiveRecord
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
5
  TINY = 13
6
- PRE = "rc1"
6
+ PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activerecord
3
3
  version: !ruby/object:Gem::Version
4
- hash: -791037378
5
- prerelease: 7
4
+ hash: 29
5
+ prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 13
10
- - rc
11
- - 1
12
- version: 3.0.13.rc1
10
+ version: 3.0.13
13
11
  platform: ruby
14
12
  authors:
15
13
  - David Heinemeier Hansson
@@ -17,7 +15,7 @@ autorequire:
17
15
  bindir: bin
18
16
  cert_chain: []
19
17
 
20
- date: 2012-05-28 00:00:00 Z
18
+ date: 2012-05-31 00:00:00 Z
21
19
  dependencies:
22
20
  - !ruby/object:Gem::Dependency
23
21
  name: activesupport
@@ -27,14 +25,12 @@ dependencies:
27
25
  requirements:
28
26
  - - "="
29
27
  - !ruby/object:Gem::Version
30
- hash: -791037378
28
+ hash: 29
31
29
  segments:
32
30
  - 3
33
31
  - 0
34
32
  - 13
35
- - rc
36
- - 1
37
- version: 3.0.13.rc1
33
+ version: 3.0.13
38
34
  type: :runtime
39
35
  version_requirements: *id001
40
36
  - !ruby/object:Gem::Dependency
@@ -45,14 +41,12 @@ dependencies:
45
41
  requirements:
46
42
  - - "="
47
43
  - !ruby/object:Gem::Version
48
- hash: -791037378
44
+ hash: 29
49
45
  segments:
50
46
  - 3
51
47
  - 0
52
48
  - 13
53
- - rc
54
- - 1
55
- version: 3.0.13.rc1
49
+ version: 3.0.13
56
50
  type: :runtime
57
51
  version_requirements: *id002
58
52
  - !ruby/object:Gem::Dependency
@@ -213,14 +207,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
213
207
  required_rubygems_version: !ruby/object:Gem::Requirement
214
208
  none: false
215
209
  requirements:
216
- - - ">"
210
+ - - ">="
217
211
  - !ruby/object:Gem::Version
218
- hash: 25
212
+ hash: 3
219
213
  segments:
220
- - 1
221
- - 3
222
- - 1
223
- version: 1.3.1
214
+ - 0
215
+ version: "0"
224
216
  requirements: []
225
217
 
226
218
  rubyforge_project: activerecord