isomorfeus-react 16.10.14 → 16.10.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d117c74e849bc16c8e1bd1d1fec0984cbd11b997da4cde97ce47b5fbe68a49b1
4
- data.tar.gz: 9bfd39d25d93d9549e6fec23a5f8026ff95891b39fd5939cf32100201d089582
3
+ metadata.gz: 246346816d7c2bd7af2b1a025d3e0b581ded85d64c7b44fbbad31c5a4dd9d5f4
4
+ data.tar.gz: 71bc160d0799b15ea1377635d92283d6cc6bc034b45f33b7274c399675b02152
5
5
  SHA512:
6
- metadata.gz: 1aa9a952a7fccc0a35b4a82c1f7edc0359419a6257a2ccf6c6846690b421d925274b9eeca3d2871755eaf2245949b70772350a7c811b2618ec0c562eae59d995
7
- data.tar.gz: b78c932a297a7c6768ed63d9664ab8ea224b35111eb24f552df49e6d2fc573f58a2779e2019cfa3d32c903e37b66b7f73787ae88a474186e8c77a2216deb64e6
6
+ metadata.gz: 81f3116555fd58d4fa50103f22ad3f9a5b4ac64ec6958faaac706eae277c7a9705c6862a3ffec4bcd27eee01c69b96647a09a60fee5f4f3471ad50014ac104b5
7
+ data.tar.gz: 12e33c38717b7eb016daf715de88cff90d0c883e3776b1d04320e0dee8e5e4655eac74a72fd46fde29c1a4bc6f978ee1ae75a677066b020f735dfef93772e67b
@@ -124,7 +124,10 @@ else
124
124
 
125
125
  Isomorfeus.env = ENV['RACK_ENV']
126
126
 
127
- require 'net/http' if Isomorfeus.development?
127
+ if Isomorfeus.development?
128
+ require 'net/http'
129
+ Isomorfeus.ssr_hot_asset_url = 'http://localhost:3036/assets/'
130
+ end
128
131
 
129
132
  Isomorfeus.server_side_rendering = true
130
133
 
@@ -93,6 +93,7 @@ module Isomorfeus
93
93
  else
94
94
  class << self
95
95
  attr_accessor :server_side_rendering
96
+ attr_accessor :ssr_hot_asset_url
96
97
  attr_reader :env
97
98
 
98
99
  def configuration(&block)
@@ -15,7 +15,7 @@ module Isomorfeus
15
15
  runtime = Isomorfeus.ssr_contexts[thread_id_asset].instance_variable_get(:@runtime)
16
16
  runtime.vm.delete_context(uuid)
17
17
  end
18
- asset_path = "#{OpalWebpackLoader.client_asset_path}#{asset}"
18
+ asset_path = "#{Isomorfeus.ssr_hot_asset_url}#{asset}"
19
19
  begin
20
20
  asset = Net::HTTP.get(URI(asset_path))
21
21
  Isomorfeus.ssr_contexts[thread_id_asset] = ExecJS.permissive_compile(asset)
data/lib/react/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module React
2
- VERSION = '16.10.14'
2
+ VERSION = '16.10.16'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: isomorfeus-react
3
3
  version: !ruby/object:Gem::Version
4
- version: 16.10.14
4
+ version: 16.10.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Biedermann
@@ -100,14 +100,14 @@ dependencies:
100
100
  requirements:
101
101
  - - "~>"
102
102
  - !ruby/object:Gem::Version
103
- version: 0.2.10
103
+ version: 0.2.11
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: 0.2.10
110
+ version: 0.2.11
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: isomorfeus-puppetmaster
113
113
  requirement: !ruby/object:Gem::Requirement
@@ -241,7 +241,16 @@ homepage: http://isomorfeus.com
241
241
  licenses:
242
242
  - MIT
243
243
  metadata: {}
244
- post_install_message:
244
+ post_install_message: |2+
245
+
246
+ isomorfeus-react 16.10.15:
247
+ Breaking changes:
248
+ Server Side Rendering is on by default in the development environment.
249
+ Server Side Rendering in development will use the new
250
+ Isomorfeus.ssr_hot_asset_url
251
+ option to get its assets. See:
252
+ https://github.com/isomorfeus/isomorfeus-react/blob/master/ruby/docs/server_side_rendering.md
253
+
245
254
  rdoc_options: []
246
255
  require_paths:
247
256
  - lib