bootic_cli 0.4.4 → 0.4.5

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: e481971c908c55b0696187dacbcd90f2c0a98d0e
4
- data.tar.gz: c815d530ed012021ba9c2eda228fcb96cd5d8b73
3
+ metadata.gz: f6ab030919ecb399f1cda0030a9573b1dc1cebd7
4
+ data.tar.gz: 3f6079156d89e0c6c18909453e3e50566d461283
5
5
  SHA512:
6
- metadata.gz: 3e8f04432406d094ecec4eb6457a53f576c9ed20736e929e3779c99711000b19ec623665fb3c64cab4b2fcdc5e53d98cdcef59605bc5cb24edf0028911b780f9
7
- data.tar.gz: 3395443655a57ec2de06b2383c38b5057a334fb607ef7e59853bb1a90b1570ecfb71ae83c4a1ce35debae1c0368cf20299154ade38fff908279a58b0797922f1
6
+ metadata.gz: ff7ae4987db9ab03c59ad9628a12470a0ced9088e10372252b590ecd297a22eb8406fb663d574e24bacd817371fb9fa4b54a87c9486cdb519ea47f82f97a50b4
7
+ data.tar.gz: 63feac3baa1a355bd88c14cc11ed82fb1968370b364bad4310ee9cd3b8d6f29669d0dad28535f6e4dd567a74558a85e3e6818e151262e8356b28e2a4296b2b42
@@ -91,7 +91,7 @@ module BooticCli
91
91
  if prompt.yes_or_no?("Would you like to make a local copy of your current public theme before publishing?", false)
92
92
 
93
93
  backup_path = File.join(local_theme.path, "public-theme-backup-#{Time.now.to_i}")
94
- backup_theme, public_theme = theme_selector.select_theme_pair(default_subdomain, backup_path, true)
94
+ backup_theme, public_theme = theme_selector.select_theme_pair(local_theme.subdomain, backup_path, true)
95
95
 
96
96
  say("Gotcha. Backing up your public theme into #{backup_theme.path}")
97
97
  workflows.pull(backup_theme, public_theme)
@@ -16,7 +16,7 @@ module BooticCli
16
16
  end
17
17
 
18
18
  def any?
19
- templates.any? || assets.any?
19
+ templates.any? # || assets.any?
20
20
  end
21
21
 
22
22
  def templates
@@ -124,6 +124,11 @@ module BooticCli
124
124
  diff = ThemeDiff.new(source: local_theme, target: remote_theme)
125
125
  notice 'Comparing local and remote copies of theme...'
126
126
 
127
+ unless diff.any?
128
+ prompt.say "No changes between versions."
129
+ exit 1
130
+ end
131
+
127
132
  notice "Local <--- Remote"
128
133
 
129
134
  diff.updated_in_target.templates.each do |t|
@@ -209,7 +214,7 @@ module BooticCli
209
214
 
210
215
  prompt.notice "Alrighty! Publishing your development theme..."
211
216
  remote_theme.publish(true) # syncs dev to public, without flipping them
212
- prompt.notice "Yay! Your development theme has been made public. Take a look at #{remote_theme.path}", :cyan
217
+ prompt.notice "Yay! Your development theme has been made public. Take a look at #{remote_theme.path}"
213
218
  end
214
219
 
215
220
  private
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = "0.4.4"
2
+ VERSION = "0.4.5"
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.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis