kinto_box 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ecbcfaa125ebe58cea518e1c03b2c14fa382668e
4
- data.tar.gz: 53954186d7ed7373595f0ad85e7d4841befcb2c3
3
+ metadata.gz: 25dfc7308afd0409761d01f84aeef74883b0fefd
4
+ data.tar.gz: a972e3e986a9effb39eabc9fce5aca542347209d
5
5
  SHA512:
6
- metadata.gz: 0ced28f450f0b471f728e7d27156e95625165edf79a1ff49066d0315be9c1b78631c1e0386f7ee47697473e57c0aa710769c9ed01c07372ff2d335b4ba5d390a
7
- data.tar.gz: 6c861c2bfe981f94a92708f069040936b8089a36f2ca40625f9beee52873d4cbd62d26e2435e6ddbae56eeb21f6e88f613030c02439972c4098050a5634ce475
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
@@ -31,5 +31,9 @@ module KintoBox
31
31
  record_id = resp['data']['id']
32
32
  record(record_id, true)
33
33
  end
34
+
35
+ def delete_records
36
+ @kinto_client.delete("#{@url_path}/records")
37
+ end
34
38
  end
35
39
  end
@@ -1,3 +1,3 @@
1
1
  module KintoBox
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
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.3
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-29 00:00:00.000000000 Z
11
+ date: 2016-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty