meroku 2.0.1 → 2.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/meroku/cli.rb +1 -1
- data/lib/meroku/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8769afa8548cc15558614fbdc529495a0d8742b6
|
4
|
+
data.tar.gz: 9214a901836c05e98bdffdc9f4b1662976328409
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6152d3160394868db6f46a978cbeee5eb4dee9d308ae45138a1f92eb8ed8a213e47ee84e0d3b070a5241a294f23033e2968fa119a02cb7d6b69bc10975a3a5e5
|
7
|
+
data.tar.gz: 1410f02ff214e46191ee428bea44edb2c7b59aceab4d949ca787028f0bff015aa856f7694428a1670a8ba3303901740133612810825feefd82c8ce4d22b4f44d
|
data/lib/meroku/cli.rb
CHANGED
@@ -115,7 +115,7 @@ module Meroku
|
|
115
115
|
data = `cat ~/.ssh/id_rsa.pub`.chomp
|
116
116
|
url = "https://www.meroku.com/publickeys.json"
|
117
117
|
token = `cat ~/.meroku/.token`.chomp
|
118
|
-
response_json = RestClient.post url, {:publickey=>{:name =>
|
118
|
+
response_json = RestClient.post url, {:publickey=>{:name => name, :data=>data}, :token=>token}.to_json, timeout: 1, :content_type => :json, :accept => :json
|
119
119
|
|
120
120
|
if JSON.parse(response_json)["errors"] && JSON.parse(response_json)["errors"].size > 0
|
121
121
|
puts JSON.parse(response_json)["errors"].map{|x| x["detail"]}.join(".")
|
data/lib/meroku/version.rb
CHANGED