actionview 4.1.8 → 4.1.9.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3af0961ce3e95061a5d32d21c36afc882f6c301c
|
4
|
+
data.tar.gz: 99378a694f69bf0fdcf683ad4f8f0fe811f62702
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 78ca1178b4b4ad5779ba1a0baf7d20646ab8ff3a923a29b2f61dff2a5d1ad7c88ed535a3ba5d916dfcd5091bbcf99b6dbd3f055c9e7301e7fb5f71a0e6a46d73
|
7
|
+
data.tar.gz: d0185e40a71cfda37f30c08a5e9cdbcba2c14930457583a784a51bb715b01abb4acc6d48fbb6755063f0f632721e0bba1d0defdb179ba12c310c1ae6ced070ec
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
* Added an explicit error message, in `ActionView::PartialRenderer`
|
2
|
+
for partial `rendering`, when the value of option `as` has invalid characters.
|
3
|
+
|
4
|
+
*Angelo Capilleri*
|
5
|
+
|
6
|
+
|
7
|
+
## Rails 4.1.8 (November 16, 2014) ##
|
8
|
+
|
1
9
|
* Update `select_tag` to work correctly with `:include_blank` option passing a string.
|
2
10
|
|
3
11
|
Fixes #16483.
|
@@ -5,6 +13,16 @@
|
|
5
13
|
*Frank Groeneveld*
|
6
14
|
|
7
15
|
|
16
|
+
## Rails 4.1.7.1 (November 19, 2014) ##
|
17
|
+
|
18
|
+
* No changes.
|
19
|
+
|
20
|
+
|
21
|
+
## Rails 4.1.7 (October 29, 2014) ##
|
22
|
+
|
23
|
+
* No changes.
|
24
|
+
|
25
|
+
|
8
26
|
## Rails 4.1.6 (September 11, 2014) ##
|
9
27
|
|
10
28
|
* Fix that render layout: 'messages/layout' should also be added to the dependency tracker tree.
|
@@ -1871,6 +1871,8 @@ module ActionView
|
|
1871
1871
|
end
|
1872
1872
|
|
1873
1873
|
ActiveSupport.on_load(:action_view) do
|
1874
|
-
cattr_accessor(:default_form_builder
|
1874
|
+
cattr_accessor(:default_form_builder, instance_writer: false, instance_reader: false) do
|
1875
|
+
::ActionView::Helpers::FormBuilder
|
1876
|
+
end
|
1875
1877
|
end
|
1876
1878
|
end
|
@@ -133,7 +133,9 @@ module ActionView
|
|
133
133
|
include_blank = ''
|
134
134
|
end
|
135
135
|
|
136
|
-
|
136
|
+
if include_blank
|
137
|
+
option_tags = content_tag(:option, include_blank, value: '').safe_concat(option_tags)
|
138
|
+
end
|
137
139
|
end
|
138
140
|
|
139
141
|
if prompt = options.delete(:prompt)
|
@@ -347,7 +347,7 @@ module ActionView
|
|
347
347
|
end
|
348
348
|
|
349
349
|
if as = options[:as]
|
350
|
-
|
350
|
+
raise_invalid_option_as(as) unless as.to_s =~ /\A[a-z_]\w*\z/
|
351
351
|
as = as.to_sym
|
352
352
|
end
|
353
353
|
|
@@ -482,11 +482,19 @@ module ActionView
|
|
482
482
|
end
|
483
483
|
|
484
484
|
IDENTIFIER_ERROR_MESSAGE = "The partial name (%s) is not a valid Ruby identifier; " +
|
485
|
-
"make sure your partial name starts with
|
485
|
+
"make sure your partial name starts with underscore, " +
|
486
|
+
"and is followed by any combination of letters, numbers and underscores."
|
487
|
+
|
488
|
+
OPTION_AS_ERROR_MESSAGE = "The value (%s) of the option `as` is not a valid Ruby identifier; " +
|
489
|
+
"make sure it starts with lowercase letter, " +
|
486
490
|
"and is followed by any combination of letters, numbers and underscores."
|
487
491
|
|
488
492
|
def raise_invalid_identifier(path)
|
489
493
|
raise ArgumentError.new(IDENTIFIER_ERROR_MESSAGE % (path))
|
490
494
|
end
|
495
|
+
|
496
|
+
def raise_invalid_option_as(as)
|
497
|
+
raise ArgumentError.new(OPTION_AS_ERROR_MESSAGE % (as))
|
498
|
+
end
|
491
499
|
end
|
492
500
|
end
|
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.1.
|
4
|
+
version: 4.1.9.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:
|
11
|
+
date: 2015-01-02 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.1.
|
19
|
+
version: 4.1.9.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.1.
|
26
|
+
version: 4.1.9.rc1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: builder
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 4.1.
|
61
|
+
version: 4.1.9.rc1
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 4.1.
|
68
|
+
version: 4.1.9.rc1
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: activemodel
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - '='
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 4.1.
|
75
|
+
version: 4.1.9.rc1
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 4.1.
|
82
|
+
version: 4.1.9.rc1
|
83
83
|
description: Simple, battle-tested conventions and helpers for building web pages.
|
84
84
|
email: david@loudthinking.com
|
85
85
|
executables: []
|
@@ -207,13 +207,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
207
207
|
version: 1.9.3
|
208
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
209
209
|
requirements:
|
210
|
-
- - "
|
210
|
+
- - ">"
|
211
211
|
- !ruby/object:Gem::Version
|
212
|
-
version:
|
212
|
+
version: 1.3.1
|
213
213
|
requirements:
|
214
214
|
- none
|
215
215
|
rubyforge_project:
|
216
|
-
rubygems_version: 2.4.
|
216
|
+
rubygems_version: 2.4.5
|
217
217
|
signing_key:
|
218
218
|
specification_version: 4
|
219
219
|
summary: Rendering framework putting the V in MVC (part of Rails).
|