shortlook 0.1.0 → 0.1.1

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: 73ed8434d41927c2c24e3d914298af64a703b52a81acdd32a5bf02cb8b79a072
4
- data.tar.gz: f408e42cb918044cc2edaa344e25addb577a9913fd0fa9b583f523159ad85b78
3
+ metadata.gz: 39c4e2416a0b5eb48a0e2c3ffa656c603524f470ea4660536abe8d3af2613564
4
+ data.tar.gz: 2cf9a40a98b3bccbfca78df8ff0f2da3aa984cd21d3f8a15e73a92fd97ea0d58
5
5
  SHA512:
6
- metadata.gz: c315d22416984e87439871431a76b808f1e6698dc979cb67740dbbb9c59aac9eeeeb3ad2d9c3bc764b004c38b162bc7998c0b0983792dfa41a9dd7867840b138
7
- data.tar.gz: 7b8290763c14a16c8f47f90fc81bf6a7c2b81f53a97ae522cab12340f94f7e580550c89122774ba28fc3c35c56ba60c9c71e920f7c3d8400ed86dcdeb35fb80c
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('config.yml')
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 = 'config'
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(' ')}"
@@ -1,3 +1,3 @@
1
1
  module Shortlook
2
- VERSION = '0.1.0'.freeze
2
+ VERSION = '0.1.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shortlook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marco Roth