dina 0.4.4.0 → 0.5.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dina/authentication/authentication.rb +2 -2
- data/lib/dina/models/base_model.rb +6 -1
- data/lib/dina/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 52ee6aa08c01721d7d2b925a616f1800c303a7d5801ac7080ec3c2d2a270a04d
|
4
|
+
data.tar.gz: 0a2f3e2e2bf4d9cc8ddd4b3534fd8309dae734c02299cac986e36abaa15431cb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9352df0039a613fa279753da7f2464e572110887024be28bd486368ca2ee5d0afebc0bcffc535b30ce7779b997e8fc3f2b74e739a10d12b752a55d2c673608
|
7
|
+
data.tar.gz: 6f3560ea41463b841cf01affddc47165d90383c7c303f5f110bfcc96702a8f7b4ee8dbd1a7d8310ab7facc8086042a4de5eba2a1c0381a018c2a999a4a3295c2
|
@@ -11,8 +11,8 @@ module Dina
|
|
11
11
|
# password: "password provided by DINA admin in Keycloak",
|
12
12
|
# server_name: "used locally to reference the token",
|
13
13
|
# client_id: "provided by DINA admin in Keycloak",
|
14
|
-
# endpoint_url: "DINA API URL",
|
15
|
-
# authorization_url: "Keycloak authorization URL".
|
14
|
+
# endpoint_url: "DINA API URL without terminating slash",
|
15
|
+
# authorization_url: "Keycloak authorization URL without terminating slash".
|
16
16
|
# realm: "provided by DINA admin in Keycloak"
|
17
17
|
# }
|
18
18
|
#
|
@@ -12,7 +12,7 @@ module Dina
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def self.site
|
15
|
-
Dina::Authentication.endpoint_url + endpoint_path
|
15
|
+
Dina::Authentication.endpoint_url + "/" + endpoint_path
|
16
16
|
end
|
17
17
|
|
18
18
|
def self.custom_headers
|
@@ -23,6 +23,11 @@ module Dina
|
|
23
23
|
self.where("group.groupName": group).page(page).per(per)
|
24
24
|
end
|
25
25
|
|
26
|
+
def initialize(params = {})
|
27
|
+
params[:id] = SecureRandom.uuid if !params[:id]
|
28
|
+
super
|
29
|
+
end
|
30
|
+
|
26
31
|
def english_description
|
27
32
|
if self.respond_to?(:multilingualDescription)
|
28
33
|
multilingualDescription[:descriptions].select{|o| o[:lang] == "en"}.first[:desc]
|
data/lib/dina/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dina
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David P. Shorthouse
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-12-
|
11
|
+
date: 2022-12-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_api_client
|