tweakphoeus 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23d2c8024725dae2b415610b97ee0e5175829e4574721e7bacfe21ef086109f5
4
- data.tar.gz: 23d98efe4fa4c1047ddcc0b9d1cf9f4704571884c78eb3ee134b04b19b841efc
3
+ metadata.gz: 171c63200a3392f58a6ea35dc29ada88ed5cf17e62fb4b4ef1b4c7e98624bfd3
4
+ data.tar.gz: 7506da9725d2e9da7974de2c6e7a442a3f020b2dee44d07938d706a740ec67a0
5
5
  SHA512:
6
- metadata.gz: 133aea529117a86cbbe52ff50f15b29c88f8793b9731e0e6032ddf47313f2d509d31a236484dea7d5156b0d7ea352a7eba31e4e441d0eed01d854e231f947dd5
7
- data.tar.gz: 1662e2482cb2d4fa39a1191412448ad9bbc1fddccb18f137f052ec8e028357270018575815db6677a1fb5cda5324823c36f6ca3dc04311478df05f15395f19d1
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
- > /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)
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)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Tweakphoeus
4
- VERSION = '0.6.2'
4
+ VERSION = '0.6.3'
5
5
  end
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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tweakphoeus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Martin Garcia