right_api_client 1.5.8 → 1.5.9

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 CHANGED
@@ -1,5 +1,8 @@
1
1
  = right_api_client - CHANGELOG.rdoc
2
2
 
3
+ == right_api_client - 1.5.9
4
+ Downgrade even further to Ruby 1.8.7. Should still work in Ruby 1.9.x.
5
+
3
6
  == right_api_client - 1.5.8
4
7
  Fix invalid gemspec by downgrading to Ruby 1.9.2 when building gem.
5
8
 
data/README.rdoc CHANGED
@@ -8,7 +8,7 @@ It is assumed that users are already familiar with the RightScale API:
8
8
  - API Reference Docs: http://support.rightscale.com/api1.5
9
9
 
10
10
  == Installation
11
- Ruby 1.9 is required.
11
+ Ruby 1.8.7 or higher is required.
12
12
  gem install right_api_client
13
13
 
14
14
  == Versioning
@@ -199,4 +199,4 @@ Put these special cases in the <tt>RightApi::Helper::RESOURCE_TYPE_SPECIAL_ACTIO
199
199
 
200
200
  == Wrong ruby version
201
201
 
202
- Ruby 1.9 is required. Ruby 1.8 will give undefined results, such as missing attributes.
202
+ Ruby 1.8.7 or higher is required.
@@ -24,7 +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
+ raise 'This API client is only compatible with Ruby 1.8.7 and upwards.' if (RUBY_VERSION < '1.8.7')
28
28
  @api_url, @api_version = DEFAULT_API_URL, API_VERSION
29
29
  # Initializing all instance variables from hash
30
30
  args.each { |key,value|
@@ -56,7 +56,6 @@ module RightApi::Helper
56
56
  if has_id(*args) || is_singular?(rel)
57
57
  # User wants a single resource. Either doing a show, update, delete...
58
58
  # get the resource_type
59
-
60
59
  # Special case: calling .data you don't want a resources object back
61
60
  # but rather all its details since you cannot do a show
62
61
  return RightApi::ResourceDetail.new(client, *client.do_get(hrefs.first, *args)) if rel == :data
@@ -152,7 +151,7 @@ module RightApi::Helper
152
151
  # Helper method that checks whether the string is singular
153
152
  def is_singular?(str)
154
153
  return true if ['data'].include?(str.to_s)
155
- (str.to_s)[-1] != 's'
154
+ (str.to_s)[-1, 1] != 's' # use legacy syntax for Ruby 1.8.7
156
155
  end
157
156
 
158
157
  # Does not modify links
@@ -2,7 +2,7 @@
2
2
  module RightApi
3
3
  class Client
4
4
  API_VERSION = '1.5'
5
- CLIENT_VERSION = '8'
5
+ CLIENT_VERSION = '9'
6
6
  VERSION = "#{API_VERSION}.#{CLIENT_VERSION}"
7
7
  end
8
8
  end
@@ -17,7 +17,7 @@ in making HTTP calls and translating their responses.
17
17
  }
18
18
  s.files = `git ls-files`.split(' ')
19
19
  s.test_files = `git ls-files spec config`.split(' ')
20
- s.rubygems_version = '1.6.2'
20
+ s.rubygems_version = '1.8.17'
21
21
 
22
22
  s.add_runtime_dependency 'json'
23
23
  s.add_runtime_dependency 'rest-client', '1.6.7'
@@ -1,5 +1,5 @@
1
1
  ruby do
2
- version 'ruby-1.9.2-p290'
2
+ version 'ree-1.8.7-2011.02'
3
3
  rubygems '1.8.17'
4
4
  gemset 'right_api_client'
5
5
  end
metadata CHANGED
@@ -1,8 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_api_client
3
3
  version: !ruby/object:Gem::Version
4
- prerelease:
5
- version: 1.5.8
4
+ hash: 17
5
+ prerelease: false
6
+ segments:
7
+ - 1
8
+ - 5
9
+ - 9
10
+ version: 1.5.9
6
11
  platform: ruby
7
12
  authors:
8
13
  - RightScale, Inc.
@@ -10,7 +15,8 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2012-03-06 00:00:00 Z
18
+ date: 2012-03-09 00:00:00 -08:00
19
+ default_executable:
14
20
  dependencies:
15
21
  - !ruby/object:Gem::Dependency
16
22
  name: json
@@ -20,6 +26,9 @@ dependencies:
20
26
  requirements:
21
27
  - - ">="
22
28
  - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
23
32
  version: "0"
24
33
  type: :runtime
25
34
  version_requirements: *id001
@@ -31,6 +40,11 @@ dependencies:
31
40
  requirements:
32
41
  - - "="
33
42
  - !ruby/object:Gem::Version
43
+ hash: 1
44
+ segments:
45
+ - 1
46
+ - 6
47
+ - 7
34
48
  version: 1.6.7
35
49
  type: :runtime
36
50
  version_requirements: *id002
@@ -42,6 +56,11 @@ dependencies:
42
56
  requirements:
43
57
  - - "="
44
58
  - !ruby/object:Gem::Version
59
+ hash: 49
60
+ segments:
61
+ - 0
62
+ - 8
63
+ - 7
45
64
  version: 0.8.7
46
65
  type: :development
47
66
  version_requirements: *id003
@@ -53,6 +72,11 @@ dependencies:
53
72
  requirements:
54
73
  - - "="
55
74
  - !ruby/object:Gem::Version
75
+ hash: 27
76
+ segments:
77
+ - 1
78
+ - 3
79
+ - 0
56
80
  version: 1.3.0
57
81
  type: :development
58
82
  version_requirements: *id004
@@ -64,6 +88,11 @@ dependencies:
64
88
  requirements:
65
89
  - - "="
66
90
  - !ruby/object:Gem::Version
91
+ hash: 49
92
+ segments:
93
+ - 0
94
+ - 8
95
+ - 7
67
96
  version: 0.8.7
68
97
  type: :development
69
98
  version_requirements: *id005
@@ -75,6 +104,11 @@ dependencies:
75
104
  requirements:
76
105
  - - "="
77
106
  - !ruby/object:Gem::Version
107
+ hash: 11
108
+ segments:
109
+ - 0
110
+ - 4
111
+ - 2
78
112
  version: 0.4.2
79
113
  type: :development
80
114
  version_requirements: *id006
@@ -86,6 +120,9 @@ dependencies:
86
120
  requirements:
87
121
  - - ">="
88
122
  - !ruby/object:Gem::Version
123
+ hash: 3
124
+ segments:
125
+ - 0
89
126
  version: "0"
90
127
  type: :development
91
128
  version_requirements: *id007
@@ -127,6 +164,7 @@ files:
127
164
  - spec/resource_spec.rb
128
165
  - spec/resources_spec.rb
129
166
  - spec/spec_helper.rb
167
+ has_rdoc: true
130
168
  homepage: https://github.com/rightscale/right_api_client
131
169
  licenses: []
132
170
 
@@ -140,17 +178,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
140
178
  requirements:
141
179
  - - ">="
142
180
  - !ruby/object:Gem::Version
181
+ hash: 3
182
+ segments:
183
+ - 0
143
184
  version: "0"
144
185
  required_rubygems_version: !ruby/object:Gem::Requirement
145
186
  none: false
146
187
  requirements:
147
188
  - - ">="
148
189
  - !ruby/object:Gem::Version
190
+ hash: 3
191
+ segments:
192
+ - 0
149
193
  version: "0"
150
194
  requirements: []
151
195
 
152
196
  rubyforge_project:
153
- rubygems_version: 1.8.17
197
+ rubygems_version: 1.3.7
154
198
  signing_key:
155
199
  specification_version: 3
156
200
  summary: RightScale MultiCloud API HTTP Client