actionview 6.1.3.2 → 6.1.4

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
  SHA256:
3
- metadata.gz: 3c04bfae66bfb0c8ce7c1f588649fabc38e06073e96345bf75f678812dc27497
4
- data.tar.gz: 54799a7696ca54e307a15928f0f53db6be574c7e1cafdc52be44549e0b0f26a6
3
+ metadata.gz: d032131f3879f298ee73bdec251c6b71bcf05c12bda0bb4a8156cb77096c8cb8
4
+ data.tar.gz: '034379d2e8c7d137f60fcc3044aef37b94f2d5f7b441d634f7e24f72f01c817d'
5
5
  SHA512:
6
- metadata.gz: 84c99e72174ddec6667077af14b1c2dbaa3b12788802203a6c2a51888f71b2db860e3c6fa46cec717814e14e879dd2e97156f133483281061f5faf2631319641
7
- data.tar.gz: 55ea61a6b1821f6a06c1d0ffa60c6c4eff4d78863bb6e25b18a40bc59d202cc3e8b30808285596cb6ae2c66c8df85ffa979858224bc992bcdadb975e8a8c14b6
6
+ metadata.gz: d8a6276b5517f7991936433c76543041c35a7521eae07ec5afd46db1b3fa7292aa15ed92b74784774a72ff5b7af8bf5e07c3bff70f4a25c5fb2d0ec55d2092d5
7
+ data.tar.gz: 940c438d6ce952627e2bc08a6d7272a6ceae8fe4b89095acc9daa889d8a8eb3f1ceced29ee4c9c3c8ffc41ed9104eae2be6a62c643eba66679d6ab744b125961
data/CHANGELOG.md CHANGED
@@ -1,3 +1,19 @@
1
+ ## Rails 6.1.4 (June 24, 2021) ##
2
+
3
+ * The `translate` helper now passes `default` values that aren't
4
+ translation keys through `I18n.translate` for interpolation.
5
+
6
+ *Jonathan Hefner*
7
+
8
+ * Don't attach UJS form submission handlers to Turbo forms.
9
+
10
+ *David Heinemeier Hansson*
11
+
12
+ * Allow both `current_page?(url_hash)` and `current_page?(**url_hash)` on Ruby 2.7.
13
+
14
+ *Ryuta Kamizono*
15
+
16
+
1
17
  ## Rails 6.1.3.2 (May 05, 2021) ##
2
18
 
3
19
  * No changes.
@@ -9,8 +9,8 @@ module ActionView
9
9
  module VERSION
10
10
  MAJOR = 6
11
11
  MINOR = 1
12
- TINY = 3
13
- PRE = "2"
12
+ TINY = 4
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -294,7 +294,7 @@ module ActionView
294
294
  # # => <link rel="preload" href="/media/audio.ogg" as="audio" type="audio/ogg" />
295
295
  #
296
296
  def preload_link_tag(source, options = {})
297
- href = asset_path(source, skip_pipeline: options.delete(:skip_pipeline))
297
+ href = path_to_asset(source, skip_pipeline: options.delete(:skip_pipeline))
298
298
  extname = File.extname(source).downcase.delete(".")
299
299
  mime_type = options.delete(:type) || Template::Types[extname]&.to_s
300
300
  as_type = options.delete(:as) || resolve_link_as(extname, mime_type)
@@ -94,7 +94,9 @@ module ActionView
94
94
  break translated unless translated.equal?(MISSING_TRANSLATION)
95
95
  end
96
96
 
97
- break alternatives.first if alternatives.present? && !alternatives.first.is_a?(Symbol)
97
+ if alternatives.present? && !alternatives.first.is_a?(Symbol)
98
+ break alternatives.first && I18n.translate(**options, default: alternatives)
99
+ end
98
100
 
99
101
  first_key ||= key
100
102
  key = alternatives&.shift
@@ -571,6 +571,19 @@ module ActionView
571
571
  end
572
572
  end
573
573
 
574
+ if RUBY_VERSION.start_with?("2.7")
575
+ using Module.new {
576
+ refine UrlHelper do
577
+ alias :_current_page? :current_page?
578
+ end
579
+ }
580
+
581
+ def current_page?(*args) # :nodoc:
582
+ options = args.pop
583
+ options.is_a?(Hash) ? _current_page?(*args, **options) : _current_page?(*args, options)
584
+ end
585
+ end
586
+
574
587
  # Creates an SMS anchor link tag to the specified +phone_number+, which is
575
588
  # also used as the name of the link unless +name+ is specified. Additional
576
589
  # HTML attributes for the link can be passed in +html_options+.
@@ -16,8 +16,8 @@ Released under the MIT license
16
16
  exclude: 'form button'
17
17
  },
18
18
  inputChangeSelector: 'select[data-remote], input[data-remote], textarea[data-remote]',
19
- formSubmitSelector: 'form',
20
- formInputClickSelector: 'form input[type=submit], form input[type=image], form button[type=submit], form button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',
19
+ formSubmitSelector: 'form:not([data-turbo=true])',
20
+ formInputClickSelector: 'form:not([data-turbo=true]) input[type=submit], form:not([data-turbo=true]) input[type=image], form:not([data-turbo=true]) button[type=submit], form:not([data-turbo=true]) button:not([type]), input[type=submit][form], input[type=image][form], button[type=submit][form], button[form]:not([type])',
21
21
  formDisableSelector: 'input[data-disable-with]:enabled, button[data-disable-with]:enabled, textarea[data-disable-with]:enabled, input[data-disable]:enabled, button[data-disable]:enabled, textarea[data-disable]:enabled',
22
22
  formEnableSelector: 'input[data-disable-with]:disabled, button[data-disable-with]:disabled, textarea[data-disable-with]:disabled, input[data-disable]:disabled, button[data-disable]:disabled, textarea[data-disable]:disabled',
23
23
  fileInputSelector: 'input[name][type=file]:not([disabled])',
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.1.3.2
4
+ version: 6.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-05 00:00:00.000000000 Z
11
+ date: 2021-06-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: 6.1.3.2
19
+ version: 6.1.4
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.1.3.2
26
+ version: 6.1.4
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.1.3.2
95
+ version: 6.1.4
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.1.3.2
102
+ version: 6.1.4
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.1.3.2
109
+ version: 6.1.4
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.1.3.2
116
+ version: 6.1.4
117
117
  description: Simple, battle-tested conventions and helpers for building web pages.
118
118
  email: david@loudthinking.com
119
119
  executables: []
@@ -239,11 +239,11 @@ licenses:
239
239
  - MIT
240
240
  metadata:
241
241
  bug_tracker_uri: https://github.com/rails/rails/issues
242
- changelog_uri: https://github.com/rails/rails/blob/v6.1.3.2/actionview/CHANGELOG.md
243
- documentation_uri: https://api.rubyonrails.org/v6.1.3.2/
242
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.4/actionview/CHANGELOG.md
243
+ documentation_uri: https://api.rubyonrails.org/v6.1.4/
244
244
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
245
- source_code_uri: https://github.com/rails/rails/tree/v6.1.3.2/actionview
246
- post_install_message:
245
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.4/actionview
246
+ post_install_message:
247
247
  rdoc_options: []
248
248
  require_paths:
249
249
  - lib
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
260
260
  requirements:
261
261
  - none
262
262
  rubygems_version: 3.1.2
263
- signing_key:
263
+ signing_key:
264
264
  specification_version: 4
265
265
  summary: Rendering framework putting the V in MVC (part of Rails).
266
266
  test_files: []