kinto_box 0.1.8 → 0.1.9

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: cd63b799d4e03bcc37de77e6e9669c29ca7f403e
4
- data.tar.gz: e24e02470648c46c9b45ed357df0cff3e19f243b
3
+ metadata.gz: 95c25ba91fa51e81435956573398710adf7fb07d
4
+ data.tar.gz: 4fb05eb05002a8185ae79f08bec160ec5481c2f3
5
5
  SHA512:
6
- metadata.gz: 300f47c897217f481d07ba653a1065693af058545b6c3b2fe27ccea491ab044a8c576b1b0f6518385d33e45fdf03fe801e54a00f6ce659fb61f675a78ce44760
7
- data.tar.gz: 1f1b80c4135e17c9da8c81ead68ebcd593952159331dc4713ca4a3fce2036df92c668b367317d8e3f7c576a2e14b037afde2c0f4b1f53a41b9862dfd4c9baf08
6
+ metadata.gz: 0d6d6fd752ade740fee3ab5720e137da0d7c9e491bd8ec99f65d001f052fd162cb177602333ad8d5d5aca25908e9f08fca1d7da6a71799b707b72b937582fccf
7
+ data.tar.gz: 8603d23390b54147b5c197848ec69d2c8e8f6b507e1db51c6002a558e834fb52655fbc9fd6e7c1c31ee468f16b5cf351c52173db5ae38b0d25cb6695683c7569
@@ -16,12 +16,12 @@ module KintoBox
16
16
  @url_path = "/buckets/#{bucket.id}/collections/#{@id}"
17
17
  end
18
18
 
19
- def record (record_id, return_ref = false)
19
+ def record (record_id)
20
20
  record = KintoRecord.new(self, record_id)
21
- return record if return_ref
22
- record.info
21
+ record
23
22
  end
24
23
 
24
+
25
25
  def list_records(filters = nil, sort = nil)
26
26
  query_string = '?'
27
27
  query_string += filters unless filters.nil?
@@ -34,7 +34,7 @@ module KintoBox
34
34
  def create_record(data)
35
35
  resp = @kinto_client.post("#{@url_path}/records", { 'data' => data})
36
36
  record_id = resp['data']['id']
37
- record(record_id, true)
37
+ record(record_id)
38
38
  end
39
39
 
40
40
  def delete_records
@@ -1,3 +1,3 @@
1
1
  module KintoBox
2
- VERSION = "0.1.8"
2
+ VERSION = "0.1.9"
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.8
4
+ version: 0.1.9
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-07-26 00:00:00.000000000 Z
11
+ date: 2016-08-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty