orchestrate-api 0.1.0 → 0.1.1
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 +7 -1
- data/lib/orchestrate_api/wrapper.rb +3 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e3bbd4f123ac48afea755c82de7a58ea5e8395ea
|
4
|
+
data.tar.gz: 635b497a5aceb8e659c9edd68d5876b7a94a1300
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e5887ad4b4d8f74f57de75af5786a81715fc1596a7a862e7ba41dbdba2c2a1dc04d07f83bf511d09cda32c03ed1e7c11e9fb063eef53bfc20dde34cca082901
|
7
|
+
data.tar.gz: a6b0a90214aa1e03df743482d856a369c96093d7364175849a651c05366fc62e0700ca73ce0cd1058d4f77321aa5bcd295b1e9025cfddf1e6d33751793315c69
|
@@ -20,7 +20,7 @@ module Orchestrate::API
|
|
20
20
|
# * required: { collection }
|
21
21
|
#
|
22
22
|
def search(args)
|
23
|
-
send_request :get, args.merge(path: "
|
23
|
+
send_request :get, args.merge(path: "?query=#{args[:query].gsub(/\s/, '%20')}")
|
24
24
|
end
|
25
25
|
|
26
26
|
# * required: { collection }
|
@@ -50,6 +50,12 @@ module Orchestrate::API
|
|
50
50
|
send_request :delete, args
|
51
51
|
end
|
52
52
|
|
53
|
+
# * required: { collection, key }
|
54
|
+
#
|
55
|
+
def purge_key(args)
|
56
|
+
send_request :delete, args.merge(path: "?purge=true")
|
57
|
+
end
|
58
|
+
|
53
59
|
# -------------------------------------------------------------------------
|
54
60
|
# collection/key/ref
|
55
61
|
|
@@ -30,7 +30,8 @@ module Orchestrate::API
|
|
30
30
|
orch_config = ::ActiveSupport::JSON.decode open(config_file).read
|
31
31
|
@base_url = orch_config['base_url']
|
32
32
|
@user = orch_config['user']
|
33
|
-
@verbose = orch_config['verbose']
|
33
|
+
@verbose = orch_config['verbose'] && orch_config['verbose'] == 'true' ? true
|
34
|
+
: false
|
34
35
|
end
|
35
36
|
|
36
37
|
# Creates the Request object and sends it via the perform method,
|
@@ -71,9 +72,8 @@ module Orchestrate::API
|
|
71
72
|
uri << "/relations/#{args[:kind]}"
|
72
73
|
end
|
73
74
|
end
|
74
|
-
elsif args[:path]
|
75
|
-
uri << args[:path]
|
76
75
|
end
|
76
|
+
uri << args[:path] if args[:path]
|
77
77
|
uri
|
78
78
|
end
|
79
79
|
|