actionview 8.1.2.1 → 8.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a1521bfb9856b6242ae47c76c2840487ba568ba60f317c49bbe27f8e7177425c
4
- data.tar.gz: 25e34f4fd9a84725ccbc9b47556321e680a8de1f32ed19653d37545da687b631
3
+ metadata.gz: 96267f5fb9e3f51b3f9532cf10d78e0454480729b75a758b6df1bf6bb903384f
4
+ data.tar.gz: f7befef7e6c94a2dda6868cd265cbb4009576883d881a9f28195d68649b9511c
5
5
  SHA512:
6
- metadata.gz: 3f0c3405cf8676fcd7d1f37faf05a5376ecb0b73581f728143a57072e202eab34b5157d719affb4bff42beabd461512a010028b5f1edae096111b9fd1e3648b5
7
- data.tar.gz: 18b2e2270c57343cce22f1e69978e7739d328a657b49313643bc43bc9ee667ec90ae807ad1be87b973e5ff80ff4a1ca5273c259105c879555d5fed1ebd6f215e
6
+ metadata.gz: bd4eb208e63b468bd0b97bda5b8202a7954e6545e05b6a600fcd0a1d703303e99ff2ffbd929ec63142e118267a61cc1cd7f62f5deed6b47ed05e1e6bed50291b
7
+ data.tar.gz: 98fcb31d4441433ac6bd216aec193446d4e06c6116e038bf8d6c5166275937b8301879c3b2d454a1cf86fe9ed6a373898d7f808b35ef4881885231762dcba5b4
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ ## Rails 8.1.3 (March 24, 2026) ##
2
+
3
+ * Fix encoding errors for string locals containing non-ASCII characters.
4
+
5
+ *Kataoka Katsuki*
6
+
7
+ * Fix collection caching to only forward `expires_in` argument if explicitly set.
8
+
9
+ *Pieter Visser*
10
+
1
11
  ## Rails 8.1.2.1 (March 23, 2026) ##
2
12
 
3
13
  * Fix possible XSS in DebugExceptions middleware
@@ -9,8 +9,8 @@ module ActionView
9
9
  module VERSION
10
10
  MAJOR = 8
11
11
  MINOR = 1
12
- TINY = 2
13
- PRE = "1"
12
+ TINY = 3
13
+ PRE = nil
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
16
16
  end
@@ -111,7 +111,11 @@ module ActionView
111
111
  end
112
112
 
113
113
  unless entries_to_write.empty?
114
- collection_cache.write_multi(entries_to_write)
114
+ if @options[:cached].is_a?(Hash) && @options[:cached].key?(:expires_in)
115
+ collection_cache.write_multi(entries_to_write, expires_in: @options[:cached][:expires_in])
116
+ else
117
+ collection_cache.write_multi(entries_to_write)
118
+ end
115
119
  end
116
120
 
117
121
  keyed_partials
@@ -370,6 +370,12 @@ module ActionView
370
370
 
371
371
  return if @strict_locals.nil? # Magic comment not found
372
372
 
373
+ # Tag with the assumed encoding before encode! runs, same as
374
+ # encode! does for the source itself (see above).
375
+ if @strict_locals.encoding == Encoding::BINARY
376
+ @strict_locals.force_encoding(Encoding.default_external)
377
+ end
378
+
373
379
  @strict_locals = "**nil" if @strict_locals.blank?
374
380
  end
375
381
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: actionview
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.1.2.1
4
+ version: 8.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
@@ -15,14 +15,14 @@ dependencies:
15
15
  requirements:
16
16
  - - '='
17
17
  - !ruby/object:Gem::Version
18
- version: 8.1.2.1
18
+ version: 8.1.3
19
19
  type: :runtime
20
20
  prerelease: false
21
21
  version_requirements: !ruby/object:Gem::Requirement
22
22
  requirements:
23
23
  - - '='
24
24
  - !ruby/object:Gem::Version
25
- version: 8.1.2.1
25
+ version: 8.1.3
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: builder
28
28
  requirement: !ruby/object:Gem::Requirement
@@ -85,28 +85,28 @@ dependencies:
85
85
  requirements:
86
86
  - - '='
87
87
  - !ruby/object:Gem::Version
88
- version: 8.1.2.1
88
+ version: 8.1.3
89
89
  type: :development
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - '='
94
94
  - !ruby/object:Gem::Version
95
- version: 8.1.2.1
95
+ version: 8.1.3
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: activemodel
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - '='
101
101
  - !ruby/object:Gem::Version
102
- version: 8.1.2.1
102
+ version: 8.1.3
103
103
  type: :development
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - '='
108
108
  - !ruby/object:Gem::Version
109
- version: 8.1.2.1
109
+ version: 8.1.3
110
110
  description: Simple, battle-tested conventions and helpers for building web pages.
111
111
  email: david@loudthinking.com
112
112
  executables: []
@@ -247,10 +247,10 @@ licenses:
247
247
  - MIT
248
248
  metadata:
249
249
  bug_tracker_uri: https://github.com/rails/rails/issues
250
- changelog_uri: https://github.com/rails/rails/blob/v8.1.2.1/actionview/CHANGELOG.md
251
- documentation_uri: https://api.rubyonrails.org/v8.1.2.1/
250
+ changelog_uri: https://github.com/rails/rails/blob/v8.1.3/actionview/CHANGELOG.md
251
+ documentation_uri: https://api.rubyonrails.org/v8.1.3/
252
252
  mailing_list_uri: https://discuss.rubyonrails.org/c/rubyonrails-talk
253
- source_code_uri: https://github.com/rails/rails/tree/v8.1.2.1/actionview
253
+ source_code_uri: https://github.com/rails/rails/tree/v8.1.3/actionview
254
254
  rubygems_mfa_required: 'true'
255
255
  rdoc_options: []
256
256
  require_paths: