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 +4 -4
- data/Gemfile.lock +8 -8
- data/lib/stimulus_reflex/channel.rb +5 -4
- data/lib/stimulus_reflex/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 86ddf9025a14bc42c51266fc2cc1289d665865d26e45e7ec0f1bc89bf696903c
|
4
|
+
data.tar.gz: fe61f48bb99d49c9a52fee9e138e9949c34aa5e023265a14a1393952b907ffdb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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.
|
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" =>
|
82
|
+
"ORIGINAL_FULLPATH" => path,
|
82
83
|
Rack::SCRIPT_NAME => "",
|
83
|
-
Rack::PATH_INFO =>
|
84
|
-
Rack::REQUEST_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,
|
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|
|
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.
|
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:
|
11
|
+
date: 2020-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rack
|