ehsso 0.1.6 → 0.1.7
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 +4 -4
- data/lib/ehsso/person.rb +3 -5
- data/lib/ehsso/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 11c176e7fa988fbabe632c4b0ffc2d782b21e791
|
|
4
|
+
data.tar.gz: 8d6a61a5f92074fdbb24f20942892df9ff9e3a68
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 389c8a57c96b216966cf421078138722c3dc5e4ebe947da755f86a65ea69511e8a9e15b3192a3b5a45aceeb996e702b329eb72e6b5e97359d6b5b02206747513
|
|
7
|
+
data.tar.gz: 2f5ca503ea0acf0cad5f1c793440868ccd405f5617e20743e5fe9e8c6808471e976a74bc76de1d69fb23fa0ca5964be7d697073b7e828303f4f841d0085febcf
|
data/lib/ehsso/person.rb
CHANGED
|
@@ -44,11 +44,6 @@ module Ehsso
|
|
|
44
44
|
def self.parse_from_request_header(header={})
|
|
45
45
|
person = Ehsso::Person.new()
|
|
46
46
|
|
|
47
|
-
unless header.is_a?(Hash)
|
|
48
|
-
person.last_error_message = "Request header argument is not a hash"
|
|
49
|
-
return person
|
|
50
|
-
end
|
|
51
|
-
|
|
52
47
|
# reference (mandatory)
|
|
53
48
|
if header['HTTP_NIBR521'].nil? || header['HTTP_NIBR521'].size == 0
|
|
54
49
|
person.last_error_message = "Unable to extract HTTP_NIBR* porperties from request header"
|
|
@@ -65,6 +60,9 @@ module Ehsso
|
|
|
65
60
|
person.send(method, header[key]) if header[key] && header[key].strip.size > 0
|
|
66
61
|
end
|
|
67
62
|
|
|
63
|
+
return person
|
|
64
|
+
rescue => e
|
|
65
|
+
person.last_error_message = e.to_s
|
|
68
66
|
return person
|
|
69
67
|
end
|
|
70
68
|
|
data/lib/ehsso/version.rb
CHANGED