actionview 6.1.3 → 6.1.4.1

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: 0e360541fbfb56762e0dac78816c97dce20ba6d432b5b6375610469b24cc8862
4
- data.tar.gz: 39bf5abef640b296fff2768d6ecc2042b9b267cc1532de093eeebde49eef5251
3
+ metadata.gz: 894aaa0cbf6f8c46008277d014b0dc8e7c3d09f0d0c18eab8f5970c8e4ac7fd1
4
+ data.tar.gz: 05e5e397b700d11febaa3b82c363741c41c3515dd1cb7eee2a4a615aa10715cc
5
5
  SHA512:
6
- metadata.gz: 4b26681dfbda3d9f9f2641ee5ba5d7c5bef8f7036fd2d22aa5b1900f4ce1a6217db7b304fa200b6380b9a3ebc3b99cff8e7645d9f60ecd14d081485d90fda79d
7
- data.tar.gz: afb4e325e40416b669cd98ec1f8db60dddec57f14a0c029730191fcac755e38775bc309e68df047baea51796ea0675aa36c47df1c8c1362fc1a169d18254e55f
6
+ metadata.gz: ca14e48e467e533e155c7ae56780acc3105501a23b8973dda966ab39afc5daf57de798d032035a7236054bbacd86cb8015ceba0445c38b12600f9ee37c8978d5
7
+ data.tar.gz: 98cb1ad17f2ce2abe59b405f933d12b4262c0a91cb4301cc9d776549d607ee1390d39890560c5edb83b56c83a5f85850c6af0a7c337c96b67acfc9d0d50bfb40
data/CHANGELOG.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## Rails 6.1.4.1 (August 19, 2021) ##
2
+
3
+ * No changes.
4
+
5
+
6
+ ## Rails 6.1.4 (June 24, 2021) ##
7
+
8
+ * The `translate` helper now passes `default` values that aren't
9
+ translation keys through `I18n.translate` for interpolation.
10
+
11
+ *Jonathan Hefner*
12
+
13
+ * Don't attach UJS form submission handlers to Turbo forms.
14
+
15
+ *David Heinemeier Hansson*
16
+
17
+ * Allow both `current_page?(url_hash)` and `current_page?(**url_hash)` on Ruby 2.7.
18
+
19
+ *Ryuta Kamizono*
20
+
21
+
22
+ ## Rails 6.1.3.2 (May 05, 2021) ##
23
+
24
+ * No changes.
25
+
26
+
27
+ ## Rails 6.1.3.1 (March 26, 2021) ##
28
+
29
+ * No changes.
30
+
31
+
1
32
  ## Rails 6.1.3 (February 17, 2021) ##
2
33
 
3
34
  * 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 = nil
12
+ TINY = 4
13
+ PRE = "1"
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
4
+ version: 6.1.4.1
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: 2021-02-17 00:00:00.000000000 Z
11
+ date: 2021-08-19 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
19
+ version: 6.1.4.1
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
26
+ version: 6.1.4.1
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
95
+ version: 6.1.4.1
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
102
+ version: 6.1.4.1
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
109
+ version: 6.1.4.1
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
116
+ version: 6.1.4.1
117
117
  description: Simple, battle-tested conventions and helpers for building web pages.
118
118
  email: david@loudthinking.com
119
119
  executables: []
@@ -239,10 +239,10 @@ 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/actionview/CHANGELOG.md
243
- documentation_uri: https://api.rubyonrails.org/v6.1.3/
242
+ changelog_uri: https://github.com/rails/rails/blob/v6.1.4.1/actionview/CHANGELOG.md
243
+ documentation_uri: https://api.rubyonrails.org/v6.1.4.1/
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/actionview
245
+ source_code_uri: https://github.com/rails/rails/tree/v6.1.4.1/actionview
246
246
  post_install_message:
247
247
  rdoc_options: []
248
248
  require_paths:
@@ -259,7 +259,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
259
259
  version: '0'
260
260
  requirements:
261
261
  - none
262
- rubygems_version: 3.2.3
262
+ rubygems_version: 3.2.15
263
263
  signing_key:
264
264
  specification_version: 4
265
265
  summary: Rendering framework putting the V in MVC (part of Rails).