actionpack 3.2.2.rc1 → 3.2.2

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.

@@ -267,8 +267,7 @@ module ActionDispatch
267
267
  def eval_block(block)
268
268
  if block.arity == 1
269
269
  raise "You are using the old router DSL which has been removed in Rails 3.1. " <<
270
- "Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/ " <<
271
- "or add the rails_legacy_mapper gem to your Gemfile"
270
+ "Please check how to update your routes file at: http://www.engineyard.com/blog/2010/the-lowdown-on-routes-in-rails-3/"
272
271
  end
273
272
  mapper = Mapper.new(self)
274
273
  if default_scope
@@ -3,7 +3,7 @@ module ActionPack
3
3
  MAJOR = 3
4
4
  MINOR = 2
5
5
  TINY = 2
6
- PRE = "rc1"
6
+ PRE = nil
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
@@ -194,7 +194,7 @@ module ActionView
194
194
  def flush_output_buffer #:nodoc:
195
195
  if output_buffer && !output_buffer.empty?
196
196
  response.body_parts << output_buffer
197
- self.output_buffer = output_buffer[0,0]
197
+ self.output_buffer = output_buffer.respond_to?(:clone_empty) ? output_buffer.clone_empty : output_buffer[0, 0]
198
198
  nil
199
199
  end
200
200
  end
@@ -616,13 +616,13 @@ module ActionView
616
616
  private
617
617
  def add_options(option_tags, options, value = nil)
618
618
  if options[:include_blank]
619
- option_tags = "<option value=\"\">#{ERB::Util.html_escape(options[:include_blank]) if options[:include_blank].kind_of?(String)}</option>\n" + option_tags
619
+ option_tags = content_tag('option', options[:include_blank].kind_of?(String) ? options[:include_blank] : nil, :value => '') + "\n" + option_tags
620
620
  end
621
621
  if value.blank? && options[:prompt]
622
622
  prompt = options[:prompt].kind_of?(String) ? options[:prompt] : I18n.translate('helpers.select.prompt', :default => 'Please select')
623
- option_tags = "<option value=\"\">#{ERB::Util.html_escape(prompt)}</option>\n" + option_tags
623
+ option_tags = content_tag('option', prompt, :value => '') + "\n" + option_tags
624
624
  end
625
- option_tags.html_safe
625
+ option_tags
626
626
  end
627
627
 
628
628
  def select_content_tag(option_tags, options, html_options)
metadata CHANGED
@@ -1,15 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424071
5
- prerelease: 6
4
+ hash: 11
5
+ prerelease:
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
9
  - 2
10
- - rc
11
- - 1
12
- version: 3.2.2.rc1
10
+ version: 3.2.2
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-02-22 00:00:00 Z
18
+ date: 2012-03-01 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: 15424071
28
+ hash: 11
31
29
  segments:
32
30
  - 3
33
31
  - 2
34
32
  - 2
35
- - rc
36
- - 1
37
- version: 3.2.2.rc1
33
+ version: 3.2.2
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: 15424071
44
+ hash: 11
49
45
  segments:
50
46
  - 3
51
47
  - 2
52
48
  - 2
53
- - rc
54
- - 1
55
- version: 3.2.2.rc1
49
+ version: 3.2.2
56
50
  type: :runtime
57
51
  version_requirements: *id002
58
52
  - !ruby/object:Gem::Dependency
@@ -404,14 +398,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
404
398
  required_rubygems_version: !ruby/object:Gem::Requirement
405
399
  none: false
406
400
  requirements:
407
- - - ">"
401
+ - - ">="
408
402
  - !ruby/object:Gem::Version
409
- hash: 25
403
+ hash: 3
410
404
  segments:
411
- - 1
412
- - 3
413
- - 1
414
- version: 1.3.1
405
+ - 0
406
+ version: "0"
415
407
  requirements:
416
408
  - none
417
409
  rubyforge_project: