shopify_theme 0.0.20 → 0.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/README.md +2 -1
- data/lib/shopify_theme/cli.rb +2 -2
- data/lib/shopify_theme/version.rb +1 -1
- data/spec/unit/cli_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3ed4b0f754941f383f99c95f3ef04449aa297370
|
|
4
|
+
data.tar.gz: 304f53db24c9a0a2baab92e8dd1fb1ca958d62ca
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d35046f7e638bfe5a848e981d196c2873a19c0154fdcc33caaf970de12c80c094a6fe7bcb9fce4b7dd4b0291a449cd22a140b6e3ef264407a76c9b6458815f90
|
|
7
|
+
data.tar.gz: 1e19818252b350a13051c6cb0bf6bd1358ed09b5677f0b861f04ee8166664bb8c86242b308f03f9c8665de577eaadbec58ddf8fae3a3f035a1cc0c8df02d6d74
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
|
@@ -43,7 +43,8 @@ theme configure api_key password store_url
|
|
|
43
43
|
|
|
44
44
|
Example of config.yml. Notice store has no http or https declaration. You can
|
|
45
45
|
use `:whitelist_files:` to specify files for upload. The `assets/`, `config/`,
|
|
46
|
-
`layout/`, `snippets/` and `
|
|
46
|
+
`layout/`, `snippets/`, `templates/` and `locales/`directories are included by
|
|
47
|
+
default.
|
|
47
48
|
|
|
48
49
|
You can also use `:ignore_files:` to exclude files from getting uploaded, for
|
|
49
50
|
example your `config/settings.html` or other configuration driven items
|
data/lib/shopify_theme/cli.rb
CHANGED
|
@@ -28,7 +28,7 @@ module ShopifyTheme
|
|
|
28
28
|
include Thor::Actions
|
|
29
29
|
|
|
30
30
|
IGNORE = %w(config.yml)
|
|
31
|
-
DEFAULT_WHITELIST = %w(layout/ assets/ config/ snippets/ templates/)
|
|
31
|
+
DEFAULT_WHITELIST = %w(layout/ assets/ config/ snippets/ templates/ locales/)
|
|
32
32
|
TIMEFORMAT = "%H:%M:%S"
|
|
33
33
|
|
|
34
34
|
tasks.keys.abbrev.each do |shortcut, command|
|
|
@@ -114,7 +114,7 @@ module ShopifyTheme
|
|
|
114
114
|
# files present on remote and present locally get overridden anyway
|
|
115
115
|
remote_assets = keys.empty? ? (ShopifyTheme.asset_list - local_assets_list) : keys
|
|
116
116
|
remote_assets.each do |asset|
|
|
117
|
-
delete_asset(asset, options['quiet'])
|
|
117
|
+
delete_asset(asset, options['quiet']) unless ShopifyTheme.ignore_files.any? { |regex| regex =~ asset }
|
|
118
118
|
end
|
|
119
119
|
local_assets = keys.empty? ? local_assets_list : keys
|
|
120
120
|
local_assets.each do |asset|
|
data/spec/unit/cli_spec.rb
CHANGED
|
@@ -35,9 +35,9 @@ module ShopifyTheme
|
|
|
35
35
|
end
|
|
36
36
|
|
|
37
37
|
it "should remove assets that are not a part of the white list" do
|
|
38
|
-
@cli.local_files = ['assets/image.png', 'config.yml', 'layout/theme.liquid']
|
|
38
|
+
@cli.local_files = ['assets/image.png', 'config.yml', 'layout/theme.liquid', 'locales/en.default.json']
|
|
39
39
|
local_assets_list = @cli.send(:local_assets_list)
|
|
40
|
-
assert_equal
|
|
40
|
+
assert_equal 3, local_assets_list.length
|
|
41
41
|
assert_equal false, local_assets_list.include?('config.yml')
|
|
42
42
|
end
|
|
43
43
|
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shopify_theme
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.21
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- John Duff
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-08-21 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: thor
|