zeus_ruby 0.4.3 → 0.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +3 -5
- data/lib/zeus/v1/client/multiplayer.rb +0 -7
- data/lib/zeus/v1/client/secrets.rb +1 -1
- data/lib/zeus/v1/client/service_base.rb +1 -1
- data/lib/zeus/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e805e97657af2abf9bf6587e57384099f75bed8aaff2806e7acb794bbf7ed78f
|
4
|
+
data.tar.gz: ddc2f12893d2f59058459f5c94994a0add46554c37fca9d5cdd235d2b653a4d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dfc2f449f73de1e6fa85d0798e24d3276a731e3baafdf79665bd9426df9cc0fc185bb32bda94e7d77323ea0ee6bdc0d0b4b549b445fe4f0559a5e58d266a54d6
|
7
|
+
data.tar.gz: 60d1049c3a7e2445784f7d5b5f70d9b645814c5e3edca747cd67e54ce83e953b42c99b4780f1f21d3bbd9eda07b869fd0dbcb9913065d233fbec1e487f30a37c
|
data/README.md
CHANGED
@@ -1,15 +1,13 @@
|
|
1
1
|
# Zeus
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
3
|
+
Zeus Ruby SDK
|
6
4
|
|
7
5
|
## Installation
|
8
6
|
|
9
7
|
Add this line to your application's Gemfile:
|
10
8
|
|
11
9
|
```ruby
|
12
|
-
gem 'zeus
|
10
|
+
gem 'zeus'
|
13
11
|
```
|
14
12
|
|
15
13
|
And then execute:
|
@@ -18,7 +16,7 @@ And then execute:
|
|
18
16
|
|
19
17
|
Or install it yourself as:
|
20
18
|
|
21
|
-
$ gem install zeus
|
19
|
+
$ gem install zeus
|
22
20
|
|
23
21
|
## Usage
|
24
22
|
|
@@ -63,15 +63,8 @@ module Zeus::V1::Client
|
|
63
63
|
end
|
64
64
|
|
65
65
|
def create_node(node)
|
66
|
-
|
67
|
-
puts("*"*200)
|
68
|
-
puts("create_node")
|
69
|
-
puts(node.inspect)
|
70
|
-
puts("*"*200)
|
71
66
|
resp = self.class.post("/api/v1/nodes", body: {node: node}.to_json, headers: self.get_headers).parsed_response
|
72
67
|
if resp["success"] == true
|
73
|
-
puts("resp")
|
74
|
-
puts(resp["object"].inspect)
|
75
68
|
return Node.new(resp["object"])
|
76
69
|
else
|
77
70
|
return nil
|
@@ -17,7 +17,7 @@ module Zeus::V1::Client
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def set_secret(key, value)
|
20
|
-
self.class.post("/api/v1/secrets", body: {secret: {key: key, value: value}}, headers: self.get_headers)
|
20
|
+
self.class.post("/api/v1/secrets", body: {secret: {key: key, value: value}}.to_json, headers: self.get_headers)
|
21
21
|
end
|
22
22
|
|
23
23
|
def delete_secret(key)
|
@@ -49,7 +49,7 @@ module Zeus::V1::Client
|
|
49
49
|
end
|
50
50
|
|
51
51
|
def create_project_environment(project_environment)
|
52
|
-
self.class.post("/api/v1/project_environments", body: {project_environment: project_environment}, headers: self.get_headers)
|
52
|
+
self.class.post("/api/v1/project_environments", body: {project_environment: project_environment}.to_json, headers: self.get_headers)
|
53
53
|
end
|
54
54
|
|
55
55
|
def destroy_project_environment(id)
|
data/lib/zeus/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zeus_ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Eric Campbell
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-03-
|
11
|
+
date: 2021-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|