adn_viewer 0.0.5 → 0.0.6
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: d011f6e58a87a4ea8f33180a62962b73020393e9
|
4
|
+
data.tar.gz: 755f95cf32693100f026e7b22750b8d7c4d05ad2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a617cd525c2f764ce43562b201ef344a6c4b45cc01cba83b315ed9a87143494304ff35971718610617ab584669adb0485a813da655e5411a3a60dd79a603276
|
7
|
+
data.tar.gz: fef49ba391d145154bf58092cda24a6ed872d99bd7329f5dea49f16a3f3569f8e56bb8cd8f523a51acac22fa93ba4af2136b9c439c4178de40dfd9b986ba80cb
|
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
|
-
|
20
|
+
JSON.parse(http.request(request).read_body)
|
21
21
|
end
|
22
22
|
|
23
23
|
def self.check_bucket(token, name)
|