right_api_client 1.6.2 → 1.6.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 28ccc87f7f444e4e7a6d0a72695b5dc28ea9b313
4
- data.tar.gz: 03f48d1c21be4aa93b53311c8562e65302820782
2
+ SHA256:
3
+ metadata.gz: 4a258ac1efce81e7bc510cf064e510e13b29e088dd2f6921a1f345037668e964
4
+ data.tar.gz: 48304f5013d406757e01b927283fc44f4879a46432c9e71d2465bb3a3ebf1d30
5
5
  SHA512:
6
- metadata.gz: bd0bfe56b67ec25ce8ac83b8f455f329b14a7204a3140d45c5cfd1dcdd0a381777e5b760b1334941e305c5e8d2f8e295cc1f35713ac4c61ba458fd6e60bea815
7
- data.tar.gz: 76ec1794e9eadd8ceb99c3430748402e30f045752b8614a9b225151ad39d7fc0ffe8e00102b9c34e156251f31046f3e353bb8fa7dbd95643255b44a8a8bc8a00
6
+ metadata.gz: 4a02e01eb1ad57223cb03b36bf6e0b4019dc09159a94121766207924df68f0dede0a4dbd9ea4d3fe7f267daf2879155512d3086c3988be63abf7c8b8e0e90de7
7
+ data.tar.gz: e7052d3b6e072c7a3dd72fcba6dc3d60f3924f609e2b1db8217ecf39003311b87bde479a4d0df7c9c760ecafa1edaf0b2b3f0f60009d580e59a030520b75864e
data/CHANGELOG.md CHANGED
@@ -3,6 +3,9 @@
3
3
  ## Next
4
4
  - Your info here
5
5
 
6
+ ## 1.6.3
7
+ - \#109 Update json version requirement for ruby2.4 compatibility
8
+
6
9
  ## 1.6.2
7
10
  - \#108 Raise a specific error if the API returns an empty 200 response
8
11
  - \#106 Bump mime-types version to resolve dependencies with fog-azure-rm gem
data/Gemfile CHANGED
@@ -1,13 +1,13 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
3
  # Runtime dependencies that should appear in the gemspec.
4
- gem 'json', '~> 1.0'
4
+ gem 'json', '~> 2'
5
5
  gem 'mime-types', '~> 2.0'
6
6
  gem 'rest-client', '~> 1.6'
7
7
 
8
8
  # Development dependencies that should appear in the gemspec.
9
9
  group :development do
10
- gem 'rake'
10
+ gem 'rake', '< 12.0'
11
11
  gem 'rspec', '~> 2.9'
12
12
  gem 'flexmock'
13
13
  gem 'coveralls', :require => false
data/README.md CHANGED
@@ -112,8 +112,9 @@ HTTP calls can sometimes fail. To enable retrying idempotent requests automatica
112
112
  Multiple accounts can be managed by using the api\_url and account\_id attributes on the client.
113
113
 
114
114
  The api\_url attribute allows users to modify the shard which the client is being used to connect to.
115
- This should not be required as the client will find the correct shard using the account id but is
116
- included for completeness.
115
+ This should not be required as the client will find the correct shard using the account id (except
116
+ when using a refresh\_token for authorization; in this case api\_url must be set to your shard
117
+ address).
117
118
 
118
119
  Example:
119
120
 
@@ -244,8 +245,8 @@ you will get a 403 Permission Denied error.
244
245
 
245
246
  ## RightLink10 and Instance Facing Calls:
246
247
  Having RightLink10 installed on an instance allows 'instance facing calls' via a local
247
- [reverse proxy](http://docs.rightscale.com/rl10/reference/rl10_local_and_proxied_http_requests.html). To use
248
- the reverse proxy on the instance, you will only need to provide the following parameter:
248
+ [proxy](http://docs.rightscale.com/rl10/reference/rl10_local_and_proxied_http_requests.html). To use
249
+ the proxy on the instance, you will only need to provide the following parameter:
249
250
 
250
251
  - ```:rl10``` Set this to ```true```
251
252
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.2
1
+ 1.6.4
@@ -34,6 +34,7 @@
34
34
  # Please be careful! This is a user-specific OAuth 2.0 refresh token representing a grant with unrestricted scope.
35
35
  # Anyone who possesses it can login to RightScale's API and perform requests on this account with all of your permissions.
36
36
  # For more information, consult http://support.rightscale.com/12-Guides/03-Rightscale_API/OAuth
37
+ # Note that api_url must be set to your shard when refresh_token is used.
37
38
  # ex: @client = RightApi::Client.new(:api_url => "https://us-x.rightscale.com", :account_id => <account_id>, :refresh_token => <token>)
38
39
  :refresh_token: my_token_string
39
40
 
@@ -59,7 +59,7 @@ module RightApi
59
59
  DEFAULT_TIMEOUT = 6 * 60
60
60
  DEFAULT_MAX_ATTEMPTS = 5
61
61
 
62
- DEFAULT_SSL_VERSION = 'TLSv1'
62
+ DEFAULT_SSL_VERSION = 'TLSv1_2'
63
63
 
64
64
  ROOT_RESOURCE = '/api/session'
65
65
  OAUTH_ENDPOINT = '/api/oauth2'
@@ -1,21 +1,22 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in rakefile, and run 'rake gemspec'
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: right_api_client 1.6.2 ruby lib
5
+ # stub: right_api_client 1.6.4 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
- s.name = "right_api_client"
9
- s.version = "1.6.2"
8
+ s.name = "right_api_client".freeze
9
+ s.version = "1.6.4"
10
10
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
- s.authors = ["RightScale, Inc."]
14
- s.date = "2016-11-02"
15
- s.description = "\nThe right_api_client gem simplifies the use of RightScale's MultiCloud API.\nIt provides a simple object model of the API resources, and handles all of the\nfine details involved in making HTTP calls and translating their responses.\n"
16
- s.email = "rubygems@rightscale.com"
17
- s.executables = ["console", "setup"]
11
+ s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib".freeze]
13
+ s.authors = ["RightScale, Inc.".freeze]
14
+ s.date = "2022-10-07"
15
+ s.description = "\nThe right_api_client gem simplifies the use of RightScale's MultiCloud API.\nIt provides a simple object model of the API resources, and handles all of the\nfine details involved in making HTTP calls and translating their responses.\n".freeze
16
+ s.email = "rubygems@rightscale.com".freeze
17
+ s.executables = ["console".freeze, "setup".freeze]
18
18
  s.extra_rdoc_files = [
19
+ "CHANGELOG.md",
19
20
  "LICENSE.txt",
20
21
  "README.md"
21
22
  ]
@@ -54,42 +55,33 @@ Gem::Specification.new do |s|
54
55
  "spec/unit/resource_spec.rb",
55
56
  "spec/unit/resources_spec.rb"
56
57
  ]
57
- s.homepage = "https://github.com/rightscale/right_api_client"
58
- s.licenses = ["MIT"]
59
- s.rubygems_version = "2.4.8"
60
- s.summary = "RightScale MultiCloud API HTTP Client"
58
+ s.homepage = "https://github.com/rightscale/right_api_client".freeze
59
+ s.licenses = ["MIT".freeze]
60
+ s.rubygems_version = "3.3.16".freeze
61
+ s.summary = "RightScale MultiCloud API HTTP Client".freeze
61
62
 
62
63
  if s.respond_to? :specification_version then
63
64
  s.specification_version = 4
65
+ end
64
66
 
65
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
66
- s.add_runtime_dependency(%q<json>, ["~> 1.0"])
67
- s.add_runtime_dependency(%q<mime-types>, ["~> 2.0"])
68
- s.add_runtime_dependency(%q<rest-client>, ["~> 1.6"])
69
- s.add_development_dependency(%q<rake>, [">= 0"])
70
- s.add_development_dependency(%q<rspec>, ["~> 2.9"])
71
- s.add_development_dependency(%q<flexmock>, [">= 0"])
72
- s.add_development_dependency(%q<coveralls>, [">= 0"])
73
- s.add_development_dependency(%q<pry>, [">= 0"])
74
- else
75
- s.add_dependency(%q<json>, ["~> 1.0"])
76
- s.add_dependency(%q<mime-types>, ["~> 2.0"])
77
- s.add_dependency(%q<rest-client>, ["~> 1.6"])
78
- s.add_dependency(%q<rake>, [">= 0"])
79
- s.add_dependency(%q<rspec>, ["~> 2.9"])
80
- s.add_dependency(%q<flexmock>, [">= 0"])
81
- s.add_dependency(%q<coveralls>, [">= 0"])
82
- s.add_dependency(%q<pry>, [">= 0"])
83
- end
67
+ if s.respond_to? :add_runtime_dependency then
68
+ s.add_runtime_dependency(%q<json>.freeze, ["~> 2"])
69
+ s.add_runtime_dependency(%q<mime-types>.freeze, ["~> 2.0"])
70
+ s.add_runtime_dependency(%q<rest-client>.freeze, ["~> 1.6"])
71
+ s.add_development_dependency(%q<rake>.freeze, ["< 12.0"])
72
+ s.add_development_dependency(%q<rspec>.freeze, ["~> 2.9"])
73
+ s.add_development_dependency(%q<flexmock>.freeze, [">= 0"])
74
+ s.add_development_dependency(%q<coveralls>.freeze, [">= 0"])
75
+ s.add_development_dependency(%q<pry>.freeze, [">= 0"])
84
76
  else
85
- s.add_dependency(%q<json>, ["~> 1.0"])
86
- s.add_dependency(%q<mime-types>, ["~> 2.0"])
87
- s.add_dependency(%q<rest-client>, ["~> 1.6"])
88
- s.add_dependency(%q<rake>, [">= 0"])
89
- s.add_dependency(%q<rspec>, ["~> 2.9"])
90
- s.add_dependency(%q<flexmock>, [">= 0"])
91
- s.add_dependency(%q<coveralls>, [">= 0"])
92
- s.add_dependency(%q<pry>, [">= 0"])
77
+ s.add_dependency(%q<json>.freeze, ["~> 2"])
78
+ s.add_dependency(%q<mime-types>.freeze, ["~> 2.0"])
79
+ s.add_dependency(%q<rest-client>.freeze, ["~> 1.6"])
80
+ s.add_dependency(%q<rake>.freeze, ["< 12.0"])
81
+ s.add_dependency(%q<rspec>.freeze, ["~> 2.9"])
82
+ s.add_dependency(%q<flexmock>.freeze, [">= 0"])
83
+ s.add_dependency(%q<coveralls>.freeze, [">= 0"])
84
+ s.add_dependency(%q<pry>.freeze, [">= 0"])
93
85
  end
94
86
  end
95
87
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_api_client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - RightScale, Inc.
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-02 00:00:00.000000000 Z
11
+ date: 2022-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.0'
19
+ version: '2'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.0'
26
+ version: '2'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mime-types
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -56,16 +56,16 @@ dependencies:
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "<"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: '12.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "<"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: '12.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -133,6 +133,7 @@ executables:
133
133
  - setup
134
134
  extensions: []
135
135
  extra_rdoc_files:
136
+ - CHANGELOG.md
136
137
  - LICENSE.txt
137
138
  - README.md
138
139
  files:
@@ -173,7 +174,7 @@ homepage: https://github.com/rightscale/right_api_client
173
174
  licenses:
174
175
  - MIT
175
176
  metadata: {}
176
- post_install_message:
177
+ post_install_message:
177
178
  rdoc_options: []
178
179
  require_paths:
179
180
  - lib
@@ -188,9 +189,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
188
189
  - !ruby/object:Gem::Version
189
190
  version: '0'
190
191
  requirements: []
191
- rubyforge_project:
192
- rubygems_version: 2.4.8
193
- signing_key:
192
+ rubygems_version: 3.3.16
193
+ signing_key:
194
194
  specification_version: 4
195
195
  summary: RightScale MultiCloud API HTTP Client
196
196
  test_files: []