actionpack 3.0.2 → 3.0.3

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

Potentially problematic release.


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

data/CHANGELOG CHANGED
@@ -1,3 +1,10 @@
1
+ *Rails 3.0.3 (November 16, 2010)*
2
+
3
+ * When ActiveRecord::Base objects are sent to predicate methods, the id of the object should be sent to ARel, not the ActiveRecord::Base object.
4
+
5
+ * :constraints routing should only do sanity checks against regular expressions. String arguments are OK.
6
+
7
+
1
8
  *Rails 3.0.2 (November 15, 2010)*
2
9
 
3
10
  * The helper number_to_currency accepts a new :negative_format option to be able to configure how to render negative amounts. [Don Wilson]
@@ -114,7 +114,7 @@ module ActionDispatch
114
114
  requirements.reverse_merge!(@scope[:constraints]) if @scope[:constraints]
115
115
  @options.each { |k, v| requirements[k] = v if v.is_a?(Regexp) }
116
116
 
117
- requirements.each do |_, requirement|
117
+ requirements.values.grep(Regexp).each do |requirement|
118
118
  if requirement.source =~ %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}
119
119
  raise ArgumentError, "Regexp anchor characters are not allowed in routing requirements: #{requirement.inspect}"
120
120
  end
@@ -2,7 +2,7 @@ module ActionPack
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
- TINY = 2
5
+ TINY = 3
6
6
 
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
- - 2
10
- version: 3.0.2
9
+ - 3
10
+ version: 3.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Heinemeier Hansson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-15 00:00:00 -06:00
18
+ date: 2010-11-16 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -26,12 +26,12 @@ dependencies:
26
26
  requirements:
27
27
  - - "="
28
28
  - !ruby/object:Gem::Version
29
- hash: 3
29
+ hash: 1
30
30
  segments:
31
31
  - 3
32
32
  - 0
33
- - 2
34
- version: 3.0.2
33
+ - 3
34
+ version: 3.0.3
35
35
  type: :runtime
36
36
  version_requirements: *id001
37
37
  - !ruby/object:Gem::Dependency
@@ -42,12 +42,12 @@ dependencies:
42
42
  requirements:
43
43
  - - "="
44
44
  - !ruby/object:Gem::Version
45
- hash: 3
45
+ hash: 1
46
46
  segments:
47
47
  - 3
48
48
  - 0
49
- - 2
50
- version: 3.0.2
49
+ - 3
50
+ version: 3.0.3
51
51
  type: :runtime
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
@@ -74,12 +74,11 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- hash: 13
77
+ hash: 3
78
78
  segments:
79
79
  - 0
80
80
  - 4
81
- - 1
82
- version: 0.4.1
81
+ version: "0.4"
83
82
  type: :runtime
84
83
  version_requirements: *id004
85
84
  - !ruby/object:Gem::Dependency