conjur-api 5.2.0 → 5.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/conjur-api/version.rb +1 -1
- data/lib/conjur/build_object.rb +6 -1
- data/lib/conjur/cert_utils.rb +2 -0
- data/lib/conjur/configuration.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e48184760d9c40ab8a43ffeb451c3f733ba23cbe0cdb364efd13ac6183b68055
|
4
|
+
data.tar.gz: e31f3fee9f4f75038da1b3ad3ffcad72e5005c758b2fc1fc52cf00e0bc9deff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a215e37eda9fb96db4c2554d02fd88a862b7a34865fad86c080314b217bca494b88a0a3b431f49f6b06476c3bd17ab0ed6c678db7ab42c7c5310936fde75361
|
7
|
+
data.tar.gz: 2b381514ef1d02855e6ce96b635738b7ee0bcfc7b12367eca924d8e1cade02d45ebc8f8911cdd7d98b030d772d16b217859badc5885cc37d370829288b52f843
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Latest
|
2
2
|
|
3
|
+
# v5.2.1
|
4
|
+
|
5
|
+
* Fix `Conjur::BuildObject#build_object` so it only tries to create
|
6
|
+
instances of objects for classes that inherit from BaseObject.
|
7
|
+
* require `openssl` before using it.
|
8
|
+
|
3
9
|
# v5.2.0
|
4
10
|
|
5
11
|
* Adds support for the Role endpoint for searching and paging Role Members
|
data/lib/conjur-api/version.rb
CHANGED
data/lib/conjur/build_object.rb
CHANGED
@@ -33,12 +33,17 @@ module Conjur
|
|
33
33
|
def build_object id, credentials, default_class:
|
34
34
|
id = cast_to_id(id)
|
35
35
|
class_name = id.kind.classify.to_sym
|
36
|
+
find_class(class_name, default_class)
|
37
|
+
.new(id, credentials)
|
38
|
+
end
|
39
|
+
|
40
|
+
def find_class class_name, default_class
|
36
41
|
cls = if Conjur.constants.member?(class_name)
|
37
42
|
Conjur.const_get(class_name)
|
38
43
|
else
|
39
44
|
default_class
|
40
45
|
end
|
41
|
-
cls
|
46
|
+
cls < BaseObject ? cls : default_class
|
42
47
|
end
|
43
48
|
end
|
44
49
|
|
data/lib/conjur/cert_utils.rb
CHANGED
data/lib/conjur/configuration.rb
CHANGED