actionview 5.1.3 → 5.1.4.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: a17207311eb70b0c7748ef1bc916b5fdc57bc7f1
4
- data.tar.gz: 03920345e52cc538c147faf0343cc2179c272b45
3
+ metadata.gz: 624369f6a3499ff6ae979f42fb98d499ef08edf9
4
+ data.tar.gz: '0484e45dbc1a9bbf45192e612fecff0a73044746'
5
5
  SHA512:
6
- metadata.gz: 73689d609537ed7b5c00f30f063aa551fd444335481d997624ae59d49d387dc664a6510c7f2988068c28386258b1b1e17b404c50584cc75da4486dcd971af108
7
- data.tar.gz: 8124ccf07c90493376fb718380cdbdd64f215123e04e4449970e695ecec29dd9aac0a55b98e01708ed1ca6ba21c17804efca52156697054a3127e52d8480f1ac
6
+ metadata.gz: 613565b87b3e54a54ecc11dc9cc297aeb4ca23a88c7525c81aaac690c032b7b23c92878072fda519c0869ff7736f5b88318c4c88fbc667bf871ddd2a4f427bc7
7
+ data.tar.gz: 955fd062c10f90f83c0499fbf244920cead7a90cd62118b6e2a3ba64bbe4af512f7e4e4e571c9f733909d693e91ee9918cbaa08485b3876a8fb7f4c8e72571e3
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## Rails 5.1.4.rc1 (August 24, 2017) ##
2
+
3
+ * No changes.
4
+
5
+
1
6
  ## Rails 5.1.3 (August 03, 2017) ##
2
7
 
3
8
  * No changes.
@@ -7,8 +7,8 @@ module ActionView
7
7
  module VERSION
8
8
  MAJOR = 5
9
9
  MINOR = 1
10
- TINY = 3
11
- PRE = nil
10
+ TINY = 4
11
+ PRE = "rc1"
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
14
14
  end
@@ -7,8 +7,11 @@ module ActionView
7
7
  module ControllerHelper #:nodoc:
8
8
  attr_internal :controller, :request
9
9
 
10
- delegate :request_forgery_protection_token, :params, :session, :cookies, :response, :headers,
11
- :flash, :action_name, :controller_name, :controller_path, to: :controller
10
+ CONTROLLER_DELEGATES = [:request_forgery_protection_token, :params,
11
+ :session, :cookies, :response, :headers, :flash, :action_name,
12
+ :controller_name, :controller_path]
13
+
14
+ delegate(*CONTROLLER_DELEGATES, to: :controller)
12
15
 
13
16
  def assign_controller(controller)
14
17
  if @_controller = controller
@@ -21,6 +24,11 @@ module ActionView
21
24
  def logger
22
25
  controller.logger if controller.respond_to?(:logger)
23
26
  end
27
+
28
+ def respond_to?(method_name, include_private = false)
29
+ return controller.respond_to?(method_name) if CONTROLLER_DELEGATES.include?(method_name.to_sym)
30
+ super
31
+ end
24
32
  end
25
33
  end
26
34
  end
@@ -541,6 +541,36 @@ module ActionView
541
541
  # and adds an authenticity token needed for cross site request forgery
542
542
  # protection.
543
543
  #
544
+ # === Resource-oriented style
545
+ #
546
+ # In many of the examples just shown, the +:model+ passed to +form_with+
547
+ # is a _resource_. It corresponds to a set of RESTful routes, most likely
548
+ # defined via +resources+ in <tt>config/routes.rb</tt>.
549
+ #
550
+ # So when passing such a model record, Rails infers the URL and method.
551
+ #
552
+ # <%= form_with model: @post do |form| %>
553
+ # ...
554
+ # <% end %>
555
+ #
556
+ # is then equivalent to something like:
557
+ #
558
+ # <%= form_with scope: :post, url: post_path(@post), method: :patch do |form| %>
559
+ # ...
560
+ # <% end %>
561
+ #
562
+ # And for a new record
563
+ #
564
+ # <%= form_with model: Post.new do |form| %>
565
+ # ...
566
+ # <% end %>
567
+ #
568
+ # is equivalent to something like:
569
+ #
570
+ # <%= form_with scope: :post, url: posts_path do |form| %>
571
+ # ...
572
+ # <% end %>
573
+ #
544
574
  # ==== +form_with+ options
545
575
  #
546
576
  # * <tt>:url</tt> - The URL the form submits to. Akin to values passed to
@@ -1,7 +1,7 @@
1
1
  module ActionView
2
2
  module Helpers
3
3
  module RecordTagHelper
4
- def div_for(*)
4
+ def div_for(*) # :nodoc:
5
5
  raise NoMethodError, "The `div_for` method has been removed from " \
6
6
  "Rails. To continue using it, add the `record_tag_helper` gem to " \
7
7
  "your Gemfile:\n" \
@@ -9,7 +9,7 @@ module ActionView
9
9
  "Consult the Rails upgrade guide for details."
10
10
  end
11
11
 
12
- def content_tag_for(*)
12
+ def content_tag_for(*) # :nodoc:
13
13
  raise NoMethodError, "The `content_tag_for` method has been removed from " \
14
14
  "Rails. To continue using it, add the `record_tag_helper` gem to " \
15
15
  "your Gemfile:\n" \
@@ -136,7 +136,7 @@ module ActionView
136
136
  end
137
137
 
138
138
  def sanitized_value(value)
139
- value.to_s.gsub(/\s/, "_").gsub(/[^-\w]/, "").downcase
139
+ value.to_s.gsub(/\s/, "_").gsub(/[^-[[:word:]]]/, "").mb_chars.downcase.to_s
140
140
  end
141
141
 
142
142
  def select_content_tag(option_tags, options, html_options)
@@ -4,9 +4,9 @@ https://github.com/rails/rails/blob/master/actionview/app/assets/javascripts
4
4
  Released under the MIT license
5
5
  */
6
6
 
7
- ;
8
-
9
7
  (function() {
8
+ var context = this;
9
+
10
10
  (function() {
11
11
  (function() {
12
12
  this.Rails = {
@@ -26,9 +26,9 @@ Released under the MIT license
26
26
  };
27
27
 
28
28
  }).call(this);
29
- }).call(this);
29
+ }).call(context);
30
30
 
31
- var Rails = this.Rails;
31
+ var Rails = context.Rails;
32
32
 
33
33
  (function() {
34
34
  (function() {
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: 5.1.3
4
+ version: 5.1.4.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: 2017-08-03 00:00:00.000000000 Z
11
+ date: 2017-08-24 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: 5.1.3
19
+ version: 5.1.4.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: 5.1.3
26
+ version: 5.1.4.rc1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: builder
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -92,28 +92,28 @@ dependencies:
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 5.1.3
95
+ version: 5.1.4.rc1
96
96
  type: :development
97
97
  prerelease: false
98
98
  version_requirements: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 5.1.3
102
+ version: 5.1.4.rc1
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: activemodel
105
105
  requirement: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - '='
108
108
  - !ruby/object:Gem::Version
109
- version: 5.1.3
109
+ version: 5.1.4.rc1
110
110
  type: :development
111
111
  prerelease: false
112
112
  version_requirements: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - '='
115
115
  - !ruby/object:Gem::Version
116
- version: 5.1.3
116
+ version: 5.1.4.rc1
117
117
  description: Simple, battle-tested conventions and helpers for building web pages.
118
118
  email: david@loudthinking.com
119
119
  executables: []
@@ -242,9 +242,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
242
242
  version: 2.2.2
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: