plutora_rest 0.0.12 → 0.0.13

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1e443b232b12421a9cedd3d1a8fea73dfc4e32a3
4
- data.tar.gz: 3a006cfffb65f7064040fb74e638abb1d79385b8
3
+ metadata.gz: d6218e26188e606f7bd9894d4b31dc8b834c328f
4
+ data.tar.gz: f89fc6d43aa4623ad66acff40614c335683c8bb9
5
5
  SHA512:
6
- metadata.gz: 80f004ccb32d2019d3245398035bad61a7c9e0922987da47977ade0053531c1512faf8b7c4448807f4a2d4a780fbe6a2eeba61722e288eacbf1573d85a6765b5
7
- data.tar.gz: f6b36aca4091bc7ba314caaa109832c55ff5a04fa54413c3c8496496c0a475220ab41691bc60ee09ddbe49edc37dc5c92ef406e8771c40efae5b208dc7935c89
6
+ metadata.gz: 2a03a6cdd26306b4a90d06b631473502d532db23ae5cce74791167386bc4b5f2f267cddada6bd03e72affa530aab2f881ba36b27545d4bcaf41b9309136c60f5
7
+ data.tar.gz: 06b13403ca1d5f7bffafaaf45a8c6345ad862987172d90c5c03fbd06ac13d554487b321c41dc894cb5bf74dda31dc4d98e58e74645884fcc05db64a06208433a
@@ -36,5 +36,81 @@ module PlutoraRest
36
36
  return resp
37
37
  end
38
38
 
39
+ #---- Get Releases By Id Additional Information ----
40
+ def get_ReleasesById_AdditionalInformation(opts = {})
41
+ if opts[:id] == nil
42
+ raise "Release By Id Additional Information requires an ID value!"
43
+ end
44
+
45
+ url "#{@base_url}releases/#{opts[:id]}/additionalInformation"
46
+
47
+ headers = {'Authorization' => 'Bearer ' + (opts[:token] == nil ? @token : opts[:token])}
48
+
49
+ resp=formatResp({:xml => plutora_get({:url => url, :headers => headers})})
50
+ return resp
51
+ end
52
+
53
+ #---- Get Release By Id Systems ----
54
+ def get_ReleaseById_Systems(opts = {})
55
+ if opts[:id] == nil
56
+ raise "Release By Id Systems requires an ID value!"
57
+ end
58
+
59
+ url "#{@base_url}releases/#{opts[:id]}/system"
60
+
61
+ headers = {'Authorization' => 'Bearer ' + (opts[:token] == nil ? @token : opts[:token])}
62
+
63
+ resp=formatResp({:xml => plutora_get({:url => url, :headers => headers})})
64
+ return resp
65
+ end
66
+
67
+ #--------------------------
68
+ #-------- PUT CALL --------
69
+ #--------------------------
70
+
71
+ #---- Put Releases By Id ----
72
+ def update_ReleasesById(opts = {})
73
+ if opts[:id] == nil
74
+ raise "Update Releases By Id requires an ID value!"
75
+ end
76
+ if opts[:params] == nil
77
+ raise "Update Releasee By Id requires Parameters!"
78
+ end
79
+
80
+ url = "#{@base_url}releases/#{opts[:id]}"
81
+
82
+ headers = {
83
+ 'Authorization' => "Bearer #{(opts[:token] == nil ? @token : opts[:token])}",
84
+ 'Accept' => 'application/json',
85
+ 'Content-Type' => 'application/x-www-form-urlencoded'
86
+ #'Content-Type' => 'application/json'
87
+ }
88
+
89
+ resp=plutora_put({:url => url, :params => opts[:params], :headers => headers})
90
+ return (resp.code == 204 ? true : false)
91
+ end
92
+
93
+ #---- Put Releases By Id Additional Information ----
94
+ def update_ReleasesById_AdditionalInformation(opts = {})
95
+ if opts[:id] == nil
96
+ raise "Update Releases By Id requires an ID value!"
97
+ end
98
+ if opts[:params] == nil
99
+ raise "Update Releasee By Id requires Parameters!"
100
+ end
101
+
102
+ url = "#{@base_url}releases/#{opts[:id]}/additionalInformation"
103
+
104
+ headers = {
105
+ 'Authorization' => "Bearer #{(opts[:token] == nil ? @token : opts[:token])}",
106
+ 'Accept' => 'application/json',
107
+ 'Content-Type' => 'application/x-www-form-urlencoded'
108
+ #'Content-Type' => 'application/json'
109
+ }
110
+
111
+ resp=plutora_put({:url => url, :params => opts[:params], :headers => headers})
112
+ return (resp.code == 204 ? true : false)
113
+ end
114
+
39
115
  end
40
116
  end
@@ -1,3 +1,3 @@
1
1
  module PlutoraRest
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: plutora_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - ProjectYeti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-10 00:00:00.000000000 Z
12
+ date: 2015-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -71,14 +71,14 @@ dependencies:
71
71
  name: activesupport-core-ext
72
72
  requirement: !ruby/object:Gem::Requirement
73
73
  requirements:
74
- - - '='
74
+ - - "<="
75
75
  - !ruby/object:Gem::Version
76
76
  version: 4.0.0.2
77
77
  type: :runtime
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - '='
81
+ - - "<="
82
82
  - !ruby/object:Gem::Version
83
83
  version: 4.0.0.2
84
84
  description: This is a specialized utility for the Plutora platform, that utilizes