nethttputils 0.4.4.0 → 0.4.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nethttputils.rb +1 -1
- data/nethttputils.gemspec +1 -1
- 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: c6c779b8c0c77fd75ba94c8493d7212490e18ef477abdf687ad4e98e157dc941
|
4
|
+
data.tar.gz: 302e68948d767cd4b79f7ea3eca3268b67e74e7f9cbb42d3fdf13474b9646154
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: efc6724c440ce92e73dd0c14b6d867e02bc4087aa731789f847fcb5312a2caa037834ff3d4a6f868ba1ccaab091063f7c0977094f3632217ca6263c11b22eb4b
|
7
|
+
data.tar.gz: '08b17e28b5bf7a0aaf9420f57dd32d343f3ee6bb4b93d75acb624a2db1d07cefe9464012b125806d5abba8df46aa125f9df3f573f88e4eb07c15dbd6db2809a3'
|
data/lib/nethttputils.rb
CHANGED
@@ -134,7 +134,7 @@ module NetHTTPUtils
|
|
134
134
|
# request.basic_auth *p(auth.map(&URI.method(:escape))) if auth
|
135
135
|
request.basic_auth *auth if auth
|
136
136
|
if (mtd == :POST || mtd == :PATCH) && !form.empty?
|
137
|
-
form
|
137
|
+
form = form.map{ |k, v| [k.to_s, v.is_a?(Integer) ? v.to_s : v] }.to_h
|
138
138
|
case type
|
139
139
|
when :json
|
140
140
|
request.body = JSON.dump form
|
data/nethttputils.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |spec|
|
2
2
|
spec.name = "nethttputils"
|
3
|
-
spec.version = "0.4.
|
3
|
+
spec.version = "0.4.5.0"
|
4
4
|
spec.summary = "this tool is like a pet that I adopted young and now I depend on, sorry"
|
5
5
|
spec.description = <<-EOF
|
6
6
|
Back in 2015 I was a guy automating things at my job and two scripts had a common need --
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nethttputils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Victor Maslov aka Nakilon
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-11-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|