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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3873b938b7c7c99cb598df8216deda6e3113545ebb7bd6115a2e0d9b3b981cf6
4
- data.tar.gz: 46cc6dc477c2c5438e6da37f28e98a40144e440026cc9b994fefe8eec46c73f7
3
+ metadata.gz: e805e97657af2abf9bf6587e57384099f75bed8aaff2806e7acb794bbf7ed78f
4
+ data.tar.gz: ddc2f12893d2f59058459f5c94994a0add46554c37fca9d5cdd235d2b653a4d3
5
5
  SHA512:
6
- metadata.gz: d55296fb48980e4edbf2335891773c4afa77f09c93131513e155c1ac5687ac4c848aa92c220bcc1e7b6a0566ce742088222d919f2eb00c3758282cc82ce07027
7
- data.tar.gz: b68355a4e882ed7a7c5025e940fb1e66eb5b207797eb8a238727d172f192871a7a05ce45ce92b3d8ead0f14020fa502b018882728c1a80711b1ba0cf8784a7f4
6
+ metadata.gz: dfc2f449f73de1e6fa85d0798e24d3276a731e3baafdf79665bd9426df9cc0fc185bb32bda94e7d77323ea0ee6bdc0d0b4b549b445fe4f0559a5e58d266a54d6
7
+ data.tar.gz: 60d1049c3a7e2445784f7d5b5f70d9b645814c5e3edca747cd67e54ce83e953b42c99b4780f1f21d3bbd9eda07b869fd0dbcb9913065d233fbec1e487f30a37c
data/README.md CHANGED
@@ -1,15 +1,13 @@
1
1
  # Zeus
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/zeus/sdk`. To experiment with that code, run `bin/console` for an interactive prompt.
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-ruby'
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-sdk
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
@@ -1,3 +1,3 @@
1
1
  module Zeus
2
- VERSION = "0.4.3"
2
+ VERSION = "0.4.4"
3
3
  end
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.3
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-08 00:00:00.000000000 Z
11
+ date: 2021-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty