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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bf38b9ab048dec93ae1ed7cdc00746477bdfffe66394e3dca8c97dee19b85d2d
4
- data.tar.gz: 44f1439d888cf72395de49ae8b2192193cb31f0648d57abb00be1a4d5cdcdb32
3
+ metadata.gz: c6c779b8c0c77fd75ba94c8493d7212490e18ef477abdf687ad4e98e157dc941
4
+ data.tar.gz: 302e68948d767cd4b79f7ea3eca3268b67e74e7f9cbb42d3fdf13474b9646154
5
5
  SHA512:
6
- metadata.gz: 8e445cb04ac14bb07b658d2211e048a1d51c1002ce4e0c50303a73e82474b4e6b74ce1d9d17b30de35a43f0cc0db1e12eeedd4a80cbc924a6974224f9d1dc282
7
- data.tar.gz: 8c11645091d88847e45e4849d5782c9b562c98a5ef7613b502a5953263db5608e5f8eabadd5850089d85e06ce679912bc58716caec922e5c3cfb0e16a15bc56c
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.replace form.map{ |k, v| [k.to_s, v.is_a?(Integer) ? v.to_s : v] }.to_h
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.4.0"
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.0
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-05-14 00:00:00.000000000 Z
11
+ date: 2023-11-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable