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.
- checksums.yaml +4 -4
- data/lib/simple/http/helpers.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 30181490d4a18b86c6b5c0c777b59aa28c1b0e0cff681e8998756e2e2442b8cc
|
4
|
+
data.tar.gz: 21962cf2044ea97831ff42480bdb90492cfb7b1663dbfcd0eaf2f0898204c1ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5afc71c4e1fde015877b82085672bf6a7261422cb5d1d358bea69cced77a4f68d36b330166e570d50fa0b4cf98122a7c9ab93d0510f2a1e1bd0af27e70a0d56b
|
7
|
+
data.tar.gz: 2b5573ea6033a0f4747ab149830a8358936b339cf3c00eb26b9878c13acef5cdeab1b48063199ece681a344802870b0dda3029c118746d6ebb2ad776cb4cb990
|
data/lib/simple/http/helpers.rb
CHANGED
@@ -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.
|
18
|
-
return nil if params.
|
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.
|
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-
|
11
|
+
date: 2020-03-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: expectation
|