unpoly-rails 3.6.1 → 3.6.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c8c2c02b348c0256c77c48d3d590a46fa3ae51221271377fc1638ddb544cb8b
4
- data.tar.gz: 610b68d2d8826dc24d966b361de922d0adda7679e84464d4752a70adffe35cf5
3
+ metadata.gz: 305be7f4a49208ba4af3e8b4d1f9b7a2695311c62b0a95ce03d6ac458673e8b9
4
+ data.tar.gz: f876d195d0d14b4cfb8024272cbe05b2ad8366676e76dfce79eaf154c7512406
5
5
  SHA512:
6
- metadata.gz: 5213014b96a1027a6c580cbbe9921ac7a1bf5206289c6d0ea57406d974d693f970757b3b61cb0f5e74663186ff24a0fd68d9bb4d30138ba4c6d5db49efe7e345
7
- data.tar.gz: 680456e68afb8bfad1419410943725d8f482eae74dc40f3cad6646d888a558f647d6a484af8d4c7c430604d47214b38603f0b4a546abfd165b49dfff75da76f3
6
+ metadata.gz: 79686bcaf90b78f5765e1395f83d77c33b12740dee97d4ce90541c0e8bacfc3e9e523beceee69307c33ffb5f729b50cb23e3de3d94acbf40fe26a0d115397670
7
+ data.tar.gz: d4af3079cf4b432686184797e3ce63891f02929d344e8927aed19d8edf83586de76f35ac22abf155f0c9c2965944be45792dbf7c847c99b805a67fa1ac42c94e
@@ -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(/\s*,\s*/) || []
55
+ earlier_varies = response.headers['Vary']&.split(',')&.map(&:strip) || []
56
56
  response.headers['Vary'] = (earlier_varies | [header_name]).join(', ')
57
57
  end
58
58
 
@@ -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(/\s*,\s*/)
387
+ parts = frontend_target.split(',')&.map(&:strip)
388
+
388
389
  parts.any? do |part|
389
390
  if part == tested_target
390
391
  true
@@ -3,6 +3,6 @@ module Unpoly
3
3
  ##
4
4
  # The current version of the unpoly-rails gem.
5
5
  # The first 3 digits should match the version of the Unpoly frontend code.
6
- VERSION = '3.6.1'
6
+ VERSION = '3.6.1.1'
7
7
  end
8
8
  end
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.1
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-12-08 00:00:00.000000000 Z
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.16
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