passwordstate 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/passwordstate/client.rb +1 -1
- data/lib/passwordstate/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: 9df4373808dbc9ab6b38c17bfa109d60e0c32b6aa5c0cc399045960478e238d0
|
4
|
+
data.tar.gz: 7cee656fb7e2311d8c6ca8dbb210061df3110b2822998f88e1d0a9c31c0f5ccb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9838dc2ca7fcaffdcef5443d7e0ec2ffc25d0cc282c9e22646c6467bffd4c1d19a544f50eeb915457afcd96ea07874773768d0829125f3e40fb4943f8faa458
|
7
|
+
data.tar.gz: a5520cbc1051f6e534aa270aaf63bb92b24ba8241a920f3e8f4c4055ca2dd352528a85d1ed55a1bbbba9e7d101bc716b057f438b7e1fbdd3a5ad2f9031947af9
|
data/CHANGELOG.md
CHANGED
data/lib/passwordstate/client.rb
CHANGED
@@ -80,7 +80,7 @@ module Passwordstate
|
|
80
80
|
def request(method, api_path, options = {})
|
81
81
|
uri = URI(server_url + "/#{api_type}/" + api_path)
|
82
82
|
uri.query = URI.encode_www_form(options.fetch(:query)) if options.key? :query
|
83
|
-
uri.query = nil
|
83
|
+
uri.query = nil if uri.query.nil? || uri.query.empty?
|
84
84
|
|
85
85
|
req_obj = Net::HTTP.const_get(method.to_s.capitalize.to_sym).new uri
|
86
86
|
if options.key? :body
|