tweakphoeus 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -1
- data/lib/tweakphoeus/version.rb +1 -1
- data/lib/tweakphoeus.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 171c63200a3392f58a6ea35dc29ada88ed5cf17e62fb4b4ef1b4c7e98624bfd3
|
|
4
|
+
data.tar.gz: 7506da9725d2e9da7974de2c6e7a442a3f020b2dee44d07938d706a740ec67a0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ce347b9def0b777b1fe73ae6f57ee99f493ea3059f90a764076109cb81f681d748cc73d7f08e9de5bde2ae0623d78cd5d1e47864eba469e597d7b8a1c884a9bd
|
|
7
|
+
data.tar.gz: deaee66b33576d2cdbe66f0bf3a2c65c86db5ea016806a10ae460344d05db5652c262bf1064b9727d2cc1e323970bde5935594f7db6aa8a385b5786f45ef4145
|
data/CHANGELOG.md
CHANGED
|
@@ -48,4 +48,8 @@ Upgrading Typhoeus dependency to 1.4.0
|
|
|
48
48
|
|
|
49
49
|
-- v0.6.2 - Fixing issues with RefererList calls
|
|
50
50
|
- Solves an issue with `RefererList` module calls
|
|
51
|
-
>
|
|
51
|
+
> /Users/davidmartingarcia/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/tweakphoeus-0.6.1/lib/tweakphoeus.rb:36:in `post': undefined method `referer_from_headers' for #<Tweakphoeus::Client:0x00007fec6b13dcd8> (NoMethodError)
|
|
52
|
+
|
|
53
|
+
-- v0.6.3 - Fixing issues with CookieJar module calls on Tweakphoeus::Client module
|
|
54
|
+
- Solves an issue with a missing CookieJar variable in the module calls
|
|
55
|
+
> /Users/davidmartingarcia/.rbenv/versions/2.7.4/lib/ruby/gems/2.7.0/gems/tweakphoeus-0.6.2/lib/tweakphoeus.rb:68:in `build_request_headers': undefined local variable or method `url' for #<Tweakphoeus::Client:0x00007ffa882acb48> (NameError)
|
data/lib/tweakphoeus/version.rb
CHANGED
data/lib/tweakphoeus.rb
CHANGED
|
@@ -52,7 +52,7 @@ module Tweakphoeus
|
|
|
52
52
|
private
|
|
53
53
|
|
|
54
54
|
def http_request(url, body: nil, params: nil, headers: nil, method: :get)
|
|
55
|
-
response = Typhoeus.send(method, url, body: body, params: params, headers: build_request_headers(headers),
|
|
55
|
+
response = Typhoeus.send(method, url, body: body, params: params, headers: build_request_headers(headers, url),
|
|
56
56
|
proxy: @proxy, proxyuserpwd: @proxyuserpwd, ssl_verifypeer: ssl_verifypeer)
|
|
57
57
|
|
|
58
58
|
@cookie_jar.obtain_cookies(response)
|
|
@@ -63,7 +63,7 @@ module Tweakphoeus
|
|
|
63
63
|
response
|
|
64
64
|
end
|
|
65
65
|
|
|
66
|
-
def build_request_headers(headers)
|
|
66
|
+
def build_request_headers(headers, url)
|
|
67
67
|
request_headers = merge_default_headers(headers)
|
|
68
68
|
request_headers['Cookie'] = @cookie_jar.cookie_string(url, headers)
|
|
69
69
|
request_headers['Referer'] = @referer_list.last_referer
|