reactssr-rails 2.0.0 → 2.0.1

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
  SHA1:
3
- metadata.gz: e93f6c82f62a5c0a757c3beb5072a96ffa6523b8
4
- data.tar.gz: d8e84513f4ceff020915b18de88e9814571aa645
3
+ metadata.gz: ed5c089005710bcd6809ae66649dbac41a6c8b9e
4
+ data.tar.gz: a7d89f9918a2e7c598426f1325e8346e012b852a
5
5
  SHA512:
6
- metadata.gz: 63064cfd641cfca26faa3746693ce39c1b38fcf7747b51aa3191b07f76d045853a4deaa63607799cc57489b7639b6f9330b51e3e7ec0885248c05f54f5831666
7
- data.tar.gz: 2526c7ff49391813c491b7079b31127064061038faaa101f1e72ae776ce57a42006b85ffdeb2986d664fc214f539b061abce1c1c104d6f5b7d16cb8afdf1f008
6
+ metadata.gz: fb0a8b260a7a8164c5e81dce7fde2bbfcfce054788d9231826e14907be2d3790926bb0511be9bc584ede1e3c094af2b1246e807d01c707b3b1c59d7fe1775b14
7
+ data.tar.gz: 20364578e5b3d90b54b87d7d078c8052c911c4ae8ab2fb788a5aed7dbd145362e83c3ddbe7f010f19f3f511cb1a02277cd3f2a1057ec24a97911f7a874f50dc9
@@ -1,5 +1,5 @@
1
1
  module Reactssr
2
2
  module Rails
3
- VERSION = "2.0.0"
3
+ VERSION = "2.0.1"
4
4
  end
5
5
  end
@@ -1,6 +1,7 @@
1
1
 
2
2
  require 'multi_json'
3
3
  require 'react-rails'
4
+ require 'yaml'
4
5
 
5
6
  module Reactssr
6
7
  module ServerRendering
@@ -139,8 +140,15 @@ module Reactssr
139
140
  if paths.any?
140
141
  path = paths.first
141
142
  else
142
- # No precompile
143
- return {}
143
+ paths = File.join(@manifest_base, "manifest.yml")
144
+ if !File.exist?(paths)
145
+ # No precompile
146
+ return {}
147
+ end
148
+
149
+ data = ::YAML::load(File.read(paths))
150
+ @data = data.is_a?(Hash) ? data : {}
151
+ return @data
144
152
  end
145
153
 
146
154
  begin
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reactssr-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - towry