nimbu-api 0.2.beta.1 → 0.2.beta.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nimbu-api/endpoints/collections.rb +3 -3
- data/lib/nimbu-api/endpoints/products.rb +3 -3
- data/lib/nimbu-api/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: d1c32e08d744c892b9d92a54e71f26bc62a23185
|
4
|
+
data.tar.gz: 507580e338eb5841a3382ce4b51a837d043cd6fa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4583317f476204e923b9f4e749a712f66bcc2dfc67994c6a6c1b6d44dda0f01fc44c3ad60c2a55bfee8f3c1b8adfc170e6911a79043fe7034137e71cdf29533b
|
7
|
+
data.tar.gz: 2c48c9b645c32ff10768e1ce1a4e25db9042d950963f52ee863ebc001894588a36251a7d971f56d0005c5089c688d8825070e1df523ff610f10faf3396454f8e
|
@@ -13,7 +13,7 @@ module Nimbu
|
|
13
13
|
alias :all :list
|
14
14
|
|
15
15
|
def get(*args)
|
16
|
-
arguments(args, :required => :collection_id)
|
16
|
+
arguments(args, :required => [:collection_id])
|
17
17
|
|
18
18
|
get_request("/collections/#{collection_id}", arguments.params)
|
19
19
|
end
|
@@ -26,14 +26,14 @@ module Nimbu
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def update(*args)
|
29
|
-
arguments(args, :required => :collection_id)
|
29
|
+
arguments(args, :required => [:collection_id])
|
30
30
|
|
31
31
|
patch_request("/collections/#{collection_id}", arguments.params)
|
32
32
|
end
|
33
33
|
alias :edit :update
|
34
34
|
|
35
35
|
def delete(*args)
|
36
|
-
arguments(args, :required => :collection_id)
|
36
|
+
arguments(args, :required => [:collection_id])
|
37
37
|
|
38
38
|
delete_request("/collections/#{collection_id}", arguments.params)
|
39
39
|
end
|
@@ -13,7 +13,7 @@ module Nimbu
|
|
13
13
|
alias :all :list
|
14
14
|
|
15
15
|
def get(*args)
|
16
|
-
arguments(args, :required => :product_id)
|
16
|
+
arguments(args, :required => [:product_id])
|
17
17
|
|
18
18
|
get_request("/products/#{product_id}", arguments.params)
|
19
19
|
end
|
@@ -26,14 +26,14 @@ module Nimbu
|
|
26
26
|
end
|
27
27
|
|
28
28
|
def update(*args)
|
29
|
-
arguments(args, :required => :product_id)
|
29
|
+
arguments(args, :required => [:product_id])
|
30
30
|
|
31
31
|
patch_request("/products/#{product_id}", arguments.params)
|
32
32
|
end
|
33
33
|
alias :edit :update
|
34
34
|
|
35
35
|
def delete(*args)
|
36
|
-
arguments(args, :required => :product_id)
|
36
|
+
arguments(args, :required => [:product_id])
|
37
37
|
|
38
38
|
delete_request("/products/#{product_id}", arguments.params)
|
39
39
|
end
|
data/lib/nimbu-api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nimbu-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.beta.
|
4
|
+
version: 0.2.beta.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Dedene
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-08-
|
11
|
+
date: 2013-08-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: hashie
|