stimulus_reflex 2.1.7 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of stimulus_reflex might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7358f3c72c8e21891a1b5ff2a61905225874f1a4fb9ab6a6ec2246a86694925d
4
- data.tar.gz: 002c186526500e8d7436cd55fdcdde2d4338d76ebb612963e2f0370b1ce7bf7a
3
+ metadata.gz: 86ddf9025a14bc42c51266fc2cc1289d665865d26e45e7ec0f1bc89bf696903c
4
+ data.tar.gz: fe61f48bb99d49c9a52fee9e138e9949c34aa5e023265a14a1393952b907ffdb
5
5
  SHA512:
6
- metadata.gz: 8cdd04587e3a3e9f38d1505efcf5fb3701469356eeb4c6873fc106a5aac035d4d6656c200fc3e8889d63dadbdc50dcf7515901392dd3eb31f50677c05792a328
7
- data.tar.gz: 88f4c15ab3ac1fb8f55ec590f088795ef9e89400d235ad939f92d09d9b8056cb0b1b55e7de254bc1273055214dc876dca67b81194dc506d202654140170608e2
6
+ metadata.gz: a6339847a1cfe6420f11a50cd9373960f3df09f5ee7c84602b0fca9c42656285323eb67f005772fe302318c6d154309f76eff2a79df652368df078ab10c103e9
7
+ data.tar.gz: 9f8ea3cfd82e00282d7f4f1342456535b3de73f3551c30a02ba4677c49ca9a9d01a9ded11464e7f4ca2fc51582064488fbf868a177121a38ef8933a8d53a9e4c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- stimulus_reflex (2.1.7)
4
+ stimulus_reflex (2.1.8)
5
5
  cable_ready (>= 4.0)
6
6
  nokogiri
7
7
  rack
@@ -67,15 +67,15 @@ GEM
67
67
  zeitwerk (~> 2.2)
68
68
  ast (2.4.0)
69
69
  builder (3.2.4)
70
- cable_ready (4.0.8)
70
+ cable_ready (4.0.9)
71
71
  rails (>= 5.2)
72
72
  coderay (1.1.2)
73
73
  concurrent-ruby (1.1.5)
74
- crass (1.0.5)
74
+ crass (1.0.6)
75
75
  erubi (1.9.0)
76
76
  globalid (0.4.2)
77
77
  activesupport (>= 4.2.0)
78
- i18n (1.7.0)
78
+ i18n (1.8.2)
79
79
  concurrent-ruby (~> 1.0)
80
80
  jaro_winkler (1.5.4)
81
81
  loofah (2.4.0)
@@ -89,19 +89,19 @@ GEM
89
89
  mimemagic (0.3.3)
90
90
  mini_mime (1.0.2)
91
91
  mini_portile2 (2.4.0)
92
- minitest (5.13.0)
92
+ minitest (5.14.0)
93
93
  nio4r (2.5.2)
94
94
  nokogiri (1.10.7)
95
95
  mini_portile2 (~> 2.4.0)
96
96
  parallel (1.19.1)
97
- parser (2.7.0.0)
97
+ parser (2.7.0.2)
98
98
  ast (~> 2.4.0)
99
99
  pry (0.12.2)
100
100
  coderay (~> 1.1.0)
101
101
  method_source (~> 0.9.0)
102
102
  pry-nav (0.3.0)
103
103
  pry (>= 0.9.10, < 0.13.0)
104
- rack (2.0.8)
104
+ rack (2.1.1)
105
105
  rack-test (1.1.0)
106
106
  rack (>= 1.0, < 3)
107
107
  rails (6.0.2.1)
@@ -158,7 +158,7 @@ GEM
158
158
  thread_safe (0.3.6)
159
159
  tzinfo (1.2.6)
160
160
  thread_safe (~> 0.1)
161
- unicode-display_width (1.6.0)
161
+ unicode-display_width (1.6.1)
162
162
  websocket-driver (0.7.1)
163
163
  websocket-extensions (>= 0.1.0)
164
164
  websocket-extensions (0.1.4)
@@ -71,6 +71,7 @@ class StimulusReflex::Channel < ActionCable::Channel::Base
71
71
 
72
72
  def render_page(url, reflex)
73
73
  uri = URI.parse(url)
74
+ path = ActionDispatch::Journey::Router::Utils.normalize_path(uri.path)
74
75
  query_hash = Rack::Utils.parse_nested_query(uri.query)
75
76
  request = ActionDispatch::Request.new(
76
77
  connection.env.merge(
@@ -78,15 +79,15 @@ class StimulusReflex::Channel < ActionCable::Channel::Base
78
79
  "rack.request.query_hash" => query_hash,
79
80
  "rack.request.query_string" => uri.query,
80
81
  "ORIGINAL_SCRIPT_NAME" => "",
81
- "ORIGINAL_FULLPATH" => uri.path,
82
+ "ORIGINAL_FULLPATH" => path,
82
83
  Rack::SCRIPT_NAME => "",
83
- Rack::PATH_INFO => uri.path,
84
- Rack::REQUEST_PATH => uri.path,
84
+ Rack::PATH_INFO => path,
85
+ Rack::REQUEST_PATH => path,
85
86
  Rack::QUERY_STRING => uri.query,
86
87
  )
87
88
  )
88
89
  )
89
- url_params = Rails.application.routes.recognize_path_with_request(request, url, request.env[:extras] || {})
90
+ url_params = Rails.application.routes.recognize_path_with_request(request, request.path, request.env[:extras] || {})
90
91
  controller = request.controller_class.new
91
92
  controller.instance_variable_set :"@stimulus_reflex", true
92
93
  reflex.instance_variables.each do |name|
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module StimulusReflex
4
- VERSION = "2.1.7"
4
+ VERSION = "2.1.8"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stimulus_reflex
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.7
4
+ version: 2.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Hopkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-12-28 00:00:00.000000000 Z
11
+ date: 2020-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack