alma_api 2.0.0 → 2.0.1
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/alma_api/client.rb +2 -2
- data/lib/alma_api/version.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: b21e33c3c303e5ea01c584595be071a745c0c1738004bf5c3d5c040e653e93ed
|
|
4
|
+
data.tar.gz: fcd35e87137dac29d4aabe35e17f5aad838cc90c27d652e05013f66fe731cecc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8dab34fccec10fcb9c26e40782ada02fc5c511c0c3120730b4ff807055eca514cab07ed193a9f8ae8d04455a37da997dd50d4c0d16cdd60ec018bd7b23c241b8
|
|
7
|
+
data.tar.gz: 62a5f0cad8b8303c17cb014942268d3382e6cb3f5ad951aedf74d0aa5a12fb1b7656bccdeb205ffe37ab45a6f899775dd7e8dc3f2150ae85f1a2fe3a064bf7ff
|
data/lib/alma_api/client.rb
CHANGED
|
@@ -89,10 +89,10 @@ module AlmaApi
|
|
|
89
89
|
|
|
90
90
|
# If the params contains a password parameter, delete that from the params
|
|
91
91
|
# and add it to the headers. This is a special case for the Alma API when
|
|
92
|
-
# authenticating a user.
|
|
92
|
+
# authenticating a user. The password must be url-encoded.
|
|
93
93
|
# @see https://developers.exlibrisgroup.com/alma/apis/docs/users/UE9TVCAvYWxtYXdzL3YxL3VzZXJzL3t1c2VyX2lkfQ==/
|
|
94
94
|
if (password = params.delete(:password) || params.delete("password")).present?
|
|
95
|
-
headers["Exl-User-Pw"] = password
|
|
95
|
+
headers["Exl-User-Pw"] = CGI.escape(password)
|
|
96
96
|
end
|
|
97
97
|
|
|
98
98
|
# Finally create and return the Faraday connection object.
|
data/lib/alma_api/version.rb
CHANGED