neocities 0.0.9 → 0.0.10

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: b0a01290ca5896843f13205d4b342d34ecf1cd4e9f7b4ebe8d209657914cd67d
4
- data.tar.gz: fd93edbdc056f17d847690710b6d34be2fc3b37f558d6237eb6902453bd9eb09
3
+ metadata.gz: ceb1bc741447cf464176436e4670caabc71486eb2e029263ebaeaf2bc87824fc
4
+ data.tar.gz: 46192a310a7831f1dc242b8b0a452538ef3bea404985e647a7da3cab4a10bbdc
5
5
  SHA512:
6
- metadata.gz: 6670df0573a03fa5d6e417a0185c9b5871686110a754dad49a92529239996eba0c95af95882d01df317bc96752af5de16c2e7f4b9eae9517184a6b86f92f5a35
7
- data.tar.gz: f0256bcd5be0b82ea19a5525c62bf1152224b290c2bc6210d613caa4d4edd5fcdfb0f66d75524eb5c90c31b8de48d40a26afccee202121651ff0c13daf1e0a24
6
+ metadata.gz: 9b67cf42a0ed532de785546376b55c995dd1cd0dedfc7371630e5e561db215dba6ca84833d0736f73d1095095e2742fe1dc19013eadd6b4aac084783e21e07ea
7
+ data.tar.gz: daef1b3dcbdb8b559d2a17d9104b21a7285458722e2ede0bc6cfa9c817aa73cc04840bfbec51d7876bdfb4f7b6ad83e2f2bdca63fd3cb8bc36709fe28f7c09bd
@@ -45,11 +45,13 @@ module Neocities
45
45
  display_help_and_exit if @subcmd.nil? || @argv.include?(HELP_SUBCOMMANDS) || !SUBCOMMANDS.include?(@subcmd)
46
46
  send "display_#{@subcmd}_help_and_exit" if @subargs.empty?
47
47
 
48
- begin
49
- @api_key = File.read @app_config_path
50
- rescue Errno::ENOENT
51
- @api_key = nil
52
- end
48
+ if !@api_key
49
+ begin
50
+ @api_key = File.read @app_config_path
51
+ rescue Errno::ENOENT
52
+ @api_key = nil
53
+ end
54
+ end
53
55
 
54
56
  if @api_key.nil?
55
57
  puts "Please login to get your API key:"
@@ -1,3 +1,3 @@
1
1
  module Neocities
2
- VERSION = '0.0.9'
2
+ VERSION = '0.0.10'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neocities
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Drake
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-15 00:00:00.000000000 Z
11
+ date: 2019-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: tty-table
@@ -129,7 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  requirements: []
131
131
  rubyforge_project:
132
- rubygems_version: 2.7.3
132
+ rubygems_version: 2.7.6
133
133
  signing_key:
134
134
  specification_version: 4
135
135
  summary: Neocities.org CLI and API client