react_on_rails 9.0.0.beta.3 → 9.0.0.beta.4

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
  SHA1:
3
- metadata.gz: 509ebfdde924aac348bd30a055d17bea050aef6d
4
- data.tar.gz: d1a9ca76764a3d59ca4a918a2e0b8c8ebdb259a4
3
+ metadata.gz: 783b0a6e55e370ed403cba0091110be07bfc770b
4
+ data.tar.gz: 10adb0285d267ce610bcadbe8827491cd2ee3230
5
5
  SHA512:
6
- metadata.gz: 5c7c554bb2891a1ce468bb8296722b797d62ab17646b79ae9522e313f63b70602bd5e0c5f2c0194d03ccb3cf063e8355b25904f8ccdf83490acf5f6c16e05b29
7
- data.tar.gz: 7970e69e95915f851ede92515fd63f2029876c6b73f32bfd62438b46258183a33eedcc10cb23952afb1edae3fccec6de1bd249740f973a174453b4e95b4374a9
6
+ metadata.gz: 63f130934835e2dfdb665286cdd03e36f9df926344124e270b223d1992665102ef5d8c7b85d3aecc870db27a9eeb29294d6c06bf8f566171e399e64bef4d61a0
7
+ data.tar.gz: 31af3fc1036ab04fc840cbdff6742b91ab470d12cd6e9afadb1126f656392e27f6cd175db49a30b2ec585ecba3bc181285f4454e6faad3d26a032f016996c8e5
@@ -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.2...9.0.0-beta.1
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
@@ -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
- # Per https://github.com/rails/webpacker/issues/571
81
- path = Webpacker::Manifest.lookup_path_no_throw(bundle_name)
82
- return path if path.present?
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ReactOnRails
4
- VERSION = "9.0.0.beta.3"
4
+ VERSION = "9.0.0.beta.4"
5
5
  end
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-on-rails",
3
- "version": "9.0.0-beta.3",
3
+ "version": "9.0.0-beta.4",
4
4
  "description": "react-on-rails JavaScript for react_on_rails Ruby gem",
5
5
  "main": "node_package/lib/ReactOnRails.js",
6
6
  "directories": {
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.3
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-03 00:00:00.000000000 Z
11
+ date: 2017-08-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow