Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package rubygem-excon for openSUSE:Factory checked in at 2022-10-12 18:22:33 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-excon (Old) and /work/SRC/openSUSE:Factory/.rubygem-excon.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-excon" Wed Oct 12 18:22:33 2022 rev:38 rq:1010053 version:0.93.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-excon/rubygem-excon.changes 2022-08-07 18:33:55.541152136 +0200 +++ /work/SRC/openSUSE:Factory/.rubygem-excon.new.2275/rubygem-excon.changes 2022-10-12 18:22:36.913353237 +0200 @@ -1,0 +2,6 @@ +Mon Oct 10 13:03:49 UTC 2022 - Stephan Kulow <[email protected]> + +updated to version 0.93.0 + no changelog found + +------------------------------------------------------------------- Old: ---- excon-0.92.4.gem New: ---- excon-0.93.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-excon.spec ++++++ --- /var/tmp/diff_new_pack.GgLWPA/_old 2022-10-12 18:22:40.433362031 +0200 +++ /var/tmp/diff_new_pack.GgLWPA/_new 2022-10-12 18:22:40.437362041 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-excon -Version: 0.92.4 +Version: 0.93.0 Release: 0 %define mod_name excon %define mod_full_name %{mod_name}-%{version} ++++++ excon-0.92.4.gem -> excon-0.93.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/README.md new/README.md --- old/README.md 2022-07-20 18:50:30.000000000 +0200 +++ new/README.md 2022-09-29 22:07:13.000000000 +0200 @@ -127,6 +127,38 @@ # expect one or more status codes, or raise an error connection.request(:expects => [200, 201], :method => :get) +# use basic authentication by supplying credentials in the URL or as parameters +connection = Excon.new('http://username:[email protected]') +# Note: username & password is unescaped for request, so you should provide escaped values here +# i. e. instead of `password: 'pa%%word'` you should use `password: Excon::Utils.escape_uri('pa%%word')`, +# which return `pa%25%25word` +connection = Excon.new('http://secure.geemus.com', + :user => 'username', :password => 'password') + +# use custom uri parser +require 'addressable/uri' +connection = Excon.new('http://geemus.com/', uri_parser: Addressable::URI) +``` + +Compared to web browsers and other http client libraries, e.g. curl, Excon is a bit more low-level and doesn't assume much by default. If you are seeing different results compared to other clients, the following options might help: + +```ruby +# opt-in to omitting port from http:80 and https:443 +connection = Excon.new('http://geemus.com/', :omit_default_port => true) + +# accept gzip encoding +connection = Excon.new('http://geemus.com/', :headers => { "Accept-Encoding" => "gzip" }) + +# turn off peer verification (less secure) +Excon.defaults[:ssl_verify_peer] = false +connection = Excon.new('https://...') +``` + +## Timeouts and Retries + +You can modify timeouts and define whether and how many (blocking) retries Excon should attempt if errors occur. + +```ruby # this request can be repeated safely, so retry on errors up to 4 times connection.request(:idempotent => true) @@ -137,6 +169,10 @@ # in between each retry connection.request(:idempotent => true, :retry_limit => 6, :retry_interval => 5) +# specify the errors on which to retry (default Timeout, Socket, HTTPStatus) +# only retry on timeouts +connection.request(:idempotent => true, :retry_limit => 6, :retry_interval => 5, :retry_errors => [Excon::Error::Timeout] ) + # set longer read_timeout (default is 60 seconds) connection.request(:read_timeout => 360) @@ -155,32 +191,6 @@ # opt-out of nonblocking operations for performance and/or as a workaround connection = Excon.new('http://geemus.com/', :nonblock => false) - -# use basic authentication by supplying credentials in the URL or as parameters -connection = Excon.new('http://username:[email protected]') -# Note: username & password is unescaped for request, so you should provide escaped values here -# i. e. instead of `password: 'pa%%word'` you should use `password: Excon::Utils.escape_uri('pa%%word')`, -# which return `pa%25%25word` -connection = Excon.new('http://secure.geemus.com', - :user => 'username', :password => 'password') - -# use custom uri parser -require 'addressable/uri' -connection = Excon.new('http://geemus.com/', uri_parser: Addressable::URI) -``` - -Compared to web browsers and other http client libraries, e.g. curl, Excon is a bit more low-level and doesn't assume much by default. If you are seeing different results compared to other clients, the following options might help: - -```ruby -# opt-in to omitting port from http:80 and https:443 -connection = Excon.new('http://geemus.com/', :omit_default_port => true) - -# accept gzip encoding -connection = Excon.new('http://geemus.com/', :headers => { "Accept-Encoding" => "gzip" }) - -# turn off peer verification (less secure) -Excon.defaults[:ssl_verify_peer] = false -connection = Excon.new('https://...') ``` ## Chunked Requests Binary files old/checksums.yaml.gz and new/checksums.yaml.gz differ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/excon/ssl_socket.rb new/lib/excon/ssl_socket.rb --- old/lib/excon/ssl_socket.rb 2022-07-20 18:50:30.000000000 +0200 +++ new/lib/excon/ssl_socket.rb 2022-09-29 22:07:13.000000000 +0200 @@ -133,7 +133,7 @@ # Server Name Indication (SNI) RFC 3546 if @socket.respond_to?(:hostname=) - @socket.hostname = @data[:host] + @socket.hostname = @data[:ssl_verify_peer_host] || @data[:host] end begin diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/excon/version.rb new/lib/excon/version.rb --- old/lib/excon/version.rb 2022-07-20 18:50:30.000000000 +0200 +++ new/lib/excon/version.rb 2022-09-29 22:07:13.000000000 +0200 @@ -1,4 +1,4 @@ # frozen_string_literal: true module Excon - VERSION = '0.92.4' + VERSION = '0.93.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2022-07-20 18:50:30.000000000 +0200 +++ new/metadata 2022-09-29 22:07:13.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: excon version: !ruby/object:Gem::Version - version: 0.92.4 + version: 0.93.0 platform: ruby authors: - dpiddy (Dan Peterson) @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2022-07-20 00:00:00.000000000 Z +date: 2022-09-29 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rspec
