react_on_rails 9.0.0.beta.3 → 9.0.0.beta.4
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 +4 -4
- data/CHANGELOG.md +1 -1
- data/lib/react_on_rails/utils.rb +4 -8
- data/lib/react_on_rails/version.rb +1 -1
- data/package.json +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 783b0a6e55e370ed403cba0091110be07bfc770b
|
|
4
|
+
data.tar.gz: 10adb0285d267ce610bcadbe8827491cd2ee3230
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 63f130934835e2dfdb665286cdd03e36f9df926344124e270b223d1992665102ef5d8c7b85d3aecc870db27a9eeb29294d6c06bf8f566171e399e64bef4d61a0
|
|
7
|
+
data.tar.gz: 31af3fc1036ab04fc840cbdff6742b91ab470d12cd6e9afadb1126f656392e27f6cd175db49a30b2ec585ecba3bc181285f4454e6faad3d26a032f016996c8e5
|
data/CHANGELOG.md
CHANGED
|
@@ -687,7 +687,7 @@ Best done with Object destructing:
|
|
|
687
687
|
|
|
688
688
|
[Unreleased]: https://github.com/shakacode/react_on_rails/compare/rails-webpacker...9.0.0-beta.3
|
|
689
689
|
[9.0.0]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.3...master
|
|
690
|
-
[9.0.0-beta.3]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.
|
|
690
|
+
[9.0.0-beta.3]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.3...9.0.0-beta.2
|
|
691
691
|
[9.0.0-beta.2]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.2...9.0.0-beta.1
|
|
692
692
|
[9.0.0-beta.1]: https://github.com/shakacode/react_on_rails/compare/9.0.0-beta.1...master
|
|
693
693
|
[8.0.6]: https://github.com/shakacode/react_on_rails/compare/8.0.5...8.0.6
|
data/lib/react_on_rails/utils.rb
CHANGED
|
@@ -69,17 +69,13 @@ exitstatus: #{status.exitstatus}#{stdout_msg}#{stderr_msg}
|
|
|
69
69
|
bundle_js_file_path(ReactOnRails.configuration.server_bundle_js_file)
|
|
70
70
|
end
|
|
71
71
|
|
|
72
|
-
# TODO: conturbo Write Test for this, with BOTH webpacker installed and not, and
|
|
73
|
-
# with case for webpacker, but server file is not in the file
|
|
74
72
|
def self.bundle_js_file_path(bundle_name)
|
|
75
|
-
# For testing outside of Rails app
|
|
76
|
-
|
|
77
73
|
if using_webpacker?
|
|
78
74
|
# Note, server bundle should not be in the manifest
|
|
79
|
-
# If using webpacker gem
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
75
|
+
# If using webpacker gem per https://github.com/rails/webpacker/issues/571
|
|
76
|
+
hashed_name = Webpacker::Manifest.lookup(bundle_name, throw_if_missing: false)
|
|
77
|
+
hashed_name = bundle_name if hashed_name.blank?
|
|
78
|
+
Rails.root.join(File.join(Webpacker::Configuration.output_path, hashed_name))
|
|
83
79
|
# Else either the file is not in the manifest, so we'll default to the non-hashed name.
|
|
84
80
|
end
|
|
85
81
|
|
data/package.json
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: react_on_rails
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 9.0.0.beta.
|
|
4
|
+
version: 9.0.0.beta.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Justin Gordon
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-08-
|
|
11
|
+
date: 2017-08-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rainbow
|