theme-juice 0.3.7 → 0.3.8

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: 520eb3831077f97fbcf1a4469178bfe86e399c0e
4
- data.tar.gz: b15d8d8f8043ace8c6c1cf7a1d4112892cde0d38
3
+ metadata.gz: 73d1296a8484fbae76a72f7a5606c252bb4743ba
4
+ data.tar.gz: f74f4c6a09211dba3028f56b7c6559d2f466d107
5
5
  SHA512:
6
- metadata.gz: 265defc28090617635b3374cd1802e6d985bbb2b70ea7a08be57632d8f73c34e74541fe0881b3161bbece095dc2240b88d1ca14285348499b069dc539b995db9
7
- data.tar.gz: e2f1e7adaf39dfd45c140d94e62b1e80e66d9ae2d6da6020c97087658676b2f79ca664b86ed9a5c128b3fa4348e02cc5b57772650b0332ef8af7364866baa360
6
+ metadata.gz: fa89fb673767296ae6b412e086d4180f9e2ceb2a1fc29bb909a1b68d82666501fae5abdb1a68ba0bf1c692aec81e10c0cda4bb56ebbebd28ed4814f3fcdfb20f
7
+ data.tar.gz: 15eb808984f6de663e48b890db4d85e77d0d6543e7805e64f2ac1b4780a7194779cf5ce04149d54b4a76a92704112b79ff5f169fe3d3228986823d3b5fc30a46
@@ -97,11 +97,11 @@ module ThemeJuice
97
97
  clean_site_name = site.gsub(/[^\w]/, "_")[0..10]
98
98
 
99
99
  # Location of site installation
100
- if options[:use_defaults]
101
- site_location = "#{Dir.pwd}/"
100
+ if options[:location]
101
+ site_location = options[:location]
102
102
  else
103
- if options[:location]
104
- site_location = options[:location]
103
+ if options[:use_defaults]
104
+ site_location = "#{Dir.pwd}/"
105
105
  else
106
106
  site_location = ask " ○ Where do you want to setup the site? :", :blue, default: "#{Dir.pwd}/", path: true
107
107
  end
@@ -123,7 +123,7 @@ module ThemeJuice
123
123
  }
124
124
 
125
125
  if options[:use_defaults]
126
- theme = themes["theme-juice/theme-juice-starter"]
126
+ starter_theme = themes["theme-juice/theme-juice-starter"]
127
127
  else
128
128
  say " ○ Which starter theme would you like to use? (partial name is acceptable)", :blue
129
129
  choose do |menu|
@@ -155,11 +155,11 @@ module ThemeJuice
155
155
  end
156
156
 
157
157
  # Development url
158
- if options[:use_defaults]
159
- dev_url = "#{site}.dev"
158
+ if options[:url]
159
+ dev_url = options[:url]
160
160
  else
161
- if options[:url]
162
- dev_url = options[:url]
161
+ if options[:use_defaults]
162
+ dev_url = "#{site}.dev"
163
163
  else
164
164
  dev_url = ask " ○ What do you want the development url to be? (this should end in '.dev') :", :blue, default: "#{site}.dev"
165
165
  end
@@ -171,11 +171,11 @@ module ThemeJuice
171
171
  end
172
172
 
173
173
  # Initialize a git repository on setup
174
- if options[:use_defaults] || options[:skip_repo]
175
- repository = false
174
+ if options[:repository]
175
+ repository = options[:repository]
176
176
  else
177
- if options[:repository]
178
- repository = options[:repository]
177
+ if options[:use_defaults] || options[:skip_repo]
178
+ repository = false
179
179
  else
180
180
  if yes? " ○ Would you like to initialize a new Git repository? (y/N) :", :blue
181
181
  repository = ask " ○ What is the repository's URL? :", :blue
@@ -1,3 +1,3 @@
1
1
  module ThemeJuice
2
- VERSION = "0.3.7"
2
+ VERSION = "0.3.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theme-juice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse