httparty 0.19.0 → 0.19.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of httparty might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +7 -2
- data/Changelog.md +4 -0
- data/lib/httparty/hash_conversions.rb +1 -1
- data/lib/httparty/request/body.rb +1 -1
- data/lib/httparty/version.rb +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: 134f3cf0f9ea479c707305768291658882805cb9f0862f470fa72bc1f9dece77
|
4
|
+
data.tar.gz: f4298e1b5f0faa9ac2b39f1c98b58771b320ea9f1cdb0e97eb6267298b1b39b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1df45da2bc90c9b7a768ebf6c185140cf17ad22e4df7feb9209ff6ba8c091400e909ae67bcdbedaebc99754c517f42de9bd783153a3733d82a55bd18986ebd66
|
7
|
+
data.tar.gz: 9c618140ead8569d8c6e5468ac11e60af5ff416b815be83d66e730c5726aac5cecbaf381821c46cd5e625db3bb6b79ef5aa41409efbf4e5f8169f78b2293685d
|
data/.github/workflows/ci.yml
CHANGED
@@ -5,7 +5,12 @@ jobs:
|
|
5
5
|
runs-on: ubuntu-latest
|
6
6
|
strategy:
|
7
7
|
matrix:
|
8
|
-
ruby:
|
8
|
+
ruby:
|
9
|
+
- 2.3
|
10
|
+
- 2.4
|
11
|
+
- 2.5
|
12
|
+
- 2.6
|
13
|
+
- 2.7
|
9
14
|
steps:
|
10
15
|
- name: Check out repository code
|
11
16
|
uses: actions/checkout@v2
|
@@ -17,7 +22,7 @@ jobs:
|
|
17
22
|
restore-keys: |
|
18
23
|
${{ runner.os }}-gem-
|
19
24
|
- name: Set up Ruby
|
20
|
-
uses:
|
25
|
+
uses: ruby/setup-ruby@v1
|
21
26
|
with:
|
22
27
|
ruby-version: ${{ matrix.ruby }}
|
23
28
|
- name: Install bundler
|
data/Changelog.md
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 0.19.1
|
2
|
+
|
3
|
+
* [Remove use of unary + method for creating non-frozen string to increase compatibility with older versions of ruby](https://github.com/jnunemaker/httparty/commit/4416141d37fd71bdba4f37589ec265f55aa446ce)
|
4
|
+
|
1
5
|
## 0.19.0
|
2
6
|
|
3
7
|
* [Multipart/Form-Data: rewind files after read](https://github.com/jnunemaker/httparty/pull/709)
|
@@ -28,7 +28,7 @@ module HTTParty
|
|
28
28
|
def self.normalize_param(key, value)
|
29
29
|
normalized_keys = normalize_keys(key, value)
|
30
30
|
|
31
|
-
normalized_keys.flatten.each_slice(2).inject(
|
31
|
+
normalized_keys.flatten.each_slice(2).inject(''.dup) do |string, (k, v)|
|
32
32
|
string << "#{ERB::Util.url_encode(k)}=#{ERB::Util.url_encode(v.to_s)}&"
|
33
33
|
end
|
34
34
|
end
|
@@ -35,7 +35,7 @@ module HTTParty
|
|
35
35
|
def generate_multipart
|
36
36
|
normalized_params = params.flat_map { |key, value| HashConversions.normalize_keys(key, value) }
|
37
37
|
|
38
|
-
multipart = normalized_params.inject(
|
38
|
+
multipart = normalized_params.inject(''.dup) do |memo, (key, value)|
|
39
39
|
memo << "--#{boundary}#{NEWLINE}"
|
40
40
|
memo << %(Content-Disposition: form-data; name="#{key}")
|
41
41
|
# value.path is used to support ActionDispatch::Http::UploadedFile
|
data/lib/httparty/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: httparty
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.19.
|
4
|
+
version: 0.19.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Nunemaker
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2021-09-
|
12
|
+
date: 2021-09-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: multi_xml
|