actionpack 3.1.4.rc1 → 3.1.4

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.

@@ -3,7 +3,7 @@ module ActionPack
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
5
  TINY = 4
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
@@ -595,13 +595,13 @@ module ActionView
595
595
  private
596
596
  def add_options(option_tags, options, value = nil)
597
597
  if options[:include_blank]
598
- option_tags = "<option value=\"\">#{ERB::Util.html_escape(options[:include_blank]) if options[:include_blank].kind_of?(String)}</option>\n" + option_tags
598
+ option_tags = content_tag('option', options[:include_blank].kind_of?(String) ? options[:include_blank] : nil, :value => '') + "\n" + option_tags
599
599
  end
600
600
  if value.blank? && options[:prompt]
601
601
  prompt = options[:prompt].kind_of?(String) ? options[:prompt] : I18n.translate('helpers.select.prompt', :default => 'Please select')
602
- option_tags = "<option value=\"\">#{ERB::Util.html_escape(prompt)}</option>\n" + option_tags
602
+ option_tags = content_tag('option', prompt, :value => '') + "\n" + option_tags
603
603
  end
604
- option_tags.html_safe
604
+ option_tags
605
605
  end
606
606
  end
607
607
 
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
  - 1
9
9
  - 4
10
- - rc
11
- - 1
12
- version: 3.1.4.rc1
10
+ version: 3.1.4
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
  - 1
34
32
  - 4
35
- - rc
36
- - 1
37
- version: 3.1.4.rc1
33
+ version: 3.1.4
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
  - 1
52
48
  - 4
53
- - rc
54
- - 1
55
- version: 3.1.4.rc1
49
+ version: 3.1.4
56
50
  type: :runtime
57
51
  version_requirements: *id002
58
52
  - !ruby/object:Gem::Dependency
@@ -416,14 +410,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
416
410
  required_rubygems_version: !ruby/object:Gem::Requirement
417
411
  none: false
418
412
  requirements:
419
- - - ">"
413
+ - - ">="
420
414
  - !ruby/object:Gem::Version
421
- hash: 25
415
+ hash: 3
422
416
  segments:
423
- - 1
424
- - 3
425
- - 1
426
- version: 1.3.1
417
+ - 0
418
+ version: "0"
427
419
  requirements:
428
420
  - none
429
421
  rubyforge_project: