sewing_kit 0.31.1 → 0.31.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sewing_kit/railtie.rb +3 -2
- data/lib/sewing_kit/version.rb +1 -1
- data/lib/sewing_kit/webpack/manifest.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '048437a9e278e3db1bf0834bf6be5ae9b9a16d2b41ed2ec9767d4e54a9917134'
|
4
|
+
data.tar.gz: e21785304792a55d5546e82f221a421ddaf3236e7288f3574f8da47462cc4938
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2c909a78ff860ed149414d8b6c7acdf3d63d2d5ab482b139d1325ab461a18bf4305b58ff7cb2c6f0008db546c971d90925d5bced751cc760eff9be14329844c
|
7
|
+
data.tar.gz: 489eea729b4dc9b5fcc2658d8a5786c9d4b7d5c4330449dc59e79d5e4a78a2fbe3007bb75776d962caf482b9083e24bf1094c849d30f8da5fe70c4f0577fd0b5
|
data/lib/sewing_kit/railtie.rb
CHANGED
@@ -17,7 +17,7 @@ require 'sewing_kit/webpack/dev'
|
|
17
17
|
module SewingKit
|
18
18
|
class Railtie < ::Rails::Railtie
|
19
19
|
initializer "sewing_kit.cache_production_manifest" do
|
20
|
-
unless SewingKit::Railtie.development_server?
|
20
|
+
unless SewingKit::Railtie.development_server? || Rails.env.test?
|
21
21
|
SewingKit::CachedProductionManifest = SewingKit::Webpack::Manifest::Base.load_metadata_from_node
|
22
22
|
end
|
23
23
|
end
|
@@ -37,7 +37,8 @@ module SewingKit
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def self.development_server?
|
40
|
-
Rails.env.development? &&
|
40
|
+
Rails.env.development? &&
|
41
|
+
ENV['SK_SIMULATE_PRODUCTION'] != '1' &&
|
41
42
|
(Rails.const_defined?(:Server) || ENV['SK_FORCE_DEV_SERVER'])
|
42
43
|
end
|
43
44
|
end
|
data/lib/sewing_kit/version.rb
CHANGED
@@ -66,7 +66,7 @@ module SewingKit
|
|
66
66
|
def instance
|
67
67
|
mode = ENV['NODE_ENV'] || Rails.env.to_s
|
68
68
|
|
69
|
-
@instance ||= if mode == 'development' && ENV['SK_SIMULATE_PRODUCTION'] != '1'
|
69
|
+
@instance ||= if (mode == 'development' && ENV['SK_SIMULATE_PRODUCTION'] != '1') || Rails.env.test?
|
70
70
|
Development.new
|
71
71
|
else
|
72
72
|
Production.new
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sewing_kit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.31.
|
4
|
+
version: 0.31.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Sauve
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-04-
|
11
|
+
date: 2019-04-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|