httparty 0.18.0 → 0.18.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
- SHA1:
3
- metadata.gz: 4ea88350f8b4511a4253ac20a607de4fe8d18024
4
- data.tar.gz: 4da05068909376452ac6274df706c94eba694318
2
+ SHA256:
3
+ metadata.gz: 21274d1c09f3460352bc2aaf0cc00e6c0f9fb76eae45bc6dd0a65748c8d29463
4
+ data.tar.gz: c6900248181afef6fdf36381d4e33365345073a5a00f73498ac3e89259838f14
5
5
  SHA512:
6
- metadata.gz: 9938bf2e1fec14dbd7a260ae098a90f0c1fa07417bac2156f56fa7569ec0d3fd179c18c2fa2f720cc65086950ce7fd5fd84c07589e7a1e589843cffbafe1b6f3
7
- data.tar.gz: 85138c252a9adf15f4a9f929898296834a57b40f80476b5659f5644a6d9af2ae4ad46c005b625795e25aa562e5c02619a3cb19818bc13f23c5984f9be8f79663
6
+ metadata.gz: 116978b76182751905d115a80ac0e350637564cad3c8d2bf8938ffcac99ff0e782bd810aa9889db3218ad147d38632c75fd85521682d22d7bb654de8cf1d0352
7
+ data.tar.gz: 2048e308a2d88288f9ab373f1472acd9955aeb7870c2a8cbfc128d0b71ace183bc7011a20f2f20ce7c2e37e400b4c9c6a3b695fc6dc36144e583a7151fc4a5e1
@@ -15,7 +15,7 @@ Lint/EndAlignment:
15
15
  Enabled: false
16
16
 
17
17
  # Offense count: 1
18
- Lint/HandleExceptions:
18
+ Lint/SuppressedException:
19
19
  Enabled: false
20
20
 
21
21
  # Offense count: 5
@@ -1,3 +1,11 @@
1
+ ## 0.18.1
2
+
3
+ * [Rename cop Lint/HandleExceptions to Lint/SuppressedException](https://github.com/jnunemaker/httparty/pull/699).
4
+ * [Encode keys in query params](https://github.com/jnunemaker/httparty/pull/698).
5
+ * [Fixed SSL doc example](https://github.com/jnunemaker/httparty/pull/692).
6
+ * [Add a build status badge](https://github.com/jnunemaker/httparty/pull/701).
7
+
8
+
1
9
  ## 0.18.0
2
10
 
3
11
  * [Support gzip/deflate transfer encoding when explicit headers are set](https://github.com/jnunemaker/httparty/pull/678).
data/README.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # httparty
2
2
 
3
+ [![Build Status](https://travis-ci.org/jnunemaker/httparty.svg?branch=master)](https://travis-ci.org/jnunemaker/httparty)
4
+
3
5
  Makes http fun again! Ain't no party like a httparty, because a httparty don't stop.
4
6
 
5
7
  ## Install
@@ -79,7 +79,7 @@ class Client
79
79
  base_uri "https://example.com"
80
80
 
81
81
  def self.fetch
82
- get("/resources", pem: (File.read("#{File.expand_path('.')}/path/to/certs/cert.pem"), "123456")
82
+ get("/resources", pem: File.read("#{File.expand_path('.')}/path/to/certs/cert.pem"), pem_password: "123456")
83
83
  end
84
84
  end
85
85
  ```
@@ -1,14 +1,14 @@
1
1
  class HTTParty::CookieHash < Hash #:nodoc:
2
2
  CLIENT_COOKIES = %w(path expires domain path secure httponly samesite)
3
3
 
4
- def add_cookies(value)
5
- case value
4
+ def add_cookies(data)
5
+ case data
6
6
  when Hash
7
- merge!(value)
7
+ merge!(data)
8
8
  when String
9
- value.split('; ').each do |cookie|
10
- array = cookie.split('=', 2)
11
- self[array[0].to_sym] = array[1] if array[0]
9
+ data.split('; ').each do |cookie|
10
+ key, value = cookie.split('=', 2)
11
+ self[key.to_sym] = value if key
12
12
  end
13
13
  else
14
14
  raise "add_cookies only takes a Hash or a String"
@@ -27,7 +27,7 @@ module HTTParty
27
27
  normalized_keys = normalize_keys(key, value)
28
28
 
29
29
  normalized_keys.flatten.each_slice(2).inject('') do |string, (k, v)|
30
- string + "#{k}=#{ERB::Util.url_encode(v.to_s)}&"
30
+ string + "#{ERB::Util.url_encode(k)}=#{ERB::Util.url_encode(v.to_s)}&"
31
31
  end
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module HTTParty
2
- VERSION = "0.18.0"
2
+ VERSION = "0.18.1"
3
3
  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.18.0
4
+ version: 0.18.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: 2020-02-19 00:00:00.000000000 Z
12
+ date: 2020-06-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: multi_xml
@@ -129,8 +129,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
129
129
  - !ruby/object:Gem::Version
130
130
  version: '0'
131
131
  requirements: []
132
- rubyforge_project:
133
- rubygems_version: 2.6.14
132
+ rubygems_version: 3.1.2
134
133
  signing_key:
135
134
  specification_version: 4
136
135
  summary: Makes http fun! Also, makes consuming restful web services dead easy.