right_api_client 1.5.27 → 1.5.28
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +4 -0
- data/VERSION +1 -1
- data/lib/right_api_client/client.rb +4 -1
- data/lib/right_api_client/helper.rb +3 -1
- metadata +52 -67
- checksums.yaml +0 -7
data/CHANGELOG.md
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
## Next
|
4
4
|
- Your info here
|
5
5
|
|
6
|
+
## 1.5.28
|
7
|
+
- \#98 Update do_put to add text/plain Content-type
|
8
|
+
- \#97 Added put action for the runnable_binding resource
|
9
|
+
|
6
10
|
## 1.5.27
|
7
11
|
- \#96 Set default timeout to 6 minutes since the RightScale API has a timeout of 5 minutes for calls
|
8
12
|
- \#94 Updating the README and config/login.yml.example with oauth info
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.28
|
@@ -483,9 +483,12 @@ module RightApi
|
|
483
483
|
|
484
484
|
req, res, resource_type, body = nil
|
485
485
|
|
486
|
+
# Altering headers to set Content-Type to text/plain when updating rightscript content
|
487
|
+
put_headers = path =~ %r(^/api/right_scripts/.+/source$) ? headers.merge('Content-Type' => 'text/plain') : headers
|
488
|
+
|
486
489
|
begin
|
487
490
|
retry_request do
|
488
|
-
@rest_client[path].put(params,
|
491
|
+
@rest_client[path].put(params, put_headers) do |response, request, result|
|
489
492
|
req, res = request, response
|
490
493
|
update_cookies(response)
|
491
494
|
update_last_request(request, response)
|
@@ -13,7 +13,9 @@ module RightApi::Helper
|
|
13
13
|
'instances' => {:multi_terminate => 'do_post', :multi_run_executable => 'do_post'},
|
14
14
|
'inputs' => {:multi_update => 'do_put'},
|
15
15
|
'tags' => {:by_tag => 'do_post', :by_resource => 'do_post', :multi_add => 'do_post', :multi_delete =>'do_post'},
|
16
|
-
'backups' => {:cleanup => 'do_post'}
|
16
|
+
'backups' => {:cleanup => 'do_post'},
|
17
|
+
'runnable_bindings' => {:multi_update => 'do_put'},
|
18
|
+
|
17
19
|
}
|
18
20
|
|
19
21
|
# List of resources that are available as instance-facing calls
|
metadata
CHANGED
@@ -1,132 +1,113 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.28
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- RightScale, Inc.
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-09-24 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: json
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &15775520 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
21
|
version: '1.0'
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
|
-
version_requirements:
|
23
|
-
requirements:
|
24
|
-
- - "~>"
|
25
|
-
- !ruby/object:Gem::Version
|
26
|
-
version: '1.0'
|
24
|
+
version_requirements: *15775520
|
27
25
|
- !ruby/object:Gem::Dependency
|
28
26
|
name: mime-types
|
29
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &15774740 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
30
29
|
requirements:
|
31
|
-
- -
|
30
|
+
- - ~>
|
32
31
|
- !ruby/object:Gem::Version
|
33
32
|
version: '1.0'
|
34
33
|
type: :runtime
|
35
34
|
prerelease: false
|
36
|
-
version_requirements:
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.0'
|
35
|
+
version_requirements: *15774740
|
41
36
|
- !ruby/object:Gem::Dependency
|
42
37
|
name: rest-client
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
38
|
+
requirement: &15774060 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
44
40
|
requirements:
|
45
|
-
- -
|
41
|
+
- - ~>
|
46
42
|
- !ruby/object:Gem::Version
|
47
43
|
version: '1.6'
|
48
44
|
type: :runtime
|
49
45
|
prerelease: false
|
50
|
-
version_requirements:
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.6'
|
46
|
+
version_requirements: *15774060
|
55
47
|
- !ruby/object:Gem::Dependency
|
56
48
|
name: rake
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
49
|
+
requirement: &15773220 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - =
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: 0.8.7
|
62
55
|
type: :development
|
63
56
|
prerelease: false
|
64
|
-
version_requirements:
|
65
|
-
requirements:
|
66
|
-
- - '='
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: 0.8.7
|
57
|
+
version_requirements: *15773220
|
69
58
|
- !ruby/object:Gem::Dependency
|
70
59
|
name: rspec
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &15772120 !ruby/object:Gem::Requirement
|
61
|
+
none: false
|
72
62
|
requirements:
|
73
|
-
- -
|
63
|
+
- - =
|
74
64
|
- !ruby/object:Gem::Version
|
75
65
|
version: 2.9.0
|
76
66
|
type: :development
|
77
67
|
prerelease: false
|
78
|
-
version_requirements:
|
79
|
-
requirements:
|
80
|
-
- - '='
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: 2.9.0
|
68
|
+
version_requirements: *15772120
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: flexmock
|
85
|
-
requirement: !ruby/object:Gem::Requirement
|
71
|
+
requirement: &15787100 !ruby/object:Gem::Requirement
|
72
|
+
none: false
|
86
73
|
requirements:
|
87
|
-
- -
|
74
|
+
- - =
|
88
75
|
- !ruby/object:Gem::Version
|
89
76
|
version: 0.8.7
|
90
77
|
type: :development
|
91
78
|
prerelease: false
|
92
|
-
version_requirements:
|
93
|
-
requirements:
|
94
|
-
- - '='
|
95
|
-
- !ruby/object:Gem::Version
|
96
|
-
version: 0.8.7
|
79
|
+
version_requirements: *15787100
|
97
80
|
- !ruby/object:Gem::Dependency
|
98
81
|
name: coveralls
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
82
|
+
requirement: &15786180 !ruby/object:Gem::Requirement
|
83
|
+
none: false
|
100
84
|
requirements:
|
101
|
-
- -
|
85
|
+
- - ! '>='
|
102
86
|
- !ruby/object:Gem::Version
|
103
87
|
version: '0'
|
104
88
|
type: :development
|
105
89
|
prerelease: false
|
106
|
-
version_requirements:
|
107
|
-
requirements:
|
108
|
-
- - ">="
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '0'
|
90
|
+
version_requirements: *15786180
|
111
91
|
- !ruby/object:Gem::Dependency
|
112
92
|
name: pry
|
113
|
-
requirement: !ruby/object:Gem::Requirement
|
93
|
+
requirement: &15785100 !ruby/object:Gem::Requirement
|
94
|
+
none: false
|
114
95
|
requirements:
|
115
|
-
- -
|
96
|
+
- - ! '>='
|
116
97
|
- !ruby/object:Gem::Version
|
117
98
|
version: '0'
|
118
99
|
type: :development
|
119
100
|
prerelease: false
|
120
|
-
version_requirements:
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
version: '0'
|
125
|
-
description: |2
|
101
|
+
version_requirements: *15785100
|
102
|
+
description: ! '
|
103
|
+
|
104
|
+
The right_api_client gem simplifies the use of RightScale''s MultiCloud API.
|
126
105
|
|
127
|
-
The right_api_client gem simplifies the use of RightScale's MultiCloud API.
|
128
106
|
It provides a simple object model of the API resources, and handles all of the
|
107
|
+
|
129
108
|
fine details involved in making HTTP calls and translating their responses.
|
109
|
+
|
110
|
+
'
|
130
111
|
email: rubygems@rightscale.com
|
131
112
|
executables: []
|
132
113
|
extensions: []
|
@@ -134,8 +115,8 @@ extra_rdoc_files:
|
|
134
115
|
- LICENSE.txt
|
135
116
|
- README.md
|
136
117
|
files:
|
137
|
-
-
|
138
|
-
-
|
118
|
+
- .coveralls.yml
|
119
|
+
- .travis.yml
|
139
120
|
- CHANGELOG.md
|
140
121
|
- Gemfile
|
141
122
|
- Gemfile.lock
|
@@ -157,25 +138,29 @@ files:
|
|
157
138
|
homepage: https://github.com/rightscale/right_api_client
|
158
139
|
licenses:
|
159
140
|
- MIT
|
160
|
-
metadata: {}
|
161
141
|
post_install_message:
|
162
142
|
rdoc_options: []
|
163
143
|
require_paths:
|
164
144
|
- lib
|
165
145
|
required_ruby_version: !ruby/object:Gem::Requirement
|
146
|
+
none: false
|
166
147
|
requirements:
|
167
|
-
- -
|
148
|
+
- - ! '>='
|
168
149
|
- !ruby/object:Gem::Version
|
169
150
|
version: '0'
|
151
|
+
segments:
|
152
|
+
- 0
|
153
|
+
hash: -65157902423218437
|
170
154
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
155
|
+
none: false
|
171
156
|
requirements:
|
172
|
-
- -
|
157
|
+
- - ! '>='
|
173
158
|
- !ruby/object:Gem::Version
|
174
159
|
version: '0'
|
175
160
|
requirements: []
|
176
161
|
rubyforge_project:
|
177
|
-
rubygems_version:
|
162
|
+
rubygems_version: 1.8.11
|
178
163
|
signing_key:
|
179
|
-
specification_version:
|
164
|
+
specification_version: 3
|
180
165
|
summary: RightScale MultiCloud API HTTP Client
|
181
166
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 94b49a3bb3d9527ab20246b6fb3207c45adf2c1c
|
4
|
-
data.tar.gz: 371e6f5e1cd65d28be220d7b5cb227a3ae83abaf
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 875e0cf8a86df6b4f867357a062240c31043220d3c67352abc786862485e17163264e6eb06a95b0291fc6a92a5152a0e9bfde01a9d23e97b7098883f10ad08f1
|
7
|
-
data.tar.gz: cb772ee333b0366ef18dc010e9c1d464f09c653b53f9be48c67529dd76b935c8936ceabf2ef8c017ec984b78f9f201a8fb6506b01933c765ab6df1c3cfaac1cc
|