bootic_cli 0.9.2 → 0.9.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
  SHA256:
3
- metadata.gz: 1053a78f5dcee0b27021985457476ccc2ff4666842c887b2a2bf86cc5b4eb5cf
4
- data.tar.gz: 62d10a5ad2b1d927275a247a5898d1d16090b7e1c624790fbbed801e3b4a1094
3
+ metadata.gz: 64db13bc720e2ff73d52f53f170ab8e0f320736b2ce2d59f17b6a9484c59ab18
4
+ data.tar.gz: 6a430f14bf10f222943c216a80b1d0b46fa35bbd4d0eafaaf8f89f31346585c4
5
5
  SHA512:
6
- metadata.gz: 3b7f0b1a2357cf1f4655d09fed51b134d37c091987c99b5bca5164ab13e06dafc04f588fa7ec380d9e03c28d6db3b919993d7e858a7c8a30ad940e4ba7fa47e9
7
- data.tar.gz: 79969ffa8e65899084cadd182708347dd79280412a2a77413eea68aa2f1d803909cea29e8fa5a92e97d9af9644ed86f9c4f6e94c25d91f472300030e89accb9d
6
+ metadata.gz: c120a547235bb4cdd35ae63fdc029bcd972362f52f0e49a6c845933d85a443d7e1309c366e52433785c0a867156c477e883d1108e09f1d2ccea0f3b59c00332a
7
+ data.tar.gz: 309c38cd514887e071fc631a78d4229c928e8c533601afff2568905a8e324876c90fe46a0b96b9e6164984d3db66192093c6302142a135cac03976991c600a9d
@@ -139,7 +139,7 @@ module BooticCli
139
139
  if options['force'].nil? && has_lockfile?
140
140
  prompt.say("Looks like there's another process already watching this dir.")
141
141
  prompt.say("If this is not the case, please run this command with --force (or -f)")
142
- abort
142
+ exit
143
143
  end
144
144
 
145
145
  local_theme, remote_theme = theme_selector.select_theme_pair(default_subdomain, current_dir, options['public'])
@@ -220,7 +220,7 @@ module BooticCli
220
220
  within_theme do
221
221
  unless File.directory?(dir) and contains_theme?(dir)
222
222
  prompt.say("Path doesn't exist or doesn't contain theme: #{dir}")
223
- abort
223
+ exit
224
224
  end
225
225
 
226
226
  dirname = File.dirname(dir)
@@ -254,14 +254,14 @@ module BooticCli
254
254
  def warn_about_public
255
255
  unless prompt.yes_or_no?("You're pushing changes directly to your public theme. Are you sure?", true)
256
256
  prompt.say("Ok, sure. You can skip the above warning prompt by passing a `--public` flag.")
257
- abort
257
+ exit
258
258
  end
259
259
  end
260
260
 
261
261
  def within_theme(&block)
262
262
  unless is_within_theme?
263
263
  prompt.say "This directory doesn't look like a Bootic theme! (#{current_expanded_dir})", :magenta
264
- abort
264
+ exit
265
265
  end
266
266
 
267
267
  logged_in_action do
@@ -313,7 +313,7 @@ module BooticCli
313
313
  input = shell.ask("#{question} [#{default_char}]").strip
314
314
  rescue Interrupt
315
315
  say "\nCtrl-C received. Bailing out!", :magenta
316
- abort
316
+ exit
317
317
  end
318
318
 
319
319
  return default_answer if input == '' || input.downcase == default_char
@@ -31,6 +31,7 @@ module BooticCli
31
31
  end
32
32
 
33
33
  # file sizes may differ as they are served by CDN (that shrinks them)
34
+ # puts "Comparing APIAsset vs other digest:\n#{digest}\n#{other.digest}"
34
35
  self.digest == other.digest # && self.file_size == other.file_size
35
36
  end
36
37
 
@@ -19,12 +19,12 @@ module BooticCli
19
19
 
20
20
  def ==(other)
21
21
  if other.digest.to_s == '' # api theme asset without a digest set
22
- # puts "Other has no digest, so comparing dates: #{self.updated_on} vs #{other.updated_on}"
22
+ # puts "Other has no digest, so comparing dates: #{self.updated_on.to_i} vs #{other.updated_on.to_i}"
23
23
  return self.updated_on.to_i == other.updated_on.to_i
24
24
  end
25
25
 
26
26
  # file sizes may differ as they are served by CDN (that shrinks them)
27
- # puts "Comparing digests:\n#{digest}\n#{other.digest}"
27
+ # puts "Comparing FSTheme vs other digest:\n#{digest}\n#{other.digest}"
28
28
  self.digest == other.digest # self.file_size == other.file_size
29
29
  end
30
30
  end
@@ -361,7 +361,7 @@ module BooticCli
361
361
 
362
362
  if fields.include?('$.updated_on') || fields.include?('updated_on')
363
363
  prompt.say("#{file.file_name} timestamp #{e.errors.first.messages.first}", :red)
364
- abort
364
+ exit
365
365
  end
366
366
 
367
367
  error_msg = if fields.include?('file_content_type') or fields.include?('content_type')
@@ -389,15 +389,15 @@ module BooticCli
389
389
 
390
390
  rescue APITheme::UnknownResponse => e # 502s, 503s, etc
391
391
  prompt.say("Got an unknown response from server: #{e.message}. Please try again in a minute.", :red)
392
- abort
392
+ exit
393
393
 
394
- rescue Net::OpenTimeout, Net::ReadTimeout => e
394
+ rescue SocketError, Net::OpenTimeout, Net::ReadTimeout => e
395
395
  prompt.say("I'm having trouble connecting to the server. Please try again in a minute.", :red)
396
- abort
396
+ exit
397
397
 
398
398
  rescue BooticClient::ServerError => e
399
399
  prompt.say("Couldn't save #{file.file_name}. Please try again in a few minutes.", :red)
400
- abort
400
+ exit
401
401
  end
402
402
  end
403
403
  end
@@ -1,3 +1,3 @@
1
1
  module BooticCli
2
- VERSION = '0.9.2'
2
+ VERSION = '0.9.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.9.2
4
+ version: 0.9.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: 2023-04-12 00:00:00.000000000 Z
12
+ date: 2023-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor