sewing_kit 0.114.2 → 0.122.0

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: 0134a2424e936702521db2dcbc10e900862ca6720e459fffabf0309d4d4823c3
4
- data.tar.gz: b72bed1c690ada5e98756632634c0eb7988351c933ff9c5f26a33984f107c0d1
3
+ metadata.gz: '0778d0ee3eaa2082c1ad45bcefff6d5c191ea1a7ad9dd95a9233c5177b9c4daa'
4
+ data.tar.gz: e7d9b608485012182415b4e2bc29d0dae04f1281371850f6bdc5abbcc9b96fb2
5
5
  SHA512:
6
- metadata.gz: 1f68e6f089f390d7f615d5d11d4bfda4884430ce4f6d79510e083089cfd9e7e26c82bad02e35da42a68ebaabad41cd2ea2342ec432745368f772ca92bc6b2cb8
7
- data.tar.gz: 3bef3f7fa71412e2cda8768e0f1c65137798fe0c729c664ccc7f9343d053955b8625e4a6f4d3f562e0f2f3acf792cbba3774ca7233a3515df7a0c37f73188776
6
+ metadata.gz: 39283755c76354f85a66104c0c7c5fb6567e9461216da2ea451bf25e819455dc44a4b933c0be8b2360e9ff7478900817219b1def0468a3ac8a5ec712a8d60a3a
7
+ data.tar.gz: ade3c1defca6196685eaa828db9a1809ab5100444a0688fd58bb2e447cc91da2b6e2a4f53f43b34802d7ac788ce08c2d3ea0105926af24e31d096b3e1d704459
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module SewingKit
3
- VERSION = "0.114.2"
3
+ VERSION = "0.122.0"
4
4
  end
@@ -22,7 +22,7 @@ module SewingKit
22
22
  raise NodeSewingKitNotRunnable, node_env unless File.exist?('node_modules/.bin/sewing-kit')
23
23
 
24
24
  result = Kernel.system(
25
- { 'NODE_ENV' => node_env },
25
+ environment,
26
26
  *command,
27
27
  chdir: Rails.root.to_s,
28
28
  out: $stdout,
@@ -47,6 +47,18 @@ module SewingKit
47
47
  ].concat(options).reject(&:empty?)
48
48
  end
49
49
 
50
+ def environment
51
+ environment = {
52
+ 'NODE_ENV' => node_env,
53
+ }
54
+
55
+ if defined?(ShopifyCloud)
56
+ environment['SK_ASSET_DIR'] = ShopifyCloud::AssetUploader.asset_directory
57
+ end
58
+
59
+ environment
60
+ end
61
+
50
62
  def node_env
51
63
  ENV['NODE_ENV'] || Rails.env.to_s
52
64
  end
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.114.2
4
+ version: 0.122.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Sauve
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-28 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -123,6 +123,7 @@ licenses:
123
123
  - MIT
124
124
  metadata:
125
125
  changelog_uri: https://github.com/Shopify/sewing-kit/blob/master/gems/sewing_kit/CHANGELOG.md
126
+ allowed_push_host: https://rubygems.org
126
127
  post_install_message:
127
128
  rdoc_options: []
128
129
  require_paths: