webpack_native 0.3.6 → 0.3.7

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: 424ff35c639d4bee63718a652cc6c469dcf41df2bf8be43c1ca2c8b4dd447ff4
4
- data.tar.gz: c8315b80b06f863d885c6456382925bf7e384b88d8720543ecf3d4d242bd6032
3
+ metadata.gz: 364ab7abe793fccf23fb730c0c16ab8d3a7a53082ad611efe8668ea37f79a4f6
4
+ data.tar.gz: 36b17b11cad6492ca2b4c58b0de76e941fada353460d832af1c2fd53663f4083
5
5
  SHA512:
6
- metadata.gz: 14d18d8d5ebca6d15050a5f195a9563dad64ae1b6a4d097bed29812f29aa6b740af16c27250fa04673e7e0d873441a004eadf9865374b5bbdcb92b288ce3ff71
7
- data.tar.gz: 85474365d6ffc853695abeff0690eeae4e80f7d9b0d1e79d9e2924aed2a47b013fe6961bd2ac332ebab4a8aad07be3e910773f6df5b711956eaa60a7f48db48b
6
+ metadata.gz: '008430165b30c2783511099bbbc208e708418836f32563e4f5104d565d059d80e573964c9912ed0f34742ece9bfe548527139cbc8970ecd79cdb347f05d906f2'
7
+ data.tar.gz: bacc4f6434cbd676016ca6f5a8a44772f8483e123e845073935f1e5347834c1f7d48eb0574ad167915dd40e373644d9d80d50f9e52a54a7bfffbc167cc4eb80c
@@ -9,6 +9,12 @@ class WebpackNative::Railtie < ::Rails::Railtie
9
9
 
10
10
  initializer "webpack_native_set_manifest" do
11
11
  if Rails.env.production?
12
+ manifest_path = "#{Rails.root}/public/webpack_native/manifest.json"
13
+ # create manifest.json file if it doesn't exist with an empty json {} to prevent raising error in WebpackNativeHelper.load_webpack_manifest if a restart of a service happen (i.e delayed_job restart) that causes rails to load
14
+ if !File.file?(manifest_path)
15
+ #FileUtils.touch
16
+ File.write manifest_path, "{}"
17
+ end
12
18
  require_relative 'webpack_native_helper'
13
19
  Rails.configuration.x.webpack_native.webpack_manifest_file = WebpackNative::WebpackNativeHelper.load_webpack_manifest
14
20
  end
@@ -1,3 +1,3 @@
1
1
  module WebpackNative
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpack_native
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - scratchoo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-07 00:00:00.000000000 Z
11
+ date: 2020-10-08 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Use vanilla webpack to manage your assets efficiently, no webpacker or
14
14
  asset pipeline anymore!