right_api_client 1.5.7 → 1.5.8
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.rdoc +3 -0
- data/lib/right_api_client/client.rb +2 -1
- data/lib/right_api_client/version.rb +1 -1
- data/right_api_client.rconf +2 -2
- metadata +83 -76
data/CHANGELOG.rdoc
CHANGED
@@ -24,6 +24,7 @@ module RightApi
|
|
24
24
|
attr_reader :cookies, :instance_token
|
25
25
|
|
26
26
|
def initialize(args)
|
27
|
+
raise 'This API client is only compatible with Ruby 1.9 and upwards.' if (RUBY_VERSION < '1.9')
|
27
28
|
@api_url, @api_version = DEFAULT_API_URL, API_VERSION
|
28
29
|
# Initializing all instance variables from hash
|
29
30
|
args.each { |key,value|
|
@@ -31,7 +32,7 @@ module RightApi
|
|
31
32
|
} if args.is_a? Hash
|
32
33
|
|
33
34
|
raise 'This API client is only compatible with the RightScale API 1.5 and upwards.' if (Float(@api_version) < 1.5)
|
34
|
-
@rest_client = RestClient::Resource.new(@api_url)
|
35
|
+
@rest_client = RestClient::Resource.new(@api_url, :timeout => -1)
|
35
36
|
|
36
37
|
# There are three options for login: credentials, instance token, or if the user already
|
37
38
|
# has the cookies they can just use those. See config/login.yml.example for more info.
|
data/right_api_client.rconf
CHANGED
metadata
CHANGED
@@ -1,103 +1,107 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: right_api_client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.7
|
3
|
+
version: !ruby/object:Gem::Version
|
5
4
|
prerelease:
|
5
|
+
version: 1.5.8
|
6
6
|
platform: ruby
|
7
|
-
authors:
|
7
|
+
authors:
|
8
8
|
- RightScale, Inc.
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
|
13
|
-
|
14
|
-
|
12
|
+
|
13
|
+
date: 2012-03-06 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
15
16
|
name: json
|
16
|
-
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
17
19
|
none: false
|
18
|
-
requirements:
|
19
|
-
- -
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version:
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: "0"
|
22
24
|
type: :runtime
|
23
|
-
|
24
|
-
|
25
|
-
- !ruby/object:Gem::Dependency
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
26
27
|
name: rest-client
|
27
|
-
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
28
30
|
none: false
|
29
|
-
requirements:
|
30
|
-
- - =
|
31
|
-
- !ruby/object:Gem::Version
|
31
|
+
requirements:
|
32
|
+
- - "="
|
33
|
+
- !ruby/object:Gem::Version
|
32
34
|
version: 1.6.7
|
33
35
|
type: :runtime
|
34
|
-
|
35
|
-
|
36
|
-
- !ruby/object:Gem::Dependency
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
37
38
|
name: rake
|
38
|
-
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
39
41
|
none: false
|
40
|
-
requirements:
|
41
|
-
- - =
|
42
|
-
- !ruby/object:Gem::Version
|
42
|
+
requirements:
|
43
|
+
- - "="
|
44
|
+
- !ruby/object:Gem::Version
|
43
45
|
version: 0.8.7
|
44
46
|
type: :development
|
45
|
-
|
46
|
-
|
47
|
-
- !ruby/object:Gem::Dependency
|
47
|
+
version_requirements: *id003
|
48
|
+
- !ruby/object:Gem::Dependency
|
48
49
|
name: rspec
|
49
|
-
|
50
|
+
prerelease: false
|
51
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
50
52
|
none: false
|
51
|
-
requirements:
|
52
|
-
- - =
|
53
|
-
- !ruby/object:Gem::Version
|
53
|
+
requirements:
|
54
|
+
- - "="
|
55
|
+
- !ruby/object:Gem::Version
|
54
56
|
version: 1.3.0
|
55
57
|
type: :development
|
56
|
-
|
57
|
-
|
58
|
-
- !ruby/object:Gem::Dependency
|
58
|
+
version_requirements: *id004
|
59
|
+
- !ruby/object:Gem::Dependency
|
59
60
|
name: flexmock
|
60
|
-
|
61
|
+
prerelease: false
|
62
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
61
63
|
none: false
|
62
|
-
requirements:
|
63
|
-
- - =
|
64
|
-
- !ruby/object:Gem::Version
|
64
|
+
requirements:
|
65
|
+
- - "="
|
66
|
+
- !ruby/object:Gem::Version
|
65
67
|
version: 0.8.7
|
66
68
|
type: :development
|
67
|
-
|
68
|
-
|
69
|
-
- !ruby/object:Gem::Dependency
|
69
|
+
version_requirements: *id005
|
70
|
+
- !ruby/object:Gem::Dependency
|
70
71
|
name: simplecov
|
71
|
-
|
72
|
+
prerelease: false
|
73
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
72
74
|
none: false
|
73
|
-
requirements:
|
74
|
-
- - =
|
75
|
-
- !ruby/object:Gem::Version
|
75
|
+
requirements:
|
76
|
+
- - "="
|
77
|
+
- !ruby/object:Gem::Version
|
76
78
|
version: 0.4.2
|
77
79
|
type: :development
|
78
|
-
|
79
|
-
|
80
|
-
- !ruby/object:Gem::Dependency
|
80
|
+
version_requirements: *id006
|
81
|
+
- !ruby/object:Gem::Dependency
|
81
82
|
name: bundler
|
82
|
-
|
83
|
+
prerelease: false
|
84
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
83
85
|
none: false
|
84
|
-
requirements:
|
85
|
-
- -
|
86
|
-
- !ruby/object:Gem::Version
|
87
|
-
version:
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: "0"
|
88
90
|
type: :development
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
email:
|
91
|
+
version_requirements: *id007
|
92
|
+
description: "\n\
|
93
|
+
The right_api_client gem simplifies the use of RightScale's MultiCloud API. It provides\n\
|
94
|
+
a simple object model of the API resources, and handles all of the fine details involved\n\
|
95
|
+
in making HTTP calls and translating their responses.\n "
|
96
|
+
email:
|
96
97
|
- rubygems@rightscale.com
|
97
98
|
executables: []
|
99
|
+
|
98
100
|
extensions: []
|
101
|
+
|
99
102
|
extra_rdoc_files: []
|
100
|
-
|
103
|
+
|
104
|
+
files:
|
101
105
|
- .gitignore
|
102
106
|
- CHANGELOG.rdoc
|
103
107
|
- Gemfile
|
@@ -125,29 +129,32 @@ files:
|
|
125
129
|
- spec/spec_helper.rb
|
126
130
|
homepage: https://github.com/rightscale/right_api_client
|
127
131
|
licenses: []
|
132
|
+
|
128
133
|
post_install_message:
|
129
134
|
rdoc_options: []
|
130
|
-
|
135
|
+
|
136
|
+
require_paths:
|
131
137
|
- lib
|
132
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
133
139
|
none: false
|
134
|
-
requirements:
|
135
|
-
- -
|
136
|
-
- !ruby/object:Gem::Version
|
137
|
-
version:
|
138
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
140
|
+
requirements:
|
141
|
+
- - ">="
|
142
|
+
- !ruby/object:Gem::Version
|
143
|
+
version: "0"
|
144
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
139
145
|
none: false
|
140
|
-
requirements:
|
141
|
-
- -
|
142
|
-
- !ruby/object:Gem::Version
|
143
|
-
version:
|
146
|
+
requirements:
|
147
|
+
- - ">="
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: "0"
|
144
150
|
requirements: []
|
151
|
+
|
145
152
|
rubyforge_project:
|
146
|
-
rubygems_version: 1.8.
|
153
|
+
rubygems_version: 1.8.17
|
147
154
|
signing_key:
|
148
155
|
specification_version: 3
|
149
156
|
summary: RightScale MultiCloud API HTTP Client
|
150
|
-
test_files:
|
157
|
+
test_files:
|
151
158
|
- config/login.yml.example
|
152
159
|
- spec/audit_entries_spec.rb
|
153
160
|
- spec/client_spec.rb
|