kinto_box 0.1.3 → 0.1.4
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 +4 -4
- data/lib/kinto_box/kinto_bucket.rb +8 -0
- data/lib/kinto_box/kinto_collection.rb +4 -0
- data/lib/kinto_box/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25dfc7308afd0409761d01f84aeef74883b0fefd
|
4
|
+
data.tar.gz: a972e3e986a9effb39eabc9fce5aca542347209d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6180e855f755b27332275e158bd3e4e1e589a9ff0c70f571983df6a424dd2403d301180e72616452c1718edfd9a22d80975cb9f41d24c630b384b54289add6bc
|
7
|
+
data.tar.gz: 8f1fbff58a6d5cac0137da38841aea4b3514465935583848237d4632fc6d9f6e5383e97843d9f6a9c5cba3a093e235c8d0e62b5f770ee3dded52445d6346e46b
|
@@ -15,6 +15,10 @@ module KintoBox
|
|
15
15
|
@url_path = "/buckets/#{@id}"
|
16
16
|
end
|
17
17
|
|
18
|
+
def list_collections
|
19
|
+
@kinto_client.get("#{@url_path}/collections")
|
20
|
+
end
|
21
|
+
|
18
22
|
def collection (collection_id)
|
19
23
|
@collection = KintoCollection.new(self, collection_id)
|
20
24
|
@collection
|
@@ -24,5 +28,9 @@ module KintoBox
|
|
24
28
|
@kinto_client.post("#{@url_path}/collections", { 'data' => { 'id' => collection_id}})
|
25
29
|
collection(collection_id)
|
26
30
|
end
|
31
|
+
|
32
|
+
def delete_collections
|
33
|
+
@kinto_client.delete("#{@url_path}/collections")
|
34
|
+
end
|
27
35
|
end
|
28
36
|
end
|
data/lib/kinto_box/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kinto_box
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kavya Sukumar
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-06
|
11
|
+
date: 2016-07-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|