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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c2ff4aed0cbabd00ba3616fe4857319ebfa86aede64ff5e1786638397cdf81ba
4
- data.tar.gz: bad9114b6759486b91aff61f4812382cbf198a3c1725bee8716be9febc8bd971
3
+ metadata.gz: '048437a9e278e3db1bf0834bf6be5ae9b9a16d2b41ed2ec9767d4e54a9917134'
4
+ data.tar.gz: e21785304792a55d5546e82f221a421ddaf3236e7288f3574f8da47462cc4938
5
5
  SHA512:
6
- metadata.gz: 8568933258991662f2bc7b65d5e62ebb6e86070d97fe9d9967829332ef3de1c1952d705f0d762fcd6ff1c9ac442c5743b8d874ba4da744cad6e49f8c633c6205
7
- data.tar.gz: ae9ae754502c4f991d79b48fe608968a724872c3d6536ec52c600719d235e900b66c50b0a806bde888b71c0f405f1d9b80cb0a98b212171796999439ab344372
6
+ metadata.gz: d2c909a78ff860ed149414d8b6c7acdf3d63d2d5ab482b139d1325ab461a18bf4305b58ff7cb2c6f0008db546c971d90925d5bced751cc760eff9be14329844c
7
+ data.tar.gz: 489eea729b4dc9b5fcc2658d8a5786c9d4b7d5c4330449dc59e79d5e4a78a2fbe3007bb75776d962caf482b9083e24bf1094c849d30f8da5fe70c4f0577fd0b5
@@ -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? && ENV['SK_SIMULATE_PRODUCTION'] != '1' &&
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SewingKit
3
- VERSION = "0.31.1"
3
+ VERSION = "0.31.2"
4
4
  end
@@ -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.1
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-26 00:00:00.000000000 Z
11
+ date: 2019-04-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties