right_api_client 1.5.18 → 1.5.19
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.
- data/CHANGELOG.md +5 -1
- data/Gemfile +0 -2
- data/Gemfile.lock +1 -9
- data/lib/right_api_client/client.rb +3 -2
- data/lib/right_api_client/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
# CHANGELOG.md
|
|
2
2
|
|
|
3
|
+
## 1.5.19
|
|
4
|
+
- \#38 Specify `:allow_nan => true` in calls to `JSON.parse` so we don't choke on NAN values.
|
|
5
|
+
- \#60 Make exception [namespace change](https://github.com/rightscale/right_api_client/commit/84f477907eef0a583ee5bec0ee5336309d933c75) fully backwards compatible.
|
|
6
|
+
|
|
3
7
|
## 1.5.18
|
|
4
|
-
-
|
|
8
|
+
- \#62 Implement to_ary in Resource class to avoid method_missing transforming it into a post call
|
|
5
9
|
(for example, when doing something like 'puts @client.clouds' in Ruby 1.9+)
|
|
6
10
|
|
|
7
11
|
## 1.5.17
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
right_api_client (1.5.
|
|
4
|
+
right_api_client (1.5.19)
|
|
5
5
|
json (~> 1.0)
|
|
6
6
|
mime-types (~> 1.0)
|
|
7
7
|
rest-client (~> 1.6)
|
|
@@ -9,7 +9,6 @@ PATH
|
|
|
9
9
|
GEM
|
|
10
10
|
remote: https://rubygems.org/
|
|
11
11
|
specs:
|
|
12
|
-
coderay (1.1.0)
|
|
13
12
|
columnize (0.3.6)
|
|
14
13
|
debugger (1.6.6)
|
|
15
14
|
columnize (>= 0.3.1)
|
|
@@ -22,12 +21,7 @@ GEM
|
|
|
22
21
|
json (1.8.1)
|
|
23
22
|
linecache (0.46)
|
|
24
23
|
rbx-require-relative (> 0.0.4)
|
|
25
|
-
method_source (0.8.2)
|
|
26
24
|
mime-types (1.25.1)
|
|
27
|
-
pry (0.9.12.6)
|
|
28
|
-
coderay (~> 1.0)
|
|
29
|
-
method_source (~> 0.8)
|
|
30
|
-
slop (~> 3.4)
|
|
31
25
|
rake (0.8.7)
|
|
32
26
|
rbx-require-relative (0.0.9)
|
|
33
27
|
rest-client (1.6.7)
|
|
@@ -48,7 +42,6 @@ GEM
|
|
|
48
42
|
simplecov (0.4.2)
|
|
49
43
|
simplecov-html (~> 0.4.4)
|
|
50
44
|
simplecov-html (0.4.5)
|
|
51
|
-
slop (3.5.0)
|
|
52
45
|
|
|
53
46
|
PLATFORMS
|
|
54
47
|
ruby
|
|
@@ -57,7 +50,6 @@ DEPENDENCIES
|
|
|
57
50
|
bundler (~> 1.0)
|
|
58
51
|
debugger
|
|
59
52
|
flexmock (= 0.8.7)
|
|
60
|
-
pry
|
|
61
53
|
rake (= 0.8.7)
|
|
62
54
|
right_api_client!
|
|
63
55
|
rspec (= 2.9.0)
|
|
@@ -10,6 +10,7 @@ require File.expand_path('../resource', __FILE__)
|
|
|
10
10
|
require File.expand_path('../resource_detail', __FILE__)
|
|
11
11
|
require File.expand_path('../resources', __FILE__)
|
|
12
12
|
require File.expand_path('../errors', __FILE__)
|
|
13
|
+
require File.expand_path('../exceptions', __FILE__)
|
|
13
14
|
|
|
14
15
|
# RightApiClient has the generic get/post/delete/put calls that are used by resources
|
|
15
16
|
module RightApi
|
|
@@ -271,7 +272,7 @@ module RightApi
|
|
|
271
272
|
data = if resource_type == 'text'
|
|
272
273
|
{ 'text' => body }
|
|
273
274
|
else
|
|
274
|
-
JSON.parse(body)
|
|
275
|
+
JSON.parse(body, :allow_nan => true)
|
|
275
276
|
end
|
|
276
277
|
|
|
277
278
|
[resource_type, path, data]
|
|
@@ -307,7 +308,7 @@ module RightApi
|
|
|
307
308
|
# therefore, ResourceDetail objects needs to be returned
|
|
308
309
|
if response.code == 200 && response.headers[:content_type].index('rightscale')
|
|
309
310
|
resource_type = get_resource_type(response.headers[:content_type])
|
|
310
|
-
data = JSON.parse(response)
|
|
311
|
+
data = JSON.parse(response, :allow_nan => true)
|
|
311
312
|
# Resource_tag is returned after querying tags.by_resource or tags.by_tags.
|
|
312
313
|
# You cannot do a show on a resource_tag, but that is basically what we want to do
|
|
313
314
|
data.map { |obj|
|
metadata
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: right_api_client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
hash:
|
|
4
|
+
hash: 37
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 1
|
|
8
8
|
- 5
|
|
9
|
-
-
|
|
10
|
-
version: 1.5.
|
|
9
|
+
- 19
|
|
10
|
+
version: 1.5.19
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- RightScale, Inc.
|
|
@@ -15,7 +15,7 @@ autorequire:
|
|
|
15
15
|
bindir: bin
|
|
16
16
|
cert_chain: []
|
|
17
17
|
|
|
18
|
-
date: 2014-05
|
|
18
|
+
date: 2014-06-05 00:00:00 Z
|
|
19
19
|
dependencies:
|
|
20
20
|
- !ruby/object:Gem::Dependency
|
|
21
21
|
type: :runtime
|