actionpack 3.0.9.rc4 → 3.0.9.rc5

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.
@@ -3,7 +3,7 @@ module ActionPack
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
5
  TINY = 9
6
- PRE = "rc4"
6
+ PRE = "rc5"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
9
9
  end
@@ -192,6 +192,9 @@ module ActionView
192
192
  locals_code = locals.keys.map! { |key| "#{key} = local_assigns[:#{key}];" }.join
193
193
 
194
194
  if source.encoding_aware?
195
+ # Avoid performing in-place mutation for SafeBuffer
196
+ @source = source.to_str if source.html_safe?
197
+
195
198
  # Look for # encoding: *. If we find one, we'll encode the
196
199
  # String in that encoding, otherwise, we'll use the
197
200
  # default external encoding.
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionpack
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15424053
4
+ hash: 15424055
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 0
9
9
  - 9
10
10
  - rc
11
- - 4
12
- version: 3.0.9.rc4
11
+ - 5
12
+ version: 3.0.9.rc5
13
13
  platform: ruby
14
14
  authors:
15
15
  - David Heinemeier Hansson
@@ -27,14 +27,14 @@ dependencies:
27
27
  requirements:
28
28
  - - "="
29
29
  - !ruby/object:Gem::Version
30
- hash: 15424053
30
+ hash: 15424055
31
31
  segments:
32
32
  - 3
33
33
  - 0
34
34
  - 9
35
35
  - rc
36
- - 4
37
- version: 3.0.9.rc4
36
+ - 5
37
+ version: 3.0.9.rc5
38
38
  type: :runtime
39
39
  version_requirements: *id001
40
40
  - !ruby/object:Gem::Dependency
@@ -45,14 +45,14 @@ dependencies:
45
45
  requirements:
46
46
  - - "="
47
47
  - !ruby/object:Gem::Version
48
- hash: 15424053
48
+ hash: 15424055
49
49
  segments:
50
50
  - 3
51
51
  - 0
52
52
  - 9
53
53
  - rc
54
- - 4
55
- version: 3.0.9.rc4
54
+ - 5
55
+ version: 3.0.9.rc5
56
56
  type: :runtime
57
57
  version_requirements: *id002
58
58
  - !ruby/object:Gem::Dependency