unpoly-rails 3.6.0 → 3.6.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/assets/unpoly/unpoly.es6.js +11 -10
- data/assets/unpoly/unpoly.es6.min.js +1 -1
- data/assets/unpoly/unpoly.js +11 -10
- data/assets/unpoly/unpoly.min.js +1 -1
- data/lib/unpoly/rails/change/field_definition.rb +1 -1
- data/lib/unpoly/rails/change.rb +2 -1
- data/lib/unpoly/rails/version.rb +1 -1
- metadata +3 -3
@@ -52,7 +52,7 @@ module Unpoly
|
|
52
52
|
define_method "#{method}_request_header_accessed!" do
|
53
53
|
return unless vary?
|
54
54
|
header_name = send("#{method}_request_header_name")
|
55
|
-
earlier_varies = response.headers['Vary']&.split(
|
55
|
+
earlier_varies = response.headers['Vary']&.split(',')&.map(&:strip) || []
|
56
56
|
response.headers['Vary'] = (earlier_varies | [header_name]).join(', ')
|
57
57
|
end
|
58
58
|
|
data/lib/unpoly/rails/change.rb
CHANGED
@@ -384,7 +384,8 @@ module Unpoly
|
|
384
384
|
# The user may have chosen to not reveal their target for better
|
385
385
|
# cacheability (see up.network.config#requestMetaKeys).
|
386
386
|
if up? && frontend_target.present?
|
387
|
-
parts = frontend_target.split(
|
387
|
+
parts = frontend_target.split(',')&.map(&:strip)
|
388
|
+
|
388
389
|
parts.any? do |part|
|
389
390
|
if part == tested_target
|
390
391
|
true
|
data/lib/unpoly/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unpoly-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.6.
|
4
|
+
version: 3.6.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henning Koch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
157
157
|
- !ruby/object:Gem::Version
|
158
158
|
version: '0'
|
159
159
|
requirements: []
|
160
|
-
rubygems_version: 3.2.
|
160
|
+
rubygems_version: 3.2.5
|
161
161
|
signing_key:
|
162
162
|
specification_version: 4
|
163
163
|
summary: Rails bindings for Unpoly, the unobtrusive JavaScript framework
|