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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '0285277d54273b7ad7bc88e92941b3b5dc8d687f185da09e178b4634374f9888'
4
- data.tar.gz: 74705ba4e5216b96c4c2855a6122d888d26fcf13d5c59cc2d6816851971b573a
3
+ metadata.gz: b21e33c3c303e5ea01c584595be071a745c0c1738004bf5c3d5c040e653e93ed
4
+ data.tar.gz: fcd35e87137dac29d4aabe35e17f5aad838cc90c27d652e05013f66fe731cecc
5
5
  SHA512:
6
- metadata.gz: bdf8362e4e389cecb7c5d51627115b54d764696903b1745415a651bc375788c4b12b8c061dd476222e60b7f714a100d0a419ba755f017bc8bd2761bcac4ea9c2
7
- data.tar.gz: afe0e7c68cfb16c0564dad09b7a67dd2896b023abf9a710e7dbd58d1e2815a7999a9b2e6f23846d1644f516537e2621161dc2abc32669919cdd5ce683cdb8955
6
+ metadata.gz: 8dab34fccec10fcb9c26e40782ada02fc5c511c0c3120730b4ff807055eca514cab07ed193a9f8ae8d04455a37da997dd50d4c0d16cdd60ec018bd7b23c241b8
7
+ data.tar.gz: 62a5f0cad8b8303c17cb014942268d3382e6cb3f5ad951aedf74d0aa5a12fb1b7656bccdeb205ffe37ab45a6f899775dd7e8dc3f2150ae85f1a2fe3a064bf7ff
@@ -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.
@@ -1,3 +1,3 @@
1
1
  module AlmaApi
2
- VERSION = "2.0.0".freeze
2
+ VERSION = "2.0.1".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alma_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - René Sprotte