kinto_box 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6312e9a59c93988f2cf32a545c94a95fa68c8682
4
- data.tar.gz: f3e34f77f5e903f3952ab91f80295850b4d3f95b
3
+ metadata.gz: 5246de9ec861fb33f83486fe3f153dfbd184ced5
4
+ data.tar.gz: 6f594d8293751c6ce803a17b9107afbeffee5b2c
5
5
  SHA512:
6
- metadata.gz: 5b109553b471bf1c4baecf2f24fa82cc4d50bb1cfe2c45c3cb86ad4c2082f70ed99c0de66f5318049a2f916a1e3e1a71d9330c5437f3cf8728760f68540517b5
7
- data.tar.gz: 8d91c8afc2ba0a95149ee8de0fed7b44908efa344a1c3f03ba1cc7548e874513a60f5750cfc78e420dab60f24e0251790827a5f9bb46cf23ac85c45d9a87a004
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
@@ -1,3 +1,3 @@
1
1
  module KintoBox
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kinto_box
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kavya Sukumar