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 +4 -4
- data/lib/neocities/cli.rb +7 -5
- data/lib/neocities/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ceb1bc741447cf464176436e4670caabc71486eb2e029263ebaeaf2bc87824fc
|
4
|
+
data.tar.gz: 46192a310a7831f1dc242b8b0a452538ef3bea404985e647a7da3cab4a10bbdc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b67cf42a0ed532de785546376b55c995dd1cd0dedfc7371630e5e561db215dba6ca84833d0736f73d1095095e2742fe1dc19013eadd6b4aac084783e21e07ea
|
7
|
+
data.tar.gz: daef1b3dcbdb8b559d2a17d9104b21a7285458722e2ede0bc6cfa9c817aa73cc04840bfbec51d7876bdfb4f7b6ad83e2f2bdca63fd3cb8bc36709fe28f7c09bd
|
data/lib/neocities/cli.rb
CHANGED
@@ -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
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
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:"
|
data/lib/neocities/version.rb
CHANGED
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.
|
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:
|
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.
|
132
|
+
rubygems_version: 2.7.6
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Neocities.org CLI and API client
|