Skip to content
This repository has been archived by the owner on Sep 14, 2022. It is now read-only.

Bump typhoeus from 0.3.3 to 1.3.1 #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dependabot-preview[bot]
Copy link

Bumps typhoeus from 0.3.3 to 1.3.1.

Changelog

Sourced from typhoeus's changelog.

Changelog

Master

Full Changelog

1.1.2

Full Changelog

1.1.1

Full Changelog

1.1.0

Full Changelog

  • Unless specified Expect header is set to be empty to avoid 100 continue
    to be set when using PUT
  • Add global config option Typhoeus::Config.proxy

1.0.2

Full Changelog

1.0.1

Full Changelog

1.0.0

Full Changelog

0.8.0

Full Changelog

  • EasyFactory: Reduced object allocations and method calls during deprecated
    option handling and option sanitization.
    (Tasos Laskos)
  • Response (Tasos Laskos)
    • Header
      • #process_pair: Halved #set_value calls.
      • #set_value: Minimized Hash accesses.
      • #parse: Use String#start_with? instead of Regexp match.
      • #process_line: Optimized key/value sanitization.
    • Status
      • #timed_out?: Only return true when #return_code is operation_timedout.
... (truncated)
Upgrade guide

Sourced from typhoeus's upgrade guide.

Upgrade guide

0.5

Options

Fix the option names, because some were renamed. The errors should point you in the right direction:

Typhoeus.get("www.example.com", follow_location: true)
# Ethon::Errors::InvalidOption: The option: follow_location is invalid.
# Please try followlocation instead of follow_location.
# ... [Backtrace]

Typhoeus.get("www.example.com", followlocation: true).code
#=> 200

Headers

Response#headers returns a hash now and replaces Response#headers_hash, use Response#response_headers for the raw string:

Typhoeus.get("www.example.com", followlocation: true).headers
#=> {
#      "date"=>"Tue, 06 Nov 2012 09:07:27 GMT",
#      "server"=>"Apache/2.2.3 (CentOS)",
#      "last-modified"=>"Wed, 09 Feb 2011 17:13:15 GMT",
#      "vary"=>"Accept-Encoding",
#      "connection"=>"close",
#      "content-type"=>"text/html; charset=UTF-8"
#   }

Typhoeus.get("www.example.com", followlocation: true).response_headers
#=> "HTTP/1.0 302 Found\r\nLocation: http://www.iana.org/domains/example/ [...]"

Params vs body

Make sure every request sends proper params and body (especially POST/PUT). :params becomes url parameter and :body request body. Before params for POST was smashed into the body.

Configuration

Create a global configuration in case you want to turn on verbose, memoize or block_connection:

Typhoeus.configure do |config|
  config.verbose = true
  config.memoize = true
end
</tr></table> ... (truncated)
Commits
  • 7e2233f bump version to the correct number.
  • e46e95a Merge pull request #602 from baweaver/patch-1
  • b56a7bb Merge pull request #608 from gabifiolek/update-docs
  • 6de4c18 Making Parallel Requests with Faraday + Typhoeus DOCS
  • 5b8983c Merge pull request #603 from najamelan/bugfix/doc_response_request
  • 3a07e7d Merge pull request #606 from najamelan/bugfix/doc_on_body_parameters-1
  • e774c57 The order of the parameters is wrong in the documentation for on_body
  • d6ccbc2 Change get to new because otherwise Request.get already returns a response.
  • 297c171 Update status.rb
  • 73990b4 Merge pull request #600 from zachwalton/master
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Note: This repo was added to Dependabot recently, so you'll receive a maximum of 10 PRs for your first few update runs. Once an update run creates fewer than 10 PRs we'll remove that limit.

You can always request more updates by clicking Bump now in your Dependabot dashboard.

Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
  • @dependabot use these labels will set the current labels as the default for future PRs for this repo and language
  • @dependabot use these reviewers will set the current reviewers as the default for future PRs for this repo and language
  • @dependabot use these assignees will set the current assignees as the default for future PRs for this repo and language
  • @dependabot use this milestone will set the current milestone as the default for future PRs for this repo and language
  • @dependabot badge me will comment on this PR with code to add a "Dependabot enabled" badge to your readme

Additionally, you can set the following in your Dependabot dashboard:

  • Update frequency (including time of day and day of week)
  • Automerge options (never/patch/minor, and dev/runtime dependencies)
  • Pull request limits (per update run and/or open at any time)
  • Out-of-range updates (receive only lockfile updates, if desired)
  • Security updates (receive only security updates, if desired)

Finally, you can contact us by mentioning @dependabot.

@dependabot-preview dependabot-preview bot added the dependencies Pull requests that update a dependency file label Sep 6, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
dependencies Pull requests that update a dependency file
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants