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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 79df4e26acc8f810e8a721f77915f4a4d4ccd303b99fa7f0707664ce7fee54d3
4
- data.tar.gz: 3864feba212ae32c9e22935e43ecf3f48a3d7565f25dca7a9c08993e9e01d295
3
+ metadata.gz: 0d59555e0d10e13afa570059f124babb2390a3f72b4680a28e0a9b2d7a33eee7
4
+ data.tar.gz: 7312b49e3b665dc05c67c4ddcac0c4a37a7e977c4b00d1ab4b592860d7ba8398
5
5
  SHA512:
6
- metadata.gz: e47642a175372f74193cac2016edb7198069d18ad2f81714892507b114966627a75765f53af510a16d81ba7ef16b9bd1973a6471b10591688b84682ea89629f0
7
- data.tar.gz: 7c772564b14727ccd3e92cdcaaf6e35f54e1f28061d7d0e1918bf4c2ea5d05fe976356882e92d19409e6c1d2296b6304a3b6941b2180701b3bc39c65a63b4c0a
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
- host = "#{Quilt.configuration.react_server_protocol}://#{Quilt.configuration.react_server_host}"
9
- reverse_proxy(host)
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module Quilt
3
- VERSION = "1.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
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.0.0
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-08 00:00:00.000000000 Z
11
+ date: 2019-08-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties