quilt_rails 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quilt_rails/react_renderable.rb +16 -2
- data/lib/quilt_rails/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: 0d59555e0d10e13afa570059f124babb2390a3f72b4680a28e0a9b2d7a33eee7
|
4
|
+
data.tar.gz: 7312b49e3b665dc05c67c4ddcac0c4a37a7e977c4b00d1ab4b592860d7ba8398
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d078988e9a4c121a1d27b5c992f3b316925fd76fb907e6db87aab6b656d44eaeea289ebcaeabe0ac0ba09a46b30640fbf0e781f7803d22794839c6a90ddbc29c
|
7
|
+
data.tar.gz: 86eb0acf06b9327992c3b5f6c1470e3096d6079cc8c70b8a78f54910842f851a1a7cafbd0aaebfa891ee9c716cdab916e85c3b6fbe6caadd3c409c1f1b7f9c33
|
@@ -5,8 +5,22 @@ module Quilt
|
|
5
5
|
include ReverseProxy::Controller
|
6
6
|
|
7
7
|
def render_react
|
8
|
-
|
9
|
-
|
8
|
+
url = "#{Quilt.configuration.react_server_protocol}://#{Quilt.configuration.react_server_host}"
|
9
|
+
ReactRenderable.log("[ReactRenderable] proxying to React server at #{url}")
|
10
|
+
|
11
|
+
reverse_proxy(url) do |callbacks|
|
12
|
+
callbacks.on_response do |status_code, _response|
|
13
|
+
ReactRenderable.log("[ReactRenderable] #{url} returned #{status_code}")
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.log(string)
|
19
|
+
if Rails.logger.nil?
|
20
|
+
puts string
|
21
|
+
else
|
22
|
+
Rails.logger.info(string)
|
23
|
+
end
|
10
24
|
end
|
11
25
|
end
|
12
26
|
end
|
data/lib/quilt_rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quilt_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mathew Allen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-08-
|
11
|
+
date: 2019-08-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|