insights-api-common 3.9.0 → 3.10.0
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
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5622d9061e04f7bde11f766efbdefc38e514ffd02e0c17dc633383a55f743cec
|
4
|
+
data.tar.gz: d38c11d43f867259c661127ca53e0e7de1c014385953a516583d9f94b9aee454
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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 ||=
|
17
|
+
@acls ||= api.get_principal_access(@app_name_filter).data
|
19
18
|
end
|
20
19
|
self
|
21
20
|
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.
|
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-
|
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.
|
402
|
+
rubygems_version: 3.0.3
|
403
403
|
signing_key:
|
404
404
|
specification_version: 4
|
405
405
|
summary: Common Utilites for Insights microservices
|