shopify_theme 0.0.20 → 0.0.21

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
  SHA1:
3
- metadata.gz: 0abb771c83e424ef8b45f044e15d1a158aa36637
4
- data.tar.gz: 418b006ba4a64f64a7928ba8ef2b06e752284c3f
3
+ metadata.gz: 3ed4b0f754941f383f99c95f3ef04449aa297370
4
+ data.tar.gz: 304f53db24c9a0a2baab92e8dd1fb1ca958d62ca
5
5
  SHA512:
6
- metadata.gz: 03d44021f69846911011df9b30a78d78e75ad74af16db991b2086d647c4d8d02867fee7f087c47dda42870103cd377febc73fe7fc8a9e4ffd9f2ed7ee90f806c
7
- data.tar.gz: 3935759c7d23c873ae0ba30cdc5c56a6895c72a47817cf5161512f2640261ff9682823cf02b006640db51a47029beb07aeb04a1dbb83e81828d8c0404d4800dc
6
+ metadata.gz: d35046f7e638bfe5a848e981d196c2873a19c0154fdcc33caaf970de12c80c094a6fe7bcb9fce4b7dd4b0291a449cd22a140b6e3ef264407a76c9b6458815f90
7
+ data.tar.gz: 1e19818252b350a13051c6cb0bf6bd1358ed09b5677f0b861f04ee8166664bb8c86242b308f03f9c8665de577eaadbec58ddf8fae3a3f035a1cc0c8df02d6d74
@@ -1,3 +1,8 @@
1
+ # v0.0.21
2
+
3
+ * Adds Locale support
4
+ * Running `theme replace` no longer deletes unwatched files if they are found on Shopify
5
+
1
6
  # v0.0.20
2
7
 
3
8
  * Fixes issue with unknown types raising exceptions -- csaunders
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 `templates/` directories are included by default.
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
@@ -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|
@@ -1,3 +1,3 @@
1
1
  module ShopifyTheme
2
- VERSION = "0.0.20"
2
+ VERSION = "0.0.21"
3
3
  end
@@ -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 2, local_assets_list.length
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.20
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-07-21 00:00:00.000000000 Z
11
+ date: 2014-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor