webflow-ruby 0.1.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -2
- data/lib/webflow/client.rb +4 -4
- data/lib/webflow/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: 795515e4a0541b3666b88ebfc14b0c9d0320bd24
|
4
|
+
data.tar.gz: bd901ecbbeefa64aeb9923c85ed1544f0acd6288
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ce4d22046993fd651aac252a325255663cb7b7b70f845e1609063b6f0a18778d0c2a6126859c5eca7c03ab59f85ee1f2f9b44156c9d3e520a548237562e092c
|
7
|
+
data.tar.gz: aab0bd815df76b7c154448bd77236f3e61861417697a9e2dfe040f4865fc0454b86855d73dd32d2e9af20f40cf30be2d2873bf7530c189d4a3c2446a3a78abf6
|
data/.travis.yml
CHANGED
data/lib/webflow/client.rb
CHANGED
@@ -44,14 +44,14 @@ module Webflow
|
|
44
44
|
post("/collections/#{collection_id}/items", fields: data)
|
45
45
|
end
|
46
46
|
|
47
|
-
def update_item(
|
47
|
+
def update_item(item, data)
|
48
48
|
# FIXME: (PS) looks like the API does not have partial updates...
|
49
49
|
base = item.reject {|key, _| ['_id', 'published-by', 'published-on', 'created-on', 'created-by', 'updated-by', 'updated-on', '_cid'].include?(key) }
|
50
|
-
put("/collections/#{
|
50
|
+
put("/collections/#{item['_cid']}/items/#{item['_id']}", fields: base.merge(data))
|
51
51
|
end
|
52
52
|
|
53
|
-
def delete_item(
|
54
|
-
delete("/collections/#{
|
53
|
+
def delete_item(item)
|
54
|
+
delete("/collections/#{item['_cid']}/items/#{item['_id']}")
|
55
55
|
end
|
56
56
|
|
57
57
|
private
|
data/lib/webflow/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webflow-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- phoet
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-03-
|
11
|
+
date: 2017-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|