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 +4 -4
- data/lib/kinto_box/kinto_collection.rb +4 -4
- 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: 95c25ba91fa51e81435956573398710adf7fb07d
|
4
|
+
data.tar.gz: 4fb05eb05002a8185ae79f08bec160ec5481c2f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
19
|
+
def record (record_id)
|
20
20
|
record = KintoRecord.new(self, record_id)
|
21
|
-
|
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
|
37
|
+
record(record_id)
|
38
38
|
end
|
39
39
|
|
40
40
|
def delete_records
|
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.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-
|
11
|
+
date: 2016-08-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|