orchestrate-api 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/orchestrate_api/procedural.rb +2 -1
- data/lib/orchestrate_api/wrapper.rb +3 -3
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3fb3771970c548ce9bf773f25b275f6e94c7268e
|
|
4
|
+
data.tar.gz: c539506d81454dac8eca08293d67631c72582e31
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2f0a98c486538ab8ce98a8bf0711bc20acb6b521bc83154a0f51a7d4405563b26838f2b79e285023706db26023df2b34d89fbf98096b3762d32ed6264698cece
|
|
7
|
+
data.tar.gz: 35556511d1c8d07534184081c51799b486d15212f54a8f5f4e5170a31bb5220826952c931ced3a3b48440a9b433270ffc6d1b0441b6bf18753ea5b824c27c2ce
|
|
@@ -12,6 +12,7 @@ module Orchestrate::API
|
|
|
12
12
|
# collection
|
|
13
13
|
|
|
14
14
|
# * required: { collection }
|
|
15
|
+
# * optional: { path }, which should have been called <em>params</em>
|
|
15
16
|
#
|
|
16
17
|
def list(args)
|
|
17
18
|
send_request :get, args
|
|
@@ -112,7 +113,7 @@ module Orchestrate::API
|
|
|
112
113
|
# * required: { collection, key, kind, to_collection, to_key }
|
|
113
114
|
#
|
|
114
115
|
def delete_graph(args)
|
|
115
|
-
send_request :
|
|
116
|
+
send_request :delete, args.merge(path: "?purge=true")
|
|
116
117
|
end
|
|
117
118
|
|
|
118
119
|
end
|
|
@@ -66,10 +66,10 @@ module Orchestrate::API
|
|
|
66
66
|
end
|
|
67
67
|
end
|
|
68
68
|
elsif args[:kind]
|
|
69
|
-
if method == :
|
|
70
|
-
uri << "/relation/#{args[:kind]}/#{args[:to_collection]}/#{args[:to_key]}"
|
|
71
|
-
else
|
|
69
|
+
if method == :get
|
|
72
70
|
uri << "/relations/#{args[:kind]}"
|
|
71
|
+
else
|
|
72
|
+
uri << "/relation/#{args[:kind]}/#{args[:to_collection]}/#{args[:to_key]}"
|
|
73
73
|
end
|
|
74
74
|
end
|
|
75
75
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: orchestrate-api
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Carrasquer
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2014-
|
|
11
|
+
date: 2014-03-01 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: httparty
|
|
@@ -38,7 +38,7 @@ dependencies:
|
|
|
38
38
|
- - ">="
|
|
39
39
|
- !ruby/object:Gem::Version
|
|
40
40
|
version: '0'
|
|
41
|
-
description:
|
|
41
|
+
description: Wrapper for the Orchestrate.io REST API
|
|
42
42
|
email: jimcar@aracnet.com
|
|
43
43
|
executables: []
|
|
44
44
|
extensions: []
|