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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 11f43b51a670445d42c8eef37875fa9b2c4340edd67bff72cd1ba6b3dd7a0001
4
- data.tar.gz: b3a0a431cc81a2efde61d232468839001661ef07837a5a91471bc1123601d212
3
+ metadata.gz: 134f3cf0f9ea479c707305768291658882805cb9f0862f470fa72bc1f9dece77
4
+ data.tar.gz: f4298e1b5f0faa9ac2b39f1c98b58771b320ea9f1cdb0e97eb6267298b1b39b9
5
5
  SHA512:
6
- metadata.gz: 8621cfbba4e743544cfdf603a44bd347b4854a099eac6db284b7594151dbf68bf62b393ff445f67fbe4723e4156bb8e0e7760d72b4971a777968c8cdd3fd78e6
7
- data.tar.gz: 1f6f0ea5181a674b91cce360b9d9c3dab1b8a97affc78827aa1d07520066d4712ac93fad73583e439a876ddc80a75b20135c6656d396e3f394d5b3baf04eb127
6
+ metadata.gz: 1df45da2bc90c9b7a768ebf6c185140cf17ad22e4df7feb9209ff6ba8c091400e909ae67bcdbedaebc99754c517f42de9bd783153a3733d82a55bd18986ebd66
7
+ data.tar.gz: 9c618140ead8569d8c6e5468ac11e60af5ff416b815be83d66e730c5726aac5cecbaf381821c46cd5e625db3bb6b79ef5aa41409efbf4e5f8169f78b2293685d
@@ -5,7 +5,12 @@ jobs:
5
5
  runs-on: ubuntu-latest
6
6
  strategy:
7
7
  matrix:
8
- ruby: ['2.5', '2.6', '2.7']
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: actions/setup-ruby@v1
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(+'') do |string, (k, v)|
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(+'') do |memo, (key, value)|
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module HTTParty
4
- VERSION = '0.19.0'
4
+ VERSION = '0.19.1'
5
5
  end
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.0
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-09 00:00:00.000000000 Z
12
+ date: 2021-09-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_xml