right_api_client 1.5.25 → 1.5.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +3 -0
- data/VERSION +1 -1
- data/lib/right_api_client/client.rb +5 -2
- data/lib/right_api_client/errors.rb +8 -0
- metadata +105 -134
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3eeab13e482a55de8488498410a7d7f2c4c37d7e
|
4
|
+
data.tar.gz: 11bc227243c77b8fd1441b7d14d58cf93f34e5d4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 939995fa3c0e80733933154736695249d56d713b4017a929fe14a8f5701e4f487ed9f95aa6a44d050d9eea66c5019433c5035a4ff6a678bef8a3f549ce77a160
|
7
|
+
data.tar.gz: 68358b59c102309ff9c2a9af59b0e5a73cea3a3f10435acac5343586971291ef1d8b037b50b1f7a82978fdb77c8d086e2fdfdb9b5a4ef3dd8743f03366aece09
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.5.
|
1
|
+
1.5.26
|
@@ -525,11 +525,14 @@ module RightApi
|
|
525
525
|
|
526
526
|
# Determine whether an exception can be fixed by logging in again.
|
527
527
|
#
|
528
|
+
# @param e [ApiError] the exception to check
|
529
|
+
#
|
528
530
|
# @return [Boolean] true if re-login is appropriate
|
531
|
+
#
|
529
532
|
def re_login?(e)
|
530
533
|
auth_error =
|
531
|
-
(e.
|
532
|
-
e.
|
534
|
+
(e.response_code == 403 && e.message =~ %r(.*cookie is expired or invalid)) ||
|
535
|
+
e.response_code == 401
|
533
536
|
|
534
537
|
renewable_creds =
|
535
538
|
(@instance_token || (@email && (@password || @password_base64)) || @refresh_token)
|
metadata
CHANGED
@@ -1,146 +1,127 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_api_client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 5
|
9
|
-
- 25
|
10
|
-
version: 1.5.25
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.5.26
|
11
5
|
platform: ruby
|
12
|
-
authors:
|
6
|
+
authors:
|
13
7
|
- RightScale, Inc.
|
14
8
|
autorequire:
|
15
9
|
bindir: bin
|
16
10
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
type: :runtime
|
11
|
+
date: 2015-01-27 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
22
14
|
name: json
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
hash: 15
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 0
|
32
|
-
version: "1.0"
|
33
|
-
prerelease: false
|
34
|
-
requirement: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.0'
|
36
20
|
type: :runtime
|
37
|
-
name: mime-types
|
38
|
-
version_requirements: &id002 !ruby/object:Gem::Requirement
|
39
|
-
none: false
|
40
|
-
requirements:
|
41
|
-
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
hash: 15
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 0
|
47
|
-
version: "1.0"
|
48
21
|
prerelease: false
|
49
|
-
|
50
|
-
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: mime-types
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.0'
|
51
34
|
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
52
42
|
name: rest-client
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
segments:
|
60
|
-
- 1
|
61
|
-
- 6
|
62
|
-
version: "1.6"
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.6'
|
48
|
+
type: :runtime
|
63
49
|
prerelease: false
|
64
|
-
|
65
|
-
|
66
|
-
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.6'
|
55
|
+
- !ruby/object:Gem::Dependency
|
67
56
|
name: rake
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
hash: 49
|
74
|
-
segments:
|
75
|
-
- 0
|
76
|
-
- 8
|
77
|
-
- 7
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
78
61
|
version: 0.8.7
|
79
|
-
prerelease: false
|
80
|
-
requirement: *id004
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
62
|
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 0.8.7
|
69
|
+
- !ruby/object:Gem::Dependency
|
83
70
|
name: rspec
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
- !ruby/object:Gem::Version
|
89
|
-
hash: 43
|
90
|
-
segments:
|
91
|
-
- 2
|
92
|
-
- 9
|
93
|
-
- 0
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - '='
|
74
|
+
- !ruby/object:Gem::Version
|
94
75
|
version: 2.9.0
|
95
|
-
prerelease: false
|
96
|
-
requirement: *id005
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
76
|
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - '='
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 2.9.0
|
83
|
+
- !ruby/object:Gem::Dependency
|
99
84
|
name: flexmock
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
- !ruby/object:Gem::Version
|
105
|
-
hash: 49
|
106
|
-
segments:
|
107
|
-
- 0
|
108
|
-
- 8
|
109
|
-
- 7
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
110
89
|
version: 0.8.7
|
111
|
-
prerelease: false
|
112
|
-
requirement: *id006
|
113
|
-
- !ruby/object:Gem::Dependency
|
114
90
|
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 0.8.7
|
97
|
+
- !ruby/object:Gem::Dependency
|
115
98
|
name: coveralls
|
116
|
-
|
117
|
-
|
118
|
-
requirements:
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
119
101
|
- - ">="
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
|
122
|
-
|
123
|
-
- 0
|
124
|
-
version: "0"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
125
105
|
prerelease: false
|
126
|
-
|
127
|
-
|
128
|
-
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
description: |2
|
112
|
+
|
129
113
|
The right_api_client gem simplifies the use of RightScale's MultiCloud API.
|
130
114
|
It provides a simple object model of the API resources, and handles all of the
|
131
115
|
fine details involved in making HTTP calls and translating their responses.
|
132
|
-
|
133
116
|
email: rubygems@rightscale.com
|
134
117
|
executables: []
|
135
|
-
|
136
118
|
extensions: []
|
137
|
-
|
138
|
-
extra_rdoc_files:
|
119
|
+
extra_rdoc_files:
|
139
120
|
- LICENSE.txt
|
140
121
|
- README.md
|
141
|
-
files:
|
142
|
-
- .coveralls.yml
|
143
|
-
- .travis.yml
|
122
|
+
files:
|
123
|
+
- ".coveralls.yml"
|
124
|
+
- ".travis.yml"
|
144
125
|
- CHANGELOG.md
|
145
126
|
- Gemfile
|
146
127
|
- Gemfile.lock
|
@@ -160,37 +141,27 @@ files:
|
|
160
141
|
- login_to_client_irb.rb
|
161
142
|
- right_api_client.rconf
|
162
143
|
homepage: https://github.com/rightscale/right_api_client
|
163
|
-
licenses:
|
144
|
+
licenses:
|
164
145
|
- MIT
|
146
|
+
metadata: {}
|
165
147
|
post_install_message:
|
166
148
|
rdoc_options: []
|
167
|
-
|
168
|
-
require_paths:
|
149
|
+
require_paths:
|
169
150
|
- lib
|
170
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
171
|
-
|
172
|
-
requirements:
|
151
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
173
153
|
- - ">="
|
174
|
-
- !ruby/object:Gem::Version
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
version: "0"
|
179
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
-
none: false
|
181
|
-
requirements:
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
157
|
+
requirements:
|
182
158
|
- - ">="
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
|
185
|
-
segments:
|
186
|
-
- 0
|
187
|
-
version: "0"
|
159
|
+
- !ruby/object:Gem::Version
|
160
|
+
version: '0'
|
188
161
|
requirements: []
|
189
|
-
|
190
162
|
rubyforge_project:
|
191
|
-
rubygems_version:
|
163
|
+
rubygems_version: 2.2.2
|
192
164
|
signing_key:
|
193
|
-
specification_version:
|
165
|
+
specification_version: 4
|
194
166
|
summary: RightScale MultiCloud API HTTP Client
|
195
167
|
test_files: []
|
196
|
-
|