shopify_theme 0.0.2 → 0.0.3

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.
@@ -2,7 +2,7 @@ require 'thor'
2
2
  require 'yaml'
3
3
  require 'abbrev'
4
4
  require 'base64'
5
- require 'ftools'
5
+ require 'fileutils'
6
6
  require 'json'
7
7
  require 'fssm'
8
8
 
@@ -18,7 +18,7 @@ module ShopifyTheme
18
18
  end
19
19
 
20
20
  desc "configure API_KEY PASSWORD STORE", "generate a config file for the store to connect to"
21
- def generate(api_key=nil, password=nil, store=nil)
21
+ def configure(api_key=nil, password=nil, store=nil)
22
22
  config = {:api_key => api_key, :password => password, :store => store}
23
23
  create_file('config.yml', config.to_yaml)
24
24
  end
@@ -86,7 +86,7 @@ module ShopifyTheme
86
86
  content = Base64.decode64(asset['attachment'])
87
87
  end
88
88
 
89
- File.makedirs(File.dirname(key))
89
+ FileUtils.mkdir_p(File.dirname(key))
90
90
  File.open(key, "w") {|f| f.write content} if content
91
91
  end
92
92
 
@@ -1,3 +1,3 @@
1
1
  module ShopifyTheme
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shopify_theme
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - John Duff
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-06-21 00:00:00 -04:00
18
+ date: 2011-09-02 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency