kinto_box 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kinto_box/kinto_object.rb +9 -0
- data/lib/kinto_box/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: 5246de9ec861fb33f83486fe3f153dfbd184ced5
|
4
|
+
data.tar.gz: 6f594d8293751c6ce803a17b9107afbeffee5b2c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fc70c5827672c871ca69367a27f4d11182ebf26c213c61da7a5eb92997ed2238ab8d5c6834de6aaa26bd671dbffdb4d2bbcc1a3ad7c074600cfe72bb84755447
|
7
|
+
data.tar.gz: 44b7608328143c88c9671209f3a476622b784fc04f35d83ec6ea27e8ea9346a0a8ccd1394d71b97472a0f8232da2e3084bebcf02c76ec5a03632f2425b5833cb
|
@@ -12,6 +12,15 @@ module KintoBox
|
|
12
12
|
@kinto_client.patch(@url_path, {'data' => data})
|
13
13
|
end
|
14
14
|
|
15
|
+
def exists?
|
16
|
+
begin
|
17
|
+
info
|
18
|
+
rescue
|
19
|
+
return false
|
20
|
+
end
|
21
|
+
true
|
22
|
+
end
|
23
|
+
|
15
24
|
def add_permission(principal, permission)
|
16
25
|
@kinto_client.patch(@url_path, {'permissions' => { permission_name(permission) => [principal_name(principal)] }})
|
17
26
|
return self
|
data/lib/kinto_box/version.rb
CHANGED