tutum-api 0.0.2 → 0.0.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/tutum_actions.rb +1 -1
- data/lib/tutum_api.rb +9 -5
- data/lib/tutum_node_clusters.rb +1 -1
- data/lib/tutum_node_types.rb +1 -1
- data/lib/tutum_providers.rb +1 -2
- data/lib/tutum_regions.rb +1 -1
- data/lib/tutum_services.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fadcd0b316aaf3e2a15cd5f5c92b3a4231c53bbc
|
4
|
+
data.tar.gz: 8d1c6c2170031082bf0b4e7f14a2eba4d596fb73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3bf4eb0c47dc5cd3c356c60c0c207e7e62718c9e8695ec08637c481993de6ea8c1a0950eb37ea2d3d350e4a1a956dc4172626549c8f745b90ad8c564e7029d30
|
7
|
+
data.tar.gz: d359fdb2aa9a22209de767655201c29bf36e8a7195431dfe98b28bea4fbedd51d1b503c41007aea26d25a343454066a7a3d29b1e003f146c04c8a443da92d1b3
|
data/lib/tutum_actions.rb
CHANGED
data/lib/tutum_api.rb
CHANGED
@@ -15,18 +15,22 @@ class TutumApi
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def http_get(path)
|
18
|
-
RestClient.get(url(path), headers)
|
18
|
+
response = RestClient.get(url(path), headers)
|
19
|
+
JSON.parse(response)
|
19
20
|
end
|
20
21
|
|
21
22
|
def http_post(path, content={})
|
22
|
-
RestClient.post(url(path), content.to_json, headers)
|
23
|
+
response = RestClient.post(url(path), content.to_json, headers)
|
24
|
+
JSON.parse(response)
|
23
25
|
end
|
24
26
|
|
25
|
-
def
|
26
|
-
RestClient.
|
27
|
+
def http_patch(path, content={})
|
28
|
+
response = RestClient.patch(url(path), content.to_json, headers)
|
29
|
+
JSON.parse(response)
|
27
30
|
end
|
28
31
|
|
29
32
|
def http_delete(path)
|
30
|
-
RestClient.delete(url(path), headers)
|
33
|
+
response = RestClient.delete(url(path), headers)
|
34
|
+
JSON.parse(response)
|
31
35
|
end
|
32
36
|
end
|
data/lib/tutum_node_clusters.rb
CHANGED
data/lib/tutum_node_types.rb
CHANGED
data/lib/tutum_providers.rb
CHANGED
data/lib/tutum_regions.rb
CHANGED
data/lib/tutum_services.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tutum-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josie Wright
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2014-10-
|
13
|
+
date: 2014-10-31 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rest-client
|
@@ -113,7 +113,7 @@ files:
|
|
113
113
|
- lib/tutum_providers.rb
|
114
114
|
- lib/tutum_regions.rb
|
115
115
|
- lib/tutum_services.rb
|
116
|
-
homepage:
|
116
|
+
homepage: https://github.com/jozw/tutum-api
|
117
117
|
licenses: []
|
118
118
|
metadata: {}
|
119
119
|
post_install_message:
|
@@ -135,5 +135,5 @@ rubyforge_project:
|
|
135
135
|
rubygems_version: 2.2.2
|
136
136
|
signing_key:
|
137
137
|
specification_version: 4
|
138
|
-
summary: A Ruby wrapper
|
138
|
+
summary: A Ruby wrapper for the Tutum API
|
139
139
|
test_files: []
|