actionview 6.0.0.rc1 → 6.0.0.rc2
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 +4 -4
- data/CHANGELOG.md +7 -0
- data/lib/action_view/cache_expiry.rb +13 -8
- data/lib/action_view/gem_version.rb +1 -1
- data/lib/action_view/helpers/form_tag_helper.rb +2 -1
- data/lib/action_view/helpers/translation_helper.rb +1 -1
- data/lib/action_view/helpers/url_helper.rb +1 -1
- data/lib/assets/compiled/rails-ujs.js +3 -3
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 406c498360f8019bff664abb10c1607a5e9c7fff833fdf435558fe3d75aeb472
|
4
|
+
data.tar.gz: 590891edac2051e98a8c0428071b63882e62d493f5a5a7d12d938f9b8c51bd4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6cc2b63b31fdc302fd9c4b8014e7133578995f815fe00e1d082b6bf662cade34c363162e5a72fae2b7299ac70dc4e093b43c4eac43165e61258d067131d6e98
|
7
|
+
data.tar.gz: 5ee50935ad12820bf14bed3a6e86521cae20a255746cd01c8770f27cff4c011081cc53a1476760d2817b59dc11b6a47cfa7f2c490ba5769ef46bf82620f5fcf3
|
data/CHANGELOG.md
CHANGED
@@ -16,18 +16,23 @@ module ActionView
|
|
16
16
|
@watched_dirs = nil
|
17
17
|
@watcher_class = watcher
|
18
18
|
@watcher = nil
|
19
|
+
@mutex = Mutex.new
|
19
20
|
end
|
20
21
|
|
21
22
|
def clear_cache_if_necessary
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
23
|
+
@mutex.synchronize do
|
24
|
+
watched_dirs = dirs_to_watch
|
25
|
+
return if watched_dirs.empty?
|
26
|
+
|
27
|
+
if watched_dirs != @watched_dirs
|
28
|
+
@watched_dirs = watched_dirs
|
29
|
+
@watcher = @watcher_class.new([], watched_dirs) do
|
30
|
+
clear_cache
|
31
|
+
end
|
32
|
+
@watcher.execute
|
33
|
+
else
|
34
|
+
@watcher.execute_if_updated
|
27
35
|
end
|
28
|
-
@watcher.execute
|
29
|
-
else
|
30
|
-
@watcher.execute_if_updated
|
31
36
|
end
|
32
37
|
end
|
33
38
|
|
@@ -137,7 +137,8 @@ module ActionView
|
|
137
137
|
html_name = (options[:multiple] == true && !name.to_s.ends_with?("[]")) ? "#{name}[]" : name
|
138
138
|
|
139
139
|
if options.include?(:include_blank)
|
140
|
-
include_blank = options
|
140
|
+
include_blank = options[:include_blank]
|
141
|
+
options = options.except(:include_blank)
|
141
142
|
options_for_blank_options_tag = { value: "" }
|
142
143
|
|
143
144
|
if include_blank == true
|
@@ -60,7 +60,7 @@ module ActionView
|
|
60
60
|
def translate(key, options = {})
|
61
61
|
options = options.dup
|
62
62
|
if options.has_key?(:default)
|
63
|
-
remaining_defaults = Array(options.delete(:default)).compact
|
63
|
+
remaining_defaults = Array.wrap(options.delete(:default)).compact
|
64
64
|
options[:default] = remaining_defaults unless remaining_defaults.first.kind_of?(Symbol)
|
65
65
|
end
|
66
66
|
|
@@ -253,7 +253,7 @@ module ActionView
|
|
253
253
|
# # <input value="New" type="submit" />
|
254
254
|
# # </form>"
|
255
255
|
#
|
256
|
-
# <%= button_to "New",
|
256
|
+
# <%= button_to "New", new_article_path %>
|
257
257
|
# # => "<form method="post" action="/articles/new" class="button_to">
|
258
258
|
# # <input value="New" type="submit" />
|
259
259
|
# # </form>"
|
@@ -645,14 +645,14 @@ Released under the MIT license
|
|
645
645
|
};
|
646
646
|
|
647
647
|
Rails.preventInsignificantClick = function(e) {
|
648
|
-
var data, insignificantMetaClick, link, metaClick, method,
|
648
|
+
var data, insignificantMetaClick, link, metaClick, method, nonPrimaryMouseClick;
|
649
649
|
link = this;
|
650
650
|
method = (link.getAttribute('data-method') || 'GET').toUpperCase();
|
651
651
|
data = link.getAttribute('data-params');
|
652
652
|
metaClick = e.metaKey || e.ctrlKey;
|
653
653
|
insignificantMetaClick = metaClick && method === 'GET' && !data;
|
654
|
-
|
655
|
-
if (
|
654
|
+
nonPrimaryMouseClick = (e.button != null) && e.button !== 0;
|
655
|
+
if (nonPrimaryMouseClick || insignificantMetaClick) {
|
656
656
|
return e.stopImmediatePropagation();
|
657
657
|
}
|
658
658
|
};
|
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: 6.0.0.
|
4
|
+
version: 6.0.0.rc2
|
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: 2019-
|
11
|
+
date: 2019-07-22 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: 6.0.0.
|
19
|
+
version: 6.0.0.rc2
|
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: 6.0.0.
|
26
|
+
version: 6.0.0.rc2
|
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: 6.0.0.
|
95
|
+
version: 6.0.0.rc2
|
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: 6.0.0.
|
102
|
+
version: 6.0.0.rc2
|
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: 6.0.0.
|
109
|
+
version: 6.0.0.rc2
|
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: 6.0.0.
|
116
|
+
version: 6.0.0.rc2
|
117
117
|
description: Simple, battle-tested conventions and helpers for building web pages.
|
118
118
|
email: david@loudthinking.com
|
119
119
|
executables: []
|
@@ -235,8 +235,8 @@ homepage: https://rubyonrails.org
|
|
235
235
|
licenses:
|
236
236
|
- MIT
|
237
237
|
metadata:
|
238
|
-
source_code_uri: https://github.com/rails/rails/tree/v6.0.0.
|
239
|
-
changelog_uri: https://github.com/rails/rails/blob/v6.0.0.
|
238
|
+
source_code_uri: https://github.com/rails/rails/tree/v6.0.0.rc2/actionview
|
239
|
+
changelog_uri: https://github.com/rails/rails/blob/v6.0.0.rc2/actionview/CHANGELOG.md
|
240
240
|
post_install_message:
|
241
241
|
rdoc_options: []
|
242
242
|
require_paths:
|