bootic_cli 0.9.2 → 0.9.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64db13bc720e2ff73d52f53f170ab8e0f320736b2ce2d59f17b6a9484c59ab18
|
4
|
+
data.tar.gz: 6a430f14bf10f222943c216a80b1d0b46fa35bbd4d0eafaaf8f89f31346585c4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
316
|
+
exit
|
317
317
|
end
|
318
318
|
|
319
319
|
return default_answer if input == '' || input.downcase == default_char
|
@@ -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
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
400
|
+
exit
|
401
401
|
end
|
402
402
|
end
|
403
403
|
end
|
data/lib/bootic_cli/version.rb
CHANGED
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.
|
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
|
+
date: 2023-04-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: thor
|