insights-api-common 3.9.0 → 3.10.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: 484591366a853923b1456ad224f13ea7462cf54c7e2e50091307ab3f6e70dffd
4
- data.tar.gz: 0cfbc0b28162bcf862173cd1a4941a6cd406e9ca301316be1adb4856dcd834d6
3
+ metadata.gz: 5622d9061e04f7bde11f766efbdefc38e514ffd02e0c17dc633383a55f743cec
4
+ data.tar.gz: d38c11d43f867259c661127ca53e0e7de1c014385953a516583d9f94b9aee454
5
5
  SHA512:
6
- metadata.gz: 3632e7ccbe7eea9360829aef22960d5605235d95a01b725e7113392787836adb73272ac5280853ea78d610b0bd3b731a507845fd4aecf9dfa2e68d1f5830c72f
7
- data.tar.gz: 18460ede94fc0d761284dd1b497e31dd9a0993caa17cc949a982098a6faca24b54d1efb3daf78f776a0f0e2ef79f63eeaeb46940fbf1892de99472cba0d06f6a
6
+ metadata.gz: 868598aa6f827b0f6fb5d62df159024464f94f8523b78430d8dae0483e6544c10decd602b34e7c32976165c5cd6e1b140d7c3ee0e08a9b0fa39463f020c8b000
7
+ data.tar.gz: 0d40859189e2a9417658e8d123a1925faea88674c796637b6e781ab56129548f92bcf243ead0e32141bd32e1db5d1271fb7e5e52ec865acbbc6765b4fa594348
@@ -11,7 +11,7 @@ module Insights
11
11
  errors = Insights::API::Common::ErrorDocument.new.tap do |error_document|
12
12
  exception_list_from(exception).each do |exc|
13
13
  code = exc.respond_to?(:code) ? exc.code : error_code_from_class(exc)
14
- error_document.add(code, "#{exc.class}: #{exc.message}")
14
+ error_document.add(code.to_s, "#{exc.class}: #{exc.message}")
15
15
  end
16
16
  end
17
17
 
@@ -30,7 +30,7 @@ module Insights
30
30
 
31
31
  def error_code_from_class(exception)
32
32
  if ActionDispatch::ExceptionWrapper.rescue_responses.key?(exception.class.to_s)
33
- ActionDispatch::ExceptionWrapper.rescue_responses[exception.class.to_s]
33
+ Rack::Utils.status_code(ActionDispatch::ExceptionWrapper.rescue_responses[exception.class.to_s])
34
34
  else
35
35
  DEFAULT_ERROR_CODE
36
36
  end
@@ -4,7 +4,6 @@ module Insights
4
4
  module RBAC
5
5
  class Access
6
6
  attr_reader :acl
7
- DEFAULT_LIMIT = 500
8
7
  ADMIN_SCOPE = "admin"
9
8
  GROUP_SCOPE = "group"
10
9
  USER_SCOPE = "user"
@@ -15,7 +14,7 @@ module Insights
15
14
 
16
15
  def process
17
16
  Service.call(RBACApiClient::AccessApi) do |api|
18
- @acls ||= Service.paginate(api, :get_principal_access, {:limit => DEFAULT_LIMIT}, @app_name_filter).to_a
17
+ @acls ||= api.get_principal_access(@app_name_filter).data
19
18
  end
20
19
  self
21
20
  end
@@ -1,7 +1,7 @@
1
1
  module Insights
2
2
  module API
3
3
  module Common
4
- VERSION = "3.9.0".freeze
4
+ VERSION = "3.10.0".freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insights-api-common
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.9.0
4
+ version: 3.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Insights Authors
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-04-02 00:00:00.000000000 Z
11
+ date: 2020-04-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: acts_as_tenant
@@ -399,7 +399,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
399
399
  - !ruby/object:Gem::Version
400
400
  version: '0'
401
401
  requirements: []
402
- rubygems_version: 3.0.6
402
+ rubygems_version: 3.0.3
403
403
  signing_key:
404
404
  specification_version: 4
405
405
  summary: Common Utilites for Insights microservices