simple-http 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/simple/http/helpers.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 208c9a4755a3fe8a5a5567458d470fb9c7725dc987c9949c314978d1dbe1ec07
4
- data.tar.gz: 248c91da8c2c7b14f63a28c147f147aef924bbabdf80a05624b9db33822edb0f
3
+ metadata.gz: 30181490d4a18b86c6b5c0c777b59aa28c1b0e0cff681e8998756e2e2442b8cc
4
+ data.tar.gz: 21962cf2044ea97831ff42480bdb90492cfb7b1663dbfcd0eaf2f0898204c1ee
5
5
  SHA512:
6
- metadata.gz: 7c75e8f51182f3306a571c29ed68c7f09a2ebe00da85b5baac81657f022187fbc706db2f207a979fe5a2510d730c4ee06e0930ae2dfb0451b88ef662d474b7f8
7
- data.tar.gz: c7c7d42adfc4c5a2dd2d1484d59d7d1fe911883f8c9d8cdd538a37a418235bfefe41ab5fe5c8cc9146c126d8dcaae13c79f1f8328eb3b8fa789ba0c2348efdfc
6
+ metadata.gz: 5afc71c4e1fde015877b82085672bf6a7261422cb5d1d358bea69cced77a4f68d36b330166e570d50fa0b4cf98122a7c9ab93d0510f2a1e1bd0af27e70a0d56b
7
+ data.tar.gz: 2b5573ea6033a0f4747ab149830a8358936b339cf3c00eb26b9878c13acef5cdeab1b48063199ece681a344802870b0dda3029c118746d6ebb2ad776cb4cb990
@@ -14,8 +14,8 @@ module Simple::HTTP::Helpers
14
14
  private
15
15
 
16
16
  def build_query(params)
17
- params = params.reject { |_k, v| v.blank? }
18
- return nil if params.blank?
17
+ params = params.reject { |_k, v| v == "" || v.nil? }
18
+ return nil if params.empty?
19
19
 
20
20
  params.map { |k, value| "#{k}=#{CGI.escape(value.to_s)}" }.join("&")
21
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - radiospiel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-03-05 00:00:00.000000000 Z
11
+ date: 2020-03-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: expectation