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 +4 -4
- data/lib/sewing_kit/version.rb +1 -1
- data/lib/sewing_kit/webpack/compiler.rb +13 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0778d0ee3eaa2082c1ad45bcefff6d5c191ea1a7ad9dd95a9233c5177b9c4daa'
|
4
|
+
data.tar.gz: e7d9b608485012182415b4e2bc29d0dae04f1281371850f6bdc5abbcc9b96fb2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 39283755c76354f85a66104c0c7c5fb6567e9461216da2ea451bf25e819455dc44a4b933c0be8b2360e9ff7478900817219b1def0468a3ac8a5ec712a8d60a3a
|
7
|
+
data.tar.gz: ade3c1defca6196685eaa828db9a1809ab5100444a0688fd58bb2e447cc91da2b6e2a4f53f43b34802d7ac788ce08c2d3ea0105926af24e31d096b3e1d704459
|
data/lib/sewing_kit/version.rb
CHANGED
@@ -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
|
-
|
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.
|
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-
|
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:
|