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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1fb957850976d1356b56000ef102e03638ff25ded2fc7d978ec9cd4399a51b4d
4
- data.tar.gz: 2dc78e6bd303d713bc5e61e2fdfc608f1d65e826edbe04e7bb17698fdc6e88af
3
+ metadata.gz: 9df4373808dbc9ab6b38c17bfa109d60e0c32b6aa5c0cc399045960478e238d0
4
+ data.tar.gz: 7cee656fb7e2311d8c6ca8dbb210061df3110b2822998f88e1d0a9c31c0f5ccb
5
5
  SHA512:
6
- metadata.gz: 73027a2b795d5611b76c5733bc5ec1cbcde1de34cc956e48f3bc52c22f473df5d9ce0dcc54540688ef7481669d61db185711b64ada6f1d04528ff459dbd6c9bb
7
- data.tar.gz: 6a9bfb4fd0d9f9579876334c219f0403fdb35a3dbf871bb0a884c9de07f86f7f95cdde9cd1434cdba86b0adbabe8c4613e8a30beab0d49db6ca404d741713f1f
6
+ metadata.gz: d9838dc2ca7fcaffdcef5443d7e0ec2ffc25d0cc282c9e22646c6467bffd4c1d19a544f50eeb915457afcd96ea07874773768d0829125f3e40fb4943f8faa458
7
+ data.tar.gz: a5520cbc1051f6e534aa270aaf63bb92b24ba8241a920f3e8f4c4055ca2dd352528a85d1ed55a1bbbba9e7d101bc716b057f438b7e1fbdd3a5ad2f9031947af9
@@ -1,3 +1,7 @@
1
+ ## v0.0.4 2019-10-23
2
+
3
+ - Fixed a client request issue due to a rubocop change
4
+
1
5
  ## v0.0.3 2019-10-23
2
6
 
3
7
  - Added method to check if resource types are available
@@ -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 unless uri.query&.any?
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
@@ -1,3 +1,3 @@
1
1
  module Passwordstate
2
- VERSION = '0.0.3'.freeze
2
+ VERSION = '0.0.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: passwordstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Olofsson