right_api_client 1.5.17 → 1.5.18
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +5 -1
- data/Gemfile +2 -0
- data/Gemfile.lock +9 -1
- data/lib/right_api_client/resources.rb +6 -0
- data/lib/right_api_client/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG.md
CHANGED
@@ -1,8 +1,12 @@
|
|
1
1
|
# CHANGELOG.md
|
2
2
|
|
3
|
+
## 1.5.18
|
4
|
+
- #62 Implement to_ary in Resource class to avoid method_missing transforming it into a post call
|
5
|
+
(for example, when doing something like 'puts @client.clouds' in Ruby 1.9+)
|
6
|
+
|
3
7
|
## 1.5.17
|
4
8
|
- \#61 Fix for REST client timeouts changing on redirect.
|
5
|
-
- \#61 Also added rest_client_class initializer parameter
|
9
|
+
- \#61 Also added rest_client_class initializer parameter to enable using different REST client implementations with better logging.
|
6
10
|
|
7
11
|
## 1.5.16
|
8
12
|
- \#57 Sapphire added optional support for querying a (detailed) resource with params, example: client.resource(href, :view => 'full')
|
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.18)
|
5
5
|
json (~> 1.0)
|
6
6
|
mime-types (~> 1.0)
|
7
7
|
rest-client (~> 1.6)
|
@@ -9,6 +9,7 @@ PATH
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
+
coderay (1.1.0)
|
12
13
|
columnize (0.3.6)
|
13
14
|
debugger (1.6.6)
|
14
15
|
columnize (>= 0.3.1)
|
@@ -21,7 +22,12 @@ GEM
|
|
21
22
|
json (1.8.1)
|
22
23
|
linecache (0.46)
|
23
24
|
rbx-require-relative (> 0.0.4)
|
25
|
+
method_source (0.8.2)
|
24
26
|
mime-types (1.25.1)
|
27
|
+
pry (0.9.12.6)
|
28
|
+
coderay (~> 1.0)
|
29
|
+
method_source (~> 0.8)
|
30
|
+
slop (~> 3.4)
|
25
31
|
rake (0.8.7)
|
26
32
|
rbx-require-relative (0.0.9)
|
27
33
|
rest-client (1.6.7)
|
@@ -42,6 +48,7 @@ GEM
|
|
42
48
|
simplecov (0.4.2)
|
43
49
|
simplecov-html (~> 0.4.4)
|
44
50
|
simplecov-html (0.4.5)
|
51
|
+
slop (3.5.0)
|
45
52
|
|
46
53
|
PLATFORMS
|
47
54
|
ruby
|
@@ -50,6 +57,7 @@ DEPENDENCIES
|
|
50
57
|
bundler (~> 1.0)
|
51
58
|
debugger
|
52
59
|
flexmock (= 0.8.7)
|
60
|
+
pry
|
53
61
|
rake (= 0.8.7)
|
54
62
|
right_api_client!
|
55
63
|
rspec (= 2.9.0)
|
@@ -48,6 +48,12 @@ module RightApi
|
|
48
48
|
end if Helper::RESOURCE_SPECIAL_ACTIONS[resource_type]
|
49
49
|
end
|
50
50
|
|
51
|
+
# Catch to_ary in cases like 'puts @client.<resources>' so it doesn't go into method_missing
|
52
|
+
def to_ary
|
53
|
+
["#<#{self.class.name} ",
|
54
|
+
"resource_type=\"#{@resource_type}\">"]
|
55
|
+
end
|
56
|
+
|
51
57
|
# Any other method other than standard actions (create, index)
|
52
58
|
# is simply appended to the href and called with a POST.
|
53
59
|
def method_missing(m, *args)
|
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: 39
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 18
|
10
|
+
version: 1.5.18
|
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-05-29 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
type: :runtime
|