lookbook 0.3.2 → 0.3.3

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: 7079abdbe93ab54ba45d95752d1506c90d7aa0734afff9fc4bd947984d2dede9
4
- data.tar.gz: ff9f78726cb4b6686ced040eca344e8585ea8ec16931d670591692400e7307ff
3
+ metadata.gz: e32460fbf9f0b09167b13eb27bacbb418f3a86425758caad4bdae58b738b06ff
4
+ data.tar.gz: c92f69fc1098a2798f5a35f150ea5024ab89aade365b54106e8f4861600bcc8e
5
5
  SHA512:
6
- metadata.gz: edcf8e461252b4d18101019c6636bb4a2b298691abac0d8154a4eb30a66a8cb836c3b60b9e63533c66753fc336005ef78e9e8cabac11330c3db0447ec22a9475
7
- data.tar.gz: fd329c551311cf634c92544226fb5c5fe6104146945e1498cae010a18694fba46b01ce0fc3d86ae1a4b9ff51cb9a10030f4223e0fff601d7b081dc687f3b62d5
6
+ metadata.gz: b4b163234a695bdb337c4341db7203a457761a51e0dd4c9c9683f8e4035d0997658fccca15d35bc779d8cd9a2418556a9784e3d3fd64f776f20dbb22259c0c95
7
+ data.tar.gz: dfebd15c82892d8f504d7f51f838f6f4318f04c178df3b2a97f961f30cb66b0c1718cd4e11f1af614f2af01216f14bb8f5468034737b2aff19d37f77c8690c35
@@ -10,7 +10,7 @@
10
10
 
11
11
  <% if config.auto_refresh %>
12
12
  <script>
13
- window.SOCKET_PATH = "/lookbook/cable";
13
+ window.SOCKET_PATH = "<%= Lookbook::Engine.websocket_mount_path %>";
14
14
  </script>
15
15
  <% end %>
16
16
  <script src="/lookbook-assets/app.js" defer></script>
@@ -93,6 +93,10 @@ module Lookbook
93
93
  end
94
94
  end
95
95
 
96
+ def websocket_mount_path
97
+ "#{Lookbook::Engine.routes.find_script_name({})}#{cable.mount_path}"
98
+ end
99
+
96
100
  def cable
97
101
  @cable ||= ActionCable::Server::Configuration.new
98
102
  end
@@ -1,3 +1,3 @@
1
1
  module Lookbook
2
- VERSION = "0.3.2"
2
+ VERSION = "0.3.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lookbook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mark Perkins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-05 00:00:00.000000000 Z
11
+ date: 2021-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails