manageiq-api-client 0.3.0 → 0.4.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ca83700fb1d4b54c43d3291ab55d6c6219bf5618cd2c79fa9c791801e960968
4
- data.tar.gz: 96c96017e33930ba4d55de7f7f2cb327d5ba693bd40a1495c9afbf31ebb4826f
3
+ metadata.gz: 2cf72edce682a6dd72ea4e953b17db64d99cd5c32c9d768f1d41bf8c4b09b888
4
+ data.tar.gz: 1b2df1d7796fa18e4d20c00355b6505566dac1bd5454ca70b71ed80204832ec7
5
5
  SHA512:
6
- metadata.gz: fbaa770ff5d0e944d1b9f8cfbb1875a4b02564650bf9382d3431881fffe28b80c2bd9cc2700db09e17eb9093b1a6642091d666cad07a491e74da2abb90609846
7
- data.tar.gz: '08a8a0892373c931c21704fc8a0492b261c9e24bdc3a84791bb1ff6109518933a49c834d8153fbbf88566af9acd3273055b55a1ad21fe797f6b3126549aa862d'
6
+ metadata.gz: 9591e051844cf72bcd26df553c0e4c745b7a430111cdbc3c5e5ef3e0aa25a3b78d3a9479b3821f8a1e9d1055c3256f2b8bd9c352ed34656a35cb0c58e4a60e94
7
+ data.tar.gz: ae40d2fefa9a9dcd234b0f158c2dd2dec3440c0c2ddf72143bb176eb221736c14b153aa10093e801e4210e36b648071c95f2b30bd71d8d1e6a1eec4c1a9f7f4c
data/.codeclimate.yml ADDED
@@ -0,0 +1,16 @@
1
+ prepare:
2
+ fetch:
3
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_base.yml
4
+ path: ".rubocop_base.yml"
5
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/.rubocop_cc_base.yml
6
+ path: ".rubocop_cc_base.yml"
7
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/base.yml
8
+ path: styles/base.yml
9
+ - url: https://raw.githubusercontent.com/ManageIQ/manageiq-style/master/styles/cc_base.yml
10
+ path: styles/cc_base.yml
11
+ plugins:
12
+ rubocop:
13
+ enabled: true
14
+ config: ".rubocop_cc.yml"
15
+ channel: rubocop-0-82
16
+ version: '2'
@@ -0,0 +1,37 @@
1
+ name: CI
2
+
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ - cron: '0 0 * * 0'
8
+
9
+ jobs:
10
+ ci:
11
+ runs-on: ubuntu-latest
12
+ strategy:
13
+ matrix:
14
+ ruby-version:
15
+ - '2.6'
16
+ - '2.7'
17
+ - '3.0'
18
+ rails-version:
19
+ - '6.0'
20
+ - '6.1'
21
+ env:
22
+ TEST_RAILS_VERSION: ${{ matrix.rails-version }}
23
+ CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
24
+ steps:
25
+ - uses: actions/checkout@v4
26
+ - name: Set up Ruby
27
+ uses: ruby/setup-ruby@v1
28
+ with:
29
+ ruby-version: ${{ matrix.ruby-version }}
30
+ bundler-cache: true
31
+ timeout-minutes: 30
32
+ - name: Run tests
33
+ run: bundle exec rake
34
+ - name: Report code coverage
35
+ if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' && matrix.rails-version == '6.1' }}
36
+ continue-on-error: true
37
+ uses: paambaati/codeclimate-action@v5
data/.rspec CHANGED
@@ -1,3 +1,3 @@
1
1
  --require spec_helper
2
- --format documentation
3
2
  --color
3
+ --order random
data/.rubocop.yml ADDED
@@ -0,0 +1,4 @@
1
+ inherit_gem:
2
+ manageiq-style: ".rubocop_base.yml"
3
+ inherit_from:
4
+ - ".rubocop_local.yml"
data/.rubocop_cc.yml ADDED
@@ -0,0 +1,4 @@
1
+ inherit_from:
2
+ - ".rubocop_base.yml"
3
+ - ".rubocop_cc_base.yml"
4
+ - ".rubocop_local.yml"
File without changes
data/.whitesource ADDED
@@ -0,0 +1,3 @@
1
+ {
2
+ "settingsInheritedFrom": "ManageIQ/whitesource-config@master"
3
+ }
data/CHANGELOG.md CHANGED
@@ -6,8 +6,41 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
- ## [0.3.0] - 2018-03-14
9
+ ## [0.4.0] - 2023-10-16
10
+ ### Added
11
+ - Add Bearer token support [[#113]](https://github.com/ManageIQ/manageiq-api-client/pull/113)
12
+
13
+ ## [0.3.7] - 2023-05-19
14
+ ### Changed
15
+ - Loosen faraday to 1.x. [[#108]](https://github.com/ManageIQ/manageiq-api-client/pull/108)
16
+
17
+ ## [0.3.6] - 2022-05-30
18
+ ### Changed
19
+ - Added support to ActiveSupport 6.1 [[#100]](https://github.com/ManageIQ/manageiq-api-client/pull/100)
20
+ - Changed faraday to v1.0. [[#90]](https://github.com/ManageIQ/manageiq-api-client/pull/90)
21
+
22
+ ## [0.3.5] - 2020-05-07
23
+ ### Changed
24
+ - Loosen dependency and update the json gem to v2.3 [[#92](https://github.com/ManageIQ/manageiq-api-client/pull/92)]
10
25
 
26
+ ## [0.3.4] - 2020-04-30
27
+ ### Changed
28
+ - Relax requirement as ActiveSupport::Concern is stable. [[#88](https://github.com/ManageIQ/manageiq-api-client/pull/88)]
29
+ - Allow ActiveSupport 5.2 [[#87](https://github.com/ManageIQ/manageiq-api-client/pull/87)]
30
+
31
+ ## [0.3.3] - 2019-02-25
32
+ ### Fixed
33
+ - Raise an error if not found when filtering by a single ID [[#85](https://github.com/ManageIQ/manageiq-api-client/pull/85)]
34
+
35
+ ## [0.3.2] - 2018-11-08
36
+ ### Fixed
37
+ - Raise a ResourceNotFound error when response is a 404 [[#84](https://github.com/ManageIQ/manageiq-api-client/pull/84)]
38
+
39
+ ## [0.3.1] - 2018-08-06
40
+ ### Fixed
41
+ - Raise a more specific error class [[#82](https://github.com/ManageIQ/manageiq-api-client/pull/82)]
42
+
43
+ ## [0.3.0] - 2018-03-14
11
44
  ### Changed
12
45
  - Adding support for Faraday's open_timeout and timeout options [[#78](https://github.com/ManageIQ/manageiq-api-client/pull/78)]
13
46
  - Loosen dependency on activesupport [[#74](https://github.com/ManageIQ/manageiq-api-client/pull/74)]
@@ -19,7 +52,6 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
19
52
  - Improve query used when fetching collection actions [[#77](https://github.com/ManageIQ/manageiq-api-client/pull/77)]
20
53
 
21
54
  ## [0.2.0] - 2017-02-24
22
-
23
55
  ### Changed
24
56
  - **BREAKING** Client's `settings` is renamed to `user_settings` to avoid collision with API's `settings` collection [[#57](https://github.com/ManageIQ/manageiq-api-client/pull/57)]
25
57
  - Loosen ActiveSupport dependency [[#64](https://github.com/ManageIQ/manageiq-api-client/pull/64)]
@@ -29,12 +61,19 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
29
61
  - When fetching the entrypoint a / is appended to the URL [[#59](https://github.com/ManageIQ/manageiq-api-client/pull/59)]
30
62
 
31
63
  ## [0.1.1]
32
-
33
64
  ### Added
34
65
  - Add CHANGELOG.md
35
66
  - Update README with simple instructions reflecting the query interface.
36
67
 
37
- [Unreleased]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.0...HEAD
68
+ [Unreleased]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.4.0...HEAD
69
+ [0.4.0]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.7...v0.4.0
70
+ [0.3.7]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.6...v0.3.7
71
+ [0.3.6]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.5...v0.3.6
72
+ [0.3.5]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.4...v0.3.5
73
+ [0.3.4]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.3...v0.3.4
74
+ [0.3.3]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.2...v0.3.3
75
+ [0.3.2]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.1...v0.3.2
76
+ [0.3.1]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.3.0...v0.3.1
38
77
  [0.3.0]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.2.0...v0.3.0
39
78
  [0.2.0]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.1.1...v0.2.0
40
79
  [0.1.1]: https://github.com/ManageIQ/manageiq-api-client/compare/v0.1.0...v0.1.1
data/Gemfile CHANGED
@@ -3,12 +3,13 @@ source 'https://rubygems.org'
3
3
  # Specify your gem's dependencies in manageiq-api-client.gemspec
4
4
  gemspec
5
5
 
6
- group :test do
7
- gem "webmock"
8
- gem "simplecov", :require => false
9
- gem "codeclimate-test-reporter", "~> 1.0.0", :require => false
10
- end
11
-
12
6
  # Load developer specific Gemfile
13
7
  dev_gemfile = File.expand_path("Gemfile.dev.rb", __dir__)
14
8
  eval_gemfile(dev_gemfile) if File.exist?(dev_gemfile)
9
+
10
+ case ENV['TEST_RAILS_VERSION']
11
+ when "6.0"
12
+ gem "activesupport", "~>6.0.4"
13
+ when "6.1"
14
+ gem "activesupport", "~>6.1.4"
15
+ end
data/README.md CHANGED
@@ -1,11 +1,9 @@
1
1
  # ManageIQ API Client
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/manageiq-api-client.svg)](http://badge.fury.io/rb/manageiq-api-client)
4
- [![Build Status](https://travis-ci.org/ManageIQ/manageiq-api-client.svg)](https://travis-ci.org/ManageIQ/manageiq-api-client)
4
+ [![CI](https://github.com/ManageIQ/manageiq-api-client/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-api-client/actions/workflows/ci.yaml)
5
5
  [![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-api-client.svg)](https://codeclimate.com/github/ManageIQ/manageiq-api-client)
6
6
  [![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-api-client/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-api-client/coverage)
7
- [![Dependency Status](https://gemnasium.com/ManageIQ/manageiq-api-client.svg)](https://gemnasium.com/ManageIQ/manageiq-api-client)
8
- [![Security](https://hakiri.io/github/ManageIQ/manageiq-api-client/master.svg)](https://hakiri.io/github/ManageIQ/manageiq-api-client/master)
9
7
 
10
8
  This gem provides Ruby access to the ManageIQ API by exposing the ManageIQ
11
9
  collections, resources and related actions as Ruby objects and equivalent methods.
@@ -6,6 +6,7 @@ module ManageIQ
6
6
  attr_reader :password
7
7
  attr_reader :token
8
8
  attr_reader :miqtoken
9
+ attr_reader :bearer_token
9
10
  attr_reader :group
10
11
 
11
12
  DEFAULTS = {
@@ -13,26 +14,26 @@ module ManageIQ
13
14
  :password => "smartvm"
14
15
  }.freeze
15
16
 
16
- CUSTOM_INSPECT_EXCLUSIONS = [:@password].freeze
17
+ CUSTOM_INSPECT_EXCLUSIONS = %i[@password @token @miqtoken @bearer_token].freeze
17
18
  include CustomInspectMixin
18
19
 
19
20
  def initialize(options = {})
20
21
  @user, @password = fetch_credentials(options)
21
- @token, @miqtoken, @group = options.values_at(:token, :miqtoken, :group)
22
+ @token, @miqtoken, @bearer_token, @group = options.values_at(:token, :miqtoken, :bearer_token, :group)
22
23
 
23
- unless token || miqtoken
24
+ unless token || miqtoken || bearer_token
24
25
  raise "Must specify both a user and a password" if user.blank? || password.blank?
25
26
  end
26
27
  end
27
28
 
28
29
  def self.auth_options_specified?(options)
29
- options.slice(:user, :password, :token, :miqtoken, :group).present?
30
+ options.slice(:user, :password, :token, :miqtoken, :bearer_token, :group).present?
30
31
  end
31
32
 
32
33
  private
33
34
 
34
35
  def fetch_credentials(options)
35
- if options.slice(:user, :password, :token, :miqtoken).blank?
36
+ if options.slice(:user, :password, :token, :miqtoken, :bearer_token).blank?
36
37
  [DEFAULTS[:user], DEFAULTS[:password]]
37
38
  else
38
39
  [options[:user], options[:password]]
@@ -40,7 +40,7 @@ module ManageIQ
40
40
  raise "Couldn't find resource without an 'id'"
41
41
  when 1
42
42
  res = limit(1).where(:id => args[0]).to_a
43
- raise "Couldn't find resource with 'id' #{args}" if res.blank?
43
+ raise ManageIQ::API::Client::ResourceNotFound, "Couldn't find resource with 'id' #{args}" if res.blank?
44
44
  request_array ? res : res.first
45
45
  else
46
46
  raise "Multiple resource find is not supported" unless respond_to?(:query)
@@ -76,7 +76,7 @@ module ManageIQ
76
76
  faraday.response(:logger, client.logger)
77
77
  faraday.use FaradayMiddleware::FollowRedirects, :limit => 3, :standards_compliant => true
78
78
  faraday.adapter(Faraday.default_adapter) # make requests with Net::HTTP
79
- if authentication.token.blank? && authentication.miqtoken.blank?
79
+ if authentication.token.blank? && authentication.miqtoken.blank? && authentication.bearer_token.blank?
80
80
  faraday.basic_auth(authentication.user, authentication.password)
81
81
  end
82
82
  end
@@ -90,6 +90,7 @@ module ManageIQ
90
90
  @response = handle.run_request(method.to_sym, api_path(path), nil, nil) do |request|
91
91
  request.headers[:content_type] = CONTENT_TYPE
92
92
  request.headers[:accept] = CONTENT_TYPE
93
+ request.headers[:authorization] = "Bearer #{authentication.bearer_token}" unless authentication.bearer_token.blank?
93
94
  request.headers['X-MIQ-Group'] = authentication.group unless authentication.group.blank?
94
95
  request.headers['X-Auth-Token'] = authentication.token unless authentication.token.blank?
95
96
  request.headers['X-MIQ-Token'] = authentication.miqtoken unless authentication.miqtoken.blank?
@@ -103,7 +104,10 @@ module ManageIQ
103
104
  end
104
105
 
105
106
  def check_response
106
- if response.status >= 400
107
+ if response.status == 404
108
+ message = json_response.fetch_path("error", "message") || json_response["error"]
109
+ raise ManageIQ::API::Client::ResourceNotFound, message
110
+ elsif response.status >= 400
107
111
  @error = ManageIQ::API::Client::Error.new(response.status, json_response)
108
112
  raise @error.message
109
113
  end
@@ -0,0 +1,8 @@
1
+ module ManageIQ
2
+ module API
3
+ class Client
4
+ class Exception < ::RuntimeError; end
5
+ class ResourceNotFound < ManageIQ::API::Client::Exception; end
6
+ end
7
+ end
8
+ end
@@ -1,7 +1,7 @@
1
1
  module ManageIQ
2
2
  module API
3
3
  class Client
4
- VERSION = "0.3.0".freeze
4
+ VERSION = "0.4.0".freeze
5
5
  end
6
6
  end
7
7
  end
@@ -8,6 +8,7 @@ require "pp"
8
8
  require "query_relation"
9
9
 
10
10
  require "manageiq/api/client/client"
11
+ require "manageiq/api/client/exceptions"
11
12
  require "manageiq/api/client/mixins/action_mixin"
12
13
  require "manageiq/api/client/mixins/custom_inspect_mixin"
13
14
 
@@ -23,14 +23,17 @@ Gem::Specification.new do |spec|
23
23
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
24
  spec.require_paths = ["lib"]
25
25
 
26
- spec.add_development_dependency "bundler", "~> 1.12"
27
- spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency "rspec", "~> 3.0"
29
-
30
- spec.add_dependency "activesupport", ">= 5.0", "< 5.2"
31
- spec.add_dependency "faraday", "~> 0.9"
32
- spec.add_dependency "faraday_middleware", "~> 0.10.0"
33
- spec.add_dependency "json", "~> 2.1.0"
26
+ spec.add_dependency "activesupport", ">= 5.0", "< 7.0"
27
+ spec.add_dependency "faraday", "~> 1.0"
28
+ spec.add_dependency "faraday_middleware", "~> 1.0"
29
+ spec.add_dependency "json", "~> 2.3"
34
30
  spec.add_dependency "more_core_extensions"
35
31
  spec.add_dependency "query_relation"
32
+
33
+ spec.add_development_dependency "bundler"
34
+ spec.add_development_dependency "manageiq-style"
35
+ spec.add_development_dependency "rake", ">= 12.3.3"
36
+ spec.add_development_dependency "rspec", "~> 3.0"
37
+ spec.add_development_dependency "simplecov", ">= 0.21.2"
38
+ spec.add_development_dependency "webmock"
36
39
  end
metadata CHANGED
@@ -1,142 +1,184 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-api-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alberto Bellotti
8
8
  - Jason Frey
9
- autorequire:
9
+ autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2018-03-14 00:00:00.000000000 Z
12
+ date: 2023-10-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: bundler
15
+ name: activesupport
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '5.0'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '7.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '5.0'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '7.0'
34
+ - !ruby/object:Gem::Dependency
35
+ name: faraday
16
36
  requirement: !ruby/object:Gem::Requirement
17
37
  requirements:
18
38
  - - "~>"
19
39
  - !ruby/object:Gem::Version
20
- version: '1.12'
21
- type: :development
40
+ version: '1.0'
41
+ type: :runtime
22
42
  prerelease: false
23
43
  version_requirements: !ruby/object:Gem::Requirement
24
44
  requirements:
25
45
  - - "~>"
26
46
  - !ruby/object:Gem::Version
27
- version: '1.12'
47
+ version: '1.0'
28
48
  - !ruby/object:Gem::Dependency
29
- name: rake
49
+ name: faraday_middleware
30
50
  requirement: !ruby/object:Gem::Requirement
31
51
  requirements:
32
52
  - - "~>"
33
53
  - !ruby/object:Gem::Version
34
- version: '10.0'
35
- type: :development
54
+ version: '1.0'
55
+ type: :runtime
36
56
  prerelease: false
37
57
  version_requirements: !ruby/object:Gem::Requirement
38
58
  requirements:
39
59
  - - "~>"
40
60
  - !ruby/object:Gem::Version
41
- version: '10.0'
61
+ version: '1.0'
42
62
  - !ruby/object:Gem::Dependency
43
- name: rspec
63
+ name: json
44
64
  requirement: !ruby/object:Gem::Requirement
45
65
  requirements:
46
66
  - - "~>"
47
67
  - !ruby/object:Gem::Version
48
- version: '3.0'
49
- type: :development
68
+ version: '2.3'
69
+ type: :runtime
50
70
  prerelease: false
51
71
  version_requirements: !ruby/object:Gem::Requirement
52
72
  requirements:
53
73
  - - "~>"
54
74
  - !ruby/object:Gem::Version
55
- version: '3.0'
75
+ version: '2.3'
56
76
  - !ruby/object:Gem::Dependency
57
- name: activesupport
77
+ name: more_core_extensions
58
78
  requirement: !ruby/object:Gem::Requirement
59
79
  requirements:
60
80
  - - ">="
61
81
  - !ruby/object:Gem::Version
62
- version: '5.0'
63
- - - "<"
82
+ version: '0'
83
+ type: :runtime
84
+ prerelease: false
85
+ version_requirements: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ - !ruby/object:Gem::Dependency
91
+ name: query_relation
92
+ requirement: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
64
95
  - !ruby/object:Gem::Version
65
- version: '5.2'
96
+ version: '0'
66
97
  type: :runtime
67
98
  prerelease: false
68
99
  version_requirements: !ruby/object:Gem::Requirement
69
100
  requirements:
70
101
  - - ">="
71
102
  - !ruby/object:Gem::Version
72
- version: '5.0'
73
- - - "<"
103
+ version: '0'
104
+ - !ruby/object:Gem::Dependency
105
+ name: bundler
106
+ requirement: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ type: :development
112
+ prerelease: false
113
+ version_requirements: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
74
116
  - !ruby/object:Gem::Version
75
- version: '5.2'
117
+ version: '0'
76
118
  - !ruby/object:Gem::Dependency
77
- name: faraday
119
+ name: manageiq-style
78
120
  requirement: !ruby/object:Gem::Requirement
79
121
  requirements:
80
- - - "~>"
122
+ - - ">="
81
123
  - !ruby/object:Gem::Version
82
- version: '0.9'
83
- type: :runtime
124
+ version: '0'
125
+ type: :development
84
126
  prerelease: false
85
127
  version_requirements: !ruby/object:Gem::Requirement
86
128
  requirements:
87
- - - "~>"
129
+ - - ">="
88
130
  - !ruby/object:Gem::Version
89
- version: '0.9'
131
+ version: '0'
90
132
  - !ruby/object:Gem::Dependency
91
- name: faraday_middleware
133
+ name: rake
92
134
  requirement: !ruby/object:Gem::Requirement
93
135
  requirements:
94
- - - "~>"
136
+ - - ">="
95
137
  - !ruby/object:Gem::Version
96
- version: 0.10.0
97
- type: :runtime
138
+ version: 12.3.3
139
+ type: :development
98
140
  prerelease: false
99
141
  version_requirements: !ruby/object:Gem::Requirement
100
142
  requirements:
101
- - - "~>"
143
+ - - ">="
102
144
  - !ruby/object:Gem::Version
103
- version: 0.10.0
145
+ version: 12.3.3
104
146
  - !ruby/object:Gem::Dependency
105
- name: json
147
+ name: rspec
106
148
  requirement: !ruby/object:Gem::Requirement
107
149
  requirements:
108
150
  - - "~>"
109
151
  - !ruby/object:Gem::Version
110
- version: 2.1.0
111
- type: :runtime
152
+ version: '3.0'
153
+ type: :development
112
154
  prerelease: false
113
155
  version_requirements: !ruby/object:Gem::Requirement
114
156
  requirements:
115
157
  - - "~>"
116
158
  - !ruby/object:Gem::Version
117
- version: 2.1.0
159
+ version: '3.0'
118
160
  - !ruby/object:Gem::Dependency
119
- name: more_core_extensions
161
+ name: simplecov
120
162
  requirement: !ruby/object:Gem::Requirement
121
163
  requirements:
122
164
  - - ">="
123
165
  - !ruby/object:Gem::Version
124
- version: '0'
125
- type: :runtime
166
+ version: 0.21.2
167
+ type: :development
126
168
  prerelease: false
127
169
  version_requirements: !ruby/object:Gem::Requirement
128
170
  requirements:
129
171
  - - ">="
130
172
  - !ruby/object:Gem::Version
131
- version: '0'
173
+ version: 0.21.2
132
174
  - !ruby/object:Gem::Dependency
133
- name: query_relation
175
+ name: webmock
134
176
  requirement: !ruby/object:Gem::Requirement
135
177
  requirements:
136
178
  - - ">="
137
179
  - !ruby/object:Gem::Version
138
180
  version: '0'
139
- type: :runtime
181
+ type: :development
140
182
  prerelease: false
141
183
  version_requirements: !ruby/object:Gem::Requirement
142
184
  requirements:
@@ -153,9 +195,14 @@ executables: []
153
195
  extensions: []
154
196
  extra_rdoc_files: []
155
197
  files:
198
+ - ".codeclimate.yml"
199
+ - ".github/workflows/ci.yaml"
156
200
  - ".gitignore"
157
201
  - ".rspec"
158
- - ".travis.yml"
202
+ - ".rubocop.yml"
203
+ - ".rubocop_cc.yml"
204
+ - ".rubocop_local.yml"
205
+ - ".whitesource"
159
206
  - CHANGELOG.md
160
207
  - Gemfile
161
208
  - LICENSE.txt
@@ -175,6 +222,7 @@ files:
175
222
  - lib/manageiq/api/client/collection_options.rb
176
223
  - lib/manageiq/api/client/connection.rb
177
224
  - lib/manageiq/api/client/error.rb
225
+ - lib/manageiq/api/client/exceptions.rb
178
226
  - lib/manageiq/api/client/identity.rb
179
227
  - lib/manageiq/api/client/mixins/action_mixin.rb
180
228
  - lib/manageiq/api/client/mixins/custom_inspect_mixin.rb
@@ -189,7 +237,7 @@ homepage: http://github.com/ManageIQ/manageiq-api-client
189
237
  licenses:
190
238
  - MIT
191
239
  metadata: {}
192
- post_install_message:
240
+ post_install_message:
193
241
  rdoc_options: []
194
242
  require_paths:
195
243
  - lib
@@ -204,9 +252,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
204
252
  - !ruby/object:Gem::Version
205
253
  version: '0'
206
254
  requirements: []
207
- rubyforge_project:
208
- rubygems_version: 2.7.6
209
- signing_key:
255
+ rubygems_version: 3.2.33
256
+ signing_key:
210
257
  specification_version: 4
211
258
  summary: ManageIQ API Client
212
259
  test_files: []
data/.travis.yml DELETED
@@ -1,9 +0,0 @@
1
- language: ruby
2
- rvm:
3
- - 2.2.7
4
- - 2.3.1
5
- - 2.4.2
6
- sudo: false
7
- cache: bundler
8
- before_install: gem install bundler -v 1.12.5
9
- after_script: bundle exec codeclimate-test-reporter