actionpack 3.0.12.rc1 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of actionpack might be problematic. Click here for more details.
data/lib/action_pack/version.rb
CHANGED
@@ -179,7 +179,7 @@ module ActionView
|
|
179
179
|
def flush_output_buffer #:nodoc:
|
180
180
|
if output_buffer && !output_buffer.empty?
|
181
181
|
response.body_parts << output_buffer
|
182
|
-
self.output_buffer = output_buffer[0,0]
|
182
|
+
self.output_buffer = output_buffer.respond_to?(:clone_empty) ? output_buffer.clone_empty : output_buffer[0, 0]
|
183
183
|
nil
|
184
184
|
end
|
185
185
|
end
|
@@ -596,13 +596,13 @@ module ActionView
|
|
596
596
|
private
|
597
597
|
def add_options(option_tags, options, value = nil)
|
598
598
|
if options[:include_blank]
|
599
|
-
option_tags =
|
599
|
+
option_tags = content_tag('option', options[:include_blank].kind_of?(String) ? options[:include_blank] : nil, :value => '') + "\n" + option_tags
|
600
600
|
end
|
601
601
|
if value.blank? && options[:prompt]
|
602
602
|
prompt = options[:prompt].kind_of?(String) ? options[:prompt] : I18n.translate('helpers.select.prompt', :default => 'Please select')
|
603
|
-
option_tags =
|
603
|
+
option_tags = content_tag('option', prompt, :value => '') + "\n" + option_tags
|
604
604
|
end
|
605
|
-
option_tags
|
605
|
+
option_tags
|
606
606
|
end
|
607
607
|
end
|
608
608
|
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 31
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 0
|
9
9
|
- 12
|
10
|
-
|
11
|
-
- 1
|
12
|
-
version: 3.0.12.rc1
|
10
|
+
version: 3.0.12
|
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-
|
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:
|
28
|
+
hash: 31
|
31
29
|
segments:
|
32
30
|
- 3
|
33
31
|
- 0
|
34
32
|
- 12
|
35
|
-
|
36
|
-
- 1
|
37
|
-
version: 3.0.12.rc1
|
33
|
+
version: 3.0.12
|
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:
|
44
|
+
hash: 31
|
49
45
|
segments:
|
50
46
|
- 3
|
51
47
|
- 0
|
52
48
|
- 12
|
53
|
-
|
54
|
-
- 1
|
55
|
-
version: 3.0.12.rc1
|
49
|
+
version: 3.0.12
|
56
50
|
type: :runtime
|
57
51
|
version_requirements: *id002
|
58
52
|
- !ruby/object:Gem::Dependency
|
@@ -363,14 +357,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
363
357
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
364
358
|
none: false
|
365
359
|
requirements:
|
366
|
-
- - "
|
360
|
+
- - ">="
|
367
361
|
- !ruby/object:Gem::Version
|
368
|
-
hash:
|
362
|
+
hash: 3
|
369
363
|
segments:
|
370
|
-
-
|
371
|
-
|
372
|
-
- 1
|
373
|
-
version: 1.3.1
|
364
|
+
- 0
|
365
|
+
version: "0"
|
374
366
|
requirements:
|
375
367
|
- none
|
376
368
|
rubyforge_project: actionpack
|