theme-juice 0.6.0 → 0.6.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 33c6412ef5cad2c57edc03f4b83514258076a76e
4
- data.tar.gz: a9dd752a864bfdbe61e4ef3aed537e2eee2c8a79
3
+ metadata.gz: 4c1b4474cefccc6e847057f49168b505fe3cb18e
4
+ data.tar.gz: 76f95bc1bc6589705ee48bb6570dd2f9658cf360
5
5
  SHA512:
6
- metadata.gz: c37e19174cc71fda9ee05c3b94e6b6056d46bbb057846931ec18573752afa7e3e42f5bf44b1104a9dcb9e64f4b2bc0da823b7f7371a4214079e2d26b01608048
7
- data.tar.gz: 6f0a2d59e44f8ea18fc12fb8db17a3479801d335ffcf2609a195fc3c12542603792c1e83be2fba63187bbb7820bd79ac225d4d197a3c7d4ae0dd66e880a240f4
6
+ metadata.gz: a190f61c738570c64744a75090d111ff31057bb63e76bfda0fa6fb6dd1b5f01e907a11b2f679a00529aafdd559c2c0cf17aa5bbf44146de696fd4082ed0cf50a
7
+ data.tar.gz: a08f41de3bb69eb72516a9c1a3d24087f7275afdfa52dd4c385a8fca0fe549f731576a87247a16391c1cbf7785c43fc05a9960d3e9b58e1b11c7be3e8dd9ce2e
@@ -74,7 +74,7 @@ module ThemeJuice
74
74
  def prompt(question, *opts)
75
75
  format_message question, {
76
76
  :color => :blue,
77
- :icon => :question
77
+ :icon => :question
78
78
  }
79
79
 
80
80
  opts.each do |opt|
@@ -105,7 +105,7 @@ module ThemeJuice
105
105
 
106
106
  format_message question, {
107
107
  :color => opts[:color] || :blue,
108
- :icon => :question
108
+ :icon => :question
109
109
  }
110
110
 
111
111
  if opts[:simple]
@@ -125,7 +125,7 @@ module ThemeJuice
125
125
  def log(message)
126
126
  speak message, {
127
127
  :color => :yellow,
128
- :icon => :log
128
+ :icon => :log
129
129
  }
130
130
  end
131
131
 
@@ -139,8 +139,8 @@ module ThemeJuice
139
139
  def success(message)
140
140
  speak message, {
141
141
  :color => [:black, :on_green, :bold],
142
- :icon => :success,
143
- :row => true
142
+ :icon => :success,
143
+ :row => true
144
144
  }
145
145
  end
146
146
 
@@ -154,8 +154,8 @@ module ThemeJuice
154
154
  def notice(message)
155
155
  speak message, {
156
156
  :color => [:black, :on_yellow],
157
- :icon => :notice,
158
- :row => true
157
+ :icon => :notice,
158
+ :row => true
159
159
  }
160
160
  end
161
161
 
@@ -170,8 +170,8 @@ module ThemeJuice
170
170
  def error(message)
171
171
  speak message, {
172
172
  :color => [:white, :on_red],
173
- :icon => :error,
174
- :row => true
173
+ :icon => :error,
174
+ :row => true
175
175
  }
176
176
 
177
177
  yield if block_given?
@@ -189,7 +189,7 @@ module ThemeJuice
189
189
  def hello(opts = {})
190
190
  speak "Welcome to Theme Juice!", {
191
191
  :color => [:black, :on_green, :bold],
192
- :row => true
192
+ :row => true
193
193
  }.merge(opts)
194
194
  end
195
195
 
@@ -202,8 +202,8 @@ module ThemeJuice
202
202
  #
203
203
  def goodbye(opts = {})
204
204
  speak "Bye bye!", {
205
- :color => :yellow,
206
- :icon => :general,
205
+ :color => :yellow,
206
+ :icon => :general,
207
207
  :newline => true
208
208
  }.merge(opts)
209
209
 
@@ -222,14 +222,14 @@ module ThemeJuice
222
222
  def list(header, color, list)
223
223
  speak header, {
224
224
  :color => [:black, :"on_#{color}"],
225
- :icon => :notice,
226
- :row => true
225
+ :icon => :notice,
226
+ :row => true
227
227
  }
228
228
 
229
229
  list.each do |item|
230
230
  speak item, {
231
231
  :color => :"#{color}",
232
- :icon => :general
232
+ :icon => :general
233
233
  }
234
234
  end
235
235
  end
@@ -246,7 +246,7 @@ module ThemeJuice
246
246
  def choose(header, color, list)
247
247
  speak "#{header} (use arrow keys and press enter)", {
248
248
  :color => :"#{color}",
249
- :icon => :question
249
+ :icon => :question
250
250
  }
251
251
 
252
252
  print "\n" * list.size
@@ -390,8 +390,8 @@ module ThemeJuice
390
390
  list.each_with_index do |item, i|
391
391
  icon = if i == selected then "selected" else "unselected" end
392
392
  speak "#{item}", {
393
- :color => :"#{color}",
394
- :icon => :"#{icon}",
393
+ :color => :"#{color}",
394
+ :icon => :"#{icon}",
395
395
  :indent => 2
396
396
  }
397
397
  end
@@ -292,19 +292,6 @@ module ThemeJuice
292
292
  def setup_synced_folder
293
293
  @interaction.log "Syncing host theme with VM"
294
294
 
295
- contents = %Q{
296
- ### Begin '#{@opts[:site_name]}'
297
- #
298
- # This block is automatically generated by Theme Juice. Do not edit.
299
- ###
300
- Vagrant.configure('2') do |config|
301
- \tconfig.vm.synced_folder '#{@opts[:site_location]}', '/srv/www/tj-#{@opts[:site_name]}', mount_options: ['dmode=777','fmode=777']
302
- \tconfig.landrush.host '#{@opts[:site_dev_url]}', '192.168.50.4'
303
- end
304
- ### End '#{@opts[:site_name]}'
305
- \n
306
- }
307
-
308
295
  File.open File.expand_path("#{@environment.vvv_path}/Vagrantfile"), "ab+" do |file|
309
296
  file.puts "### Begin '#{@opts[:site_name]}'"
310
297
  file.puts "#"
@@ -1,5 +1,5 @@
1
1
  # encoding: UTF-8
2
2
 
3
3
  module ThemeJuice
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  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.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse