bootic_cli 0.7.2 → 0.7.3

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: 66ebab01b114029b6d6cff68f2957df471694fbe
4
- data.tar.gz: f593e3f37ed9dd3cd7ec48730afd8509f4e6f480
3
+ metadata.gz: ce65ebb8fcfa965e89d36c586b1e8727b107293a
4
+ data.tar.gz: 65a6397f16c67cd0384cd32562b811b629329515
5
5
  SHA512:
6
- metadata.gz: 13d97b88ee377d64743699dd420349601cecc0c7b3a94380c9771dc553094044ea33764164e85eb5e44a4e6983ba510f897047ea266e03fd0f55ab001293b0f4
7
- data.tar.gz: 28b87bf9559eca1c3271ad74d37e2ea7f3c385d509d5ef34a677100d5edc345e5bb8ad424f6b390b6dceeb1da333b34044b49bf53cc397a5bd3727041202473c
6
+ metadata.gz: 3cb885f8025ac8a13a10073b4ed53924a324a5058fa293b0195f64df17b863ea7a7584edad90928ffc81dfbd03d71b84d1621cbad57945360ff3e97ed27457fc
7
+ data.tar.gz: e00d252e1e00dad78e4588d1f7040e2a0954db1914007ac5b550620ddc71bc3096847ba98604dffdd471645078b052fff3510f882839b95ab2cc6e4c0310e8d8
@@ -134,7 +134,7 @@ module BooticCli
134
134
  tpl = theme.templates.find { |t| t.file_name == file_name }
135
135
  if tpl && tpl.can?(:delete_template)
136
136
  res = tpl.delete_template
137
- check_errors!(res) if res.respond_to?(:can?)
137
+ res.status.to_i < 300
138
138
  else
139
139
  puts "Cannot delete #{file_name}"
140
140
  end
@@ -151,7 +151,7 @@ module BooticCli
151
151
  asset = theme.assets.find { |t| t.file_name == file_name }
152
152
  if asset and asset.can?(:delete_theme_asset)
153
153
  res = asset.delete_theme_asset
154
- check_errors!(res) if res.respond_to?(:can?)
154
+ res.status.to_i < 300
155
155
  else
156
156
  puts "Cannot delete asset: #{file_name}"
157
157
  end
@@ -338,7 +338,7 @@ module BooticCli
338
338
  def delete_file(theme, path)
339
339
  type = FSTheme.resolve_type(path)
340
340
  file_name = File.basename(path)
341
- case type
341
+ success = case type
342
342
  when :template
343
343
  theme.remove_template(file_name)
344
344
  when :asset
@@ -346,7 +346,7 @@ module BooticCli
346
346
  else
347
347
  raise "Invalid type: #{type}"
348
348
  end
349
- puts "Deleted remote #{type}: #{highlight(file_name)}"
349
+ puts "Deleted remote #{type}: #{highlight(file_name)}" if success
350
350
  end
351
351
 
352
352
  def handle_file_errors(type, file, &block)
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = '0.7.2'
2
+ VERSION = '0.7.3'
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.7.2
4
+ version: 0.7.3
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: 2020-03-25 00:00:00.000000000 Z
12
+ date: 2020-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor