adn_viewer 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adn_viewer.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: a64f8ef98073a19d40457cfe43b41fa9f3d6301e
|
4
|
+
data.tar.gz: 8a36a3c71c2af171f9262bafbb854c839a9c7a37
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1191a8015f2dd655015e1fe3a79a427148cb910b39c3ddb96f97711aaa743dc5a9876e432b606e3fc592fe569caf4add9e40b6abab0f4367dcf83f4993b9bc0f
|
7
|
+
data.tar.gz: c4985c82e099fc2017915b35cd8f923fbd914460f21d72afb22fc8ea8887f62c35d65c0293ad572f615c4774e7ac4fdfd25c38fe617ab046ac8c22d5d99d0ea0
|
data/lib/adn_viewer.rb
CHANGED
@@ -17,7 +17,7 @@ class Adn_Viewer
|
|
17
17
|
request["content-type"] = 'application/json'
|
18
18
|
request["authorization"] = 'Bearer ' + token
|
19
19
|
request.body = "{\"bucketKey\":\"" + name + "\",\"policy\":\"" + policy + "\"}"
|
20
|
-
http.request(request).read_body
|
20
|
+
puts JSON.parse(http.request(request).read_body)
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.check_bucket(token, name)
|