bootic_cli 0.2.0.pre2 → 0.2.0.pre3

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: 795e7e632b2f62eb68ff13a89d71a6cc89bc98a0
4
- data.tar.gz: bf3bba8b29114d3119d69ab5e8b198c9666f3175
3
+ metadata.gz: 7e431e8096c1631c299bef2480ee7b8790df2a84
4
+ data.tar.gz: 0e0feeb799a8c2bd9a8158511b6efaaedab31cd3
5
5
  SHA512:
6
- metadata.gz: 3596f84b3509fee62dea7bbb970dc3b38a6bd4517ad39f6af098ee5ba42710b10f81f471b6a659e3c9841ea1ce2cee887a937b385ceadb1757bb33119c7520cd
7
- data.tar.gz: 81f1e41c3d9b100ad5788f1bfddd6d7733a7d7940781af47240d728a7fc871e8c5826fdaaf6c6212876d1ca4cf702c89601e38186307f305bfd663657b6a4cd7
6
+ metadata.gz: 34e96a633bb6bae2d620c0cb4d12dffdcf0fc6343c0cff50a996400021a56d0cb3ca42970b85f3c8ee32d4b5bca51fcc54020c19a0a171761fd960f527612d11
7
+ data.tar.gz: ce7c0a78c0a5152dfd82f8568f69e534069a3c97b966bdd93cfeef64fd287f8dc170cfa3a8b520e4dbebcc2b3de9af4c1bd8f7f6842579dc8bef8d3185e4cde0
@@ -84,8 +84,8 @@ module BooticCli
84
84
  end
85
85
 
86
86
  class Prompt
87
- def initialize
88
- @shell = Thor::Shell::Color.new
87
+ def initialize(shell = Thor::Shell::Color.new)
88
+ @shell = shell
89
89
  end
90
90
 
91
91
  def yes_or_no?(question, default_answer)
@@ -185,7 +185,7 @@ module BooticCli
185
185
  end
186
186
 
187
187
  def publish(local_theme, remote_theme)
188
- keep_old_theme = !prompt.yes_or_no?("Do you want to keep the dev theme as the old public one?", false)
188
+ keep_old_theme = prompt.yes_or_no?("Do you want to keep the dev theme as the old public one?", false)
189
189
  # first push local files to dev theme
190
190
  prompt.say "pushing local changes to development theme"
191
191
  push local_theme, remote_theme, destroy: true
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = "0.2.0.pre2"
2
+ VERSION = "0.2.0.pre3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootic_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre2
4
+ version: 0.2.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis