actionview 4.2.5.2 → 4.2.6.rc1

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

Potentially problematic release.


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

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c1c1ffcc325396c04316a0d309fcb858f9eec5b1
4
- data.tar.gz: 3030d020724c256777659f2c9a7dfa445cb84360
3
+ metadata.gz: 44bd140d42718e292cd62ace56593dc853ef749b
4
+ data.tar.gz: 429bf9f3def6c4386a6ad276e46db31429f40bb2
5
5
  SHA512:
6
- metadata.gz: 9012619bedc05a4ba84268291dabd997dc238c9a629820b5d5cdd14906851c9c02b34b117e49efdf7d92389b4824a26f3c5c05c91f173f819ded1518325eb7d6
7
- data.tar.gz: 6c02cdae8743cfec0ef44d7e27fac8d182e934406094e90cde3dc245d605f59a3202e154486c2782cf28b9d7433ceb1375a9e85757d77b9162484f395f1ef35c
6
+ metadata.gz: 8f242a2be7bb096ca61e761653cc84c2d4318d2f80df7047dbb210e4d2adcc357fb32ef6867650f4447d4c8753f84a2ed51e9c7d299df0863ea19667fd220093
7
+ data.tar.gz: 98c1112a711c4bdb674a6d10d4fb7e5dbea5462ed096359aeb0b5ed21e7c0610588f7c78715bbb007f97469286573f8ff1dbb2b1936532c8730adf868ec2d470
@@ -1,3 +1,28 @@
1
+ ## Rails 4.2.6.rc1 (March 01, 2016) ##
2
+
3
+ * Fix stripping the digest from the automatically generated img tag alt
4
+ attribute when assets are handled by Sprockets >=3.0.
5
+
6
+ *Bart de Water*
7
+
8
+ * Create a new `ActiveSupport::SafeBuffer` instance when `content_for` is flushed.
9
+
10
+ Fixes #19890
11
+
12
+ *Yoong Kang Lim*
13
+
14
+ * Respect value of `:object` if `:object` is false when rendering.
15
+
16
+ Fixes #22260.
17
+
18
+ *Yuichiro Kaneko*
19
+
20
+ * Generate `week_field` input values using a 1-based index and not a 0-based index
21
+ as per the W3 spec: http://www.w3.org/TR/html-markup/datatypes.html#form.data.week
22
+
23
+ *Christoph Geschwind*
24
+
25
+
1
26
  ## Rails 4.2.5.2 (February 26, 2016) ##
2
27
 
3
28
  * Do not allow render with unpermitted parameter.
@@ -15,7 +15,7 @@ module ActionView
15
15
 
16
16
  # Called by each renderer object to set the layout contents.
17
17
  def set(key, value)
18
- @content[key] = value
18
+ @content[key] = ActiveSupport::SafeBuffer.new(value)
19
19
  end
20
20
 
21
21
  # Called by content_for
@@ -7,8 +7,8 @@ module ActionView
7
7
  module VERSION
8
8
  MAJOR = 4
9
9
  MINOR = 2
10
- TINY = 5
11
- PRE = "2"
10
+ TINY = 6
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -236,7 +236,7 @@ module ActionView
236
236
  # image_alt('underscored_file_name.png')
237
237
  # # => Underscored file name
238
238
  def image_alt(src)
239
- File.basename(src, '.*').sub(/-[[:xdigit:]]{32}\z/, '').tr('-_', ' ').capitalize
239
+ File.basename(src, '.*').sub(/-[[:xdigit:]]{32,64}\z/, '').tr('-_', ' ').capitalize
240
240
  end
241
241
 
242
242
  # Returns an HTML video tag for the +sources+. If +sources+ is a string,
@@ -5,7 +5,7 @@ module ActionView
5
5
  private
6
6
 
7
7
  def format_date(value)
8
- value.try(:strftime, "%Y-W%W")
8
+ value.try(:strftime, "%Y-W%V")
9
9
  end
10
10
  end
11
11
  end
@@ -333,7 +333,7 @@ module ActionView
333
333
  layout = find_template(layout.to_s, @template_keys)
334
334
  end
335
335
 
336
- object ||= locals[as]
336
+ object = locals[as] if object.nil? # Respect object when object is false
337
337
  locals[as] = object
338
338
 
339
339
  content = @template.render(view, locals) do |*name|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.5.2
4
+ version: 4.2.6.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-29 00:00:00.000000000 Z
11
+ date: 2016-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 4.2.5.2
19
+ version: 4.2.6.rc1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 4.2.5.2
26
+ version: 4.2.6.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -98,28 +98,28 @@ dependencies:
98
98
  requirements:
99
99
  - - '='
100
100
  - !ruby/object:Gem::Version
101
- version: 4.2.5.2
101
+ version: 4.2.6.rc1
102
102
  type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - '='
107
107
  - !ruby/object:Gem::Version
108
- version: 4.2.5.2
108
+ version: 4.2.6.rc1
109
109
  - !ruby/object:Gem::Dependency
110
110
  name: activemodel
111
111
  requirement: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - '='
114
114
  - !ruby/object:Gem::Version
115
- version: 4.2.5.2
115
+ version: 4.2.6.rc1
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - '='
121
121
  - !ruby/object:Gem::Version
122
- version: 4.2.5.2
122
+ version: 4.2.6.rc1
123
123
  description: Simple, battle-tested conventions and helpers for building web pages.
124
124
  email: david@loudthinking.com
125
125
  executables: []
@@ -242,9 +242,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: 1.9.3
243
243
  required_rubygems_version: !ruby/object:Gem::Requirement
244
244
  requirements:
245
- - - ">="
245
+ - - ">"
246
246
  - !ruby/object:Gem::Version
247
- version: '0'
247
+ version: 1.3.1
248
248
  requirements:
249
249
  - none
250
250
  rubyforge_project: