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 +5 -5
- data/.rubocop_todo.yml +1 -1
- data/Changelog.md +8 -0
- data/README.md +2 -0
- data/docs/README.md +1 -1
- data/lib/httparty/cookie_hash.rb +6 -6
- data/lib/httparty/hash_conversions.rb +1 -1
- data/lib/httparty/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 21274d1c09f3460352bc2aaf0cc00e6c0f9fb76eae45bc6dd0a65748c8d29463
|
4
|
+
data.tar.gz: c6900248181afef6fdf36381d4e33365345073a5a00f73498ac3e89259838f14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 116978b76182751905d115a80ac0e350637564cad3c8d2bf8938ffcac99ff0e782bd810aa9889db3218ad147d38632c75fd85521682d22d7bb654de8cf1d0352
|
7
|
+
data.tar.gz: 2048e308a2d88288f9ab373f1472acd9955aeb7870c2a8cbfc128d0b71ace183bc7011a20f2f20ce7c2e37e400b4c9c6a3b695fc6dc36144e583a7151fc4a5e1
|
data/.rubocop_todo.yml
CHANGED
data/Changelog.md
CHANGED
@@ -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
data/docs/README.md
CHANGED
@@ -79,7 +79,7 @@ class Client
|
|
79
79
|
base_uri "https://example.com"
|
80
80
|
|
81
81
|
def self.fetch
|
82
|
-
get("/resources", pem:
|
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
|
```
|
data/lib/httparty/cookie_hash.rb
CHANGED
@@ -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(
|
5
|
-
case
|
4
|
+
def add_cookies(data)
|
5
|
+
case data
|
6
6
|
when Hash
|
7
|
-
merge!(
|
7
|
+
merge!(data)
|
8
8
|
when String
|
9
|
-
|
10
|
-
|
11
|
-
self[
|
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
|
|
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.18.
|
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-
|
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
|
-
|
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.
|