neocities 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/neocities/cli.rb +3 -3
- data/lib/neocities/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: d9cbfa0d3fa2c969d028cb8d0eba7ea9780b3cd68947e9997d078e1e61324473
|
4
|
+
data.tar.gz: 875dacbb2710af70d4b5279b2377dc0f7ec74fe15576d465ae77ad0afcd85f09
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f389f7d481de46eaf9ec80357de0d3227f40f2fbab361c10c768489937a596e4773caf4a44aa1053044b7f441e69f0258f5295c68b85c759ae3820640199664
|
7
|
+
data.tar.gz: 837c20dfd269df37dff67d0467b61a0256fc0153df114ffa115a78a66bf2a2b113f7d7061d9fb8b4617ddb44f623d1bbcb84f0d32eb33dcf2647d280fdc7fb4c
|
data/lib/neocities/cli.rb
CHANGED
@@ -61,10 +61,10 @@ module Neocities
|
|
61
61
|
|
62
62
|
@client = Neocities::Client.new sitename: @sitename, password: @password
|
63
63
|
|
64
|
-
|
65
|
-
if
|
64
|
+
resp = @client.key
|
65
|
+
if resp[:api_key]
|
66
66
|
FileUtils.mkdir_p Pathname(@app_config_path).dirname
|
67
|
-
File.write @app_config_path,
|
67
|
+
File.write @app_config_path, resp[:api_key]
|
68
68
|
puts "The api key for #{@pastel.bold @sitename} has been stored in #{@pastel.bold @app_config_path}."
|
69
69
|
else
|
70
70
|
display_response resp
|
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.8
|
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: 2018-02-14 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.
|
132
|
+
rubygems_version: 2.7.3
|
133
133
|
signing_key:
|
134
134
|
specification_version: 4
|
135
135
|
summary: Neocities.org CLI and API client
|