bootic_cli 0.6.6 → 0.6.7

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
  SHA256:
3
- metadata.gz: d331a2e0e56f33f937627282cfe29e9b5ac7cfce1389542ef451b1983188dbc9
4
- data.tar.gz: e9e0c324da403e79c3ad97da0bdb0c00ad91de4b1cd82bc27683fe941ecf2e0c
3
+ metadata.gz: 6d8b35e5dbac7b46fc56dc3e05386fd08234fdca802a1a677d5245f5eb54028e
4
+ data.tar.gz: '05488c11d71bfe841474f0ff88e7c1ca018069e3e5b3d71d4dd0a7ac789fa970'
5
5
  SHA512:
6
- metadata.gz: 00d76572ab531748bece289269e6e5dd1359ae1653fde14ab9596b603e4e68a7e18e4772a63781a4aab40a68399d3fb708eb5e2fce61773a5df18fa0b2e41c07
7
- data.tar.gz: 6dbead30c1a94d944bb2768c829441b89ffddc215271322a5c88fefebb8ec07b7a39fa0dac60bf1726499cb2ba519b1e8c9c5603350c54c58c356a2c5bb7f080
6
+ metadata.gz: 75c2cb138d038891fb8a4dae8d750d94192db93536c03b627265d18f706a61a49a76ef0500597de06b0910f23e3f97c245c042bad548be7e641b8a4069eab999
7
+ data.tar.gz: 15daa18cbd6fa5ac2edc87bf57ee201b7e827b981ac5c8ff8d6043f67999c7511cdffe2a3a3dd7a852f6ec2cd535517a45437a8f9f732a70d09ae87d2537c98f
@@ -58,13 +58,17 @@ module BooticCli
58
58
 
59
59
  else # create
60
60
  unless remote_theme.public?
61
- return prompt.say("You already have a development theme set up!", :red)
61
+ return prompt.say("You already have a development theme set up. If you want to delete it, please pass the --delete flag.", :red)
62
62
  end
63
63
 
64
64
  unless shop.themes.can?(:create_dev_theme)
65
65
  return prompt.say('Dev theme not available!')
66
66
  end
67
67
 
68
+ unless prompt.yes_or_no?("This will create a development copy of your current public theme. Proceed?", true)
69
+ return prompt.say "Ok, bye."
70
+ end
71
+
68
72
  result = shop.themes.create_dev_theme
69
73
  if result.has?(:errors)
70
74
  prompt.say "Couldn't create dev theme: #{result.errors.map(&:field).join(', ')}"
@@ -90,7 +90,7 @@ module BooticCli
90
90
  def delete!
91
91
  if theme.can?(:delete_theme)
92
92
  res = theme.delete_theme
93
- return !res.has?(:errors)
93
+ return res.status <= 204
94
94
  end
95
95
  false
96
96
  end
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = '0.6.6'
2
+ VERSION = '0.6.7'
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.6.6
4
+ version: 0.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ismael Celis
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-09-16 00:00:00.000000000 Z
12
+ date: 2019-10-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor