shortlook 0.1.0 → 0.1.1
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 +4 -4
- data/lib/shortlook/commands/provider.rb +5 -3
- data/lib/shortlook/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 39c4e2416a0b5eb48a0e2c3ffa656c603524f470ea4660536abe8d3af2613564
|
|
4
|
+
data.tar.gz: 2cf9a40a98b3bccbfca78df8ff0f2da3aa984cd21d3f8a15e73a92fd97ea0d58
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 86b9b3372fa056cafb57415d3ffd37a1021efed59a934172f74c934044f9330a111dc813b8088b0499dfdda6aad5bf88bd12f584c993c1d804f1c2008c621868
|
|
7
|
+
data.tar.gz: f831d627b0916574ad243383a1d1aadcbe7bfbb51e05d05ef8cca61721fe75c17a1c50abc17d8c1d3b814f39be1e0e8e93a5dd5d1ff1e294c422e5443f254a1a
|
|
@@ -20,6 +20,8 @@ module Shortlook
|
|
|
20
20
|
|
|
21
21
|
def execute(*)
|
|
22
22
|
config = TTY::Config.new
|
|
23
|
+
config.append_path(Dir.home)
|
|
24
|
+
|
|
23
25
|
spinner = TTY::Spinner.new(":spinner Fetching Apps for '#{@name}'", format: :bouncing_ball)
|
|
24
26
|
spinner.auto_spin
|
|
25
27
|
|
|
@@ -37,11 +39,11 @@ module Shortlook
|
|
|
37
39
|
spinner.stop
|
|
38
40
|
|
|
39
41
|
begin
|
|
40
|
-
config.read(
|
|
42
|
+
config.read("#{Dir.home}/.shortlook.yml")
|
|
41
43
|
author = config.fetch(:author)
|
|
42
44
|
bundle_prefix = config.fetch(:bundle_prefix)
|
|
43
45
|
rescue TTY::Config::ReadError
|
|
44
|
-
config.filename = '
|
|
46
|
+
config.filename = '.shortlook'
|
|
45
47
|
author = ENV['USER']
|
|
46
48
|
bundle_prefix = 'ch.marcoroth'
|
|
47
49
|
end
|
|
@@ -54,7 +56,7 @@ module Shortlook
|
|
|
54
56
|
|
|
55
57
|
config.set(:author, value: author)
|
|
56
58
|
config.set(:bundle_prefix, value: bundle_prefix)
|
|
57
|
-
config.write
|
|
59
|
+
config.write(force: true)
|
|
58
60
|
|
|
59
61
|
bundle_id = selected['bundleId']
|
|
60
62
|
provider_name = "ShortLook-#{name.delete(' ')}"
|
data/lib/shortlook/version.rb
CHANGED