Hello community, here is the log from the commit of package rubygem-excon for openSUSE:Factory checked in at 2018-07-18 22:49:29 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/rubygem-excon (Old) and /work/SRC/openSUSE:Factory/.rubygem-excon.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "rubygem-excon" Wed Jul 18 22:49:29 2018 rev:23 rq:621000 version:0.62.0 Changes: -------- --- /work/SRC/openSUSE:Factory/rubygem-excon/rubygem-excon.changes 2018-02-12 10:13:36.964962360 +0100 +++ /work/SRC/openSUSE:Factory/.rubygem-excon.new/rubygem-excon.changes 2018-07-18 22:49:34.151830447 +0200 @@ -1,0 +2,24 @@ +Wed Mar 28 04:28:56 UTC 2018 - factory-a...@kulow.org + +- updated to version 0.62.0 + see installed changelog.txt + + 0.62.0 2018-03-27 + ================= + + remove binmode call for StringIO objects + +------------------------------------------------------------------- +Tue Mar 20 10:08:08 UTC 2018 - factory-a...@kulow.org + +- updated to version 0.61.0 + see installed changelog.txt + + 0.61.0 2018-03-16 + ================= + + use default ports for sockets if none specified + add ruby 2.4 and 2.5 to ci testing + follow relative location redirects + +------------------------------------------------------------------- Old: ---- excon-0.60.0.gem New: ---- excon-0.62.0.gem ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ rubygem-excon.spec ++++++ --- /var/tmp/diff_new_pack.EHavx3/_old 2018-07-18 22:49:35.723825236 +0200 +++ /var/tmp/diff_new_pack.EHavx3/_new 2018-07-18 22:49:35.727825223 +0200 @@ -24,7 +24,7 @@ # Name: rubygem-excon -Version: 0.60.0 +Version: 0.62.0 Release: 0 %define mod_name excon %define mod_full_name %{mod_name}-%{version} ++++++ excon-0.60.0.gem -> excon-0.62.0.gem ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.travis.yml new/.travis.yml --- old/.travis.yml 2017-12-15 21:15:57.000000000 +0100 +++ new/.travis.yml 2018-03-27 17:39:41.000000000 +0200 @@ -16,8 +16,9 @@ - 2.0 - 2.1 - 2.2 - - 2.3.3 - - 2.4.1 + - 2.3 + - 2.4 + - 2.5 - jruby - rbx-3.2 - ree diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/changelog.txt new/changelog.txt --- old/changelog.txt 2017-12-15 21:15:57.000000000 +0100 +++ new/changelog.txt 2018-03-27 17:39:41.000000000 +0200 @@ -1,3 +1,15 @@ +0.62.0 2018-03-27 +================= + +remove binmode call for StringIO objects + +0.61.0 2018-03-16 +================= + +use default ports for sockets if none specified +add ruby 2.4 and 2.5 to ci testing +follow relative location redirects + 0.60.0 2017-12-15 ================= 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/connection.rb new/lib/excon/connection.rb --- old/lib/excon/connection.rb 2017-12-15 21:15:57.000000000 +0100 +++ new/lib/excon/connection.rb 2018-03-27 17:39:41.000000000 +0200 @@ -163,7 +163,7 @@ elsif body.nil? socket.write(request) # write out request + headers else # write out body - if body.respond_to?(:binmode) + if body.respond_to?(:binmode) && !body.is_a?(StringIO) body.binmode end if body.respond_to?(:rewind) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/excon/middlewares/redirect_follower.rb new/lib/excon/middlewares/redirect_follower.rb --- old/lib/excon/middlewares/redirect_follower.rb 2017-12-15 21:15:57.000000000 +0100 +++ new/lib/excon/middlewares/redirect_follower.rb 2018-03-27 17:39:41.000000000 +0200 @@ -17,7 +17,8 @@ uri_parser = datum[:uri_parser] || Excon.defaults[:uri_parser] location = get_header(datum, 'Location') - uri = uri_parser.parse(location) + base_uri = Excon::Utils.request_uri(datum) + uri = uri_parser.join(base_uri, location) # delete old/redirect response response = datum.delete(:response) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/lib/excon/socket.rb new/lib/excon/socket.rb --- old/lib/excon/socket.rb 2017-12-15 21:15:57.000000000 +0100 +++ new/lib/excon/socket.rb 2018-03-27 17:39:41.000000000 +0200 @@ -24,6 +24,7 @@ def initialize(data = {}) @data = data @nonblock = data[:nonblock] + @port ||= @data[:port] || 80 @read_buffer = String.new @eof = false connect @@ -93,7 +94,7 @@ args = [@data[:proxy][:hostname], @data[:proxy][:port], family, ::Socket::Constants::SOCK_STREAM] else family = @data[:family] || ::Socket::Constants::AF_UNSPEC - args = [@data[:hostname], @data[:port], family, ::Socket::Constants::SOCK_STREAM] + args = [@data[:hostname], @port, family, ::Socket::Constants::SOCK_STREAM] end if RUBY_VERSION >= '1.9.2' && defined?(RUBY_ENGINE) && RUBY_ENGINE == 'ruby' args << nil << nil << false # no reverse lookup 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 2017-12-15 21:15:57.000000000 +0100 +++ new/lib/excon/ssl_socket.rb 2018-03-27 17:39:41.000000000 +0200 @@ -6,6 +6,7 @@ end def initialize(data = {}) + @port = data[:port] || 443 super # create ssl context 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 2017-12-15 21:15:57.000000000 +0100 +++ new/lib/excon/version.rb 2018-03-27 17:39:41.000000000 +0200 @@ -1,4 +1,4 @@ # frozen_string_literal: true module Excon - VERSION = '0.60.0' + VERSION = '0.62.0' end diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/metadata new/metadata --- old/metadata 2017-12-15 21:15:57.000000000 +0100 +++ new/metadata 2018-03-27 17:39:41.000000000 +0200 @@ -1,7 +1,7 @@ --- !ruby/object:Gem::Specification name: excon version: !ruby/object:Gem::Version - version: 0.60.0 + version: 0.62.0 platform: ruby authors: - dpiddy (Dan Peterson) @@ -10,7 +10,7 @@ autorequire: bindir: bin cert_chain: [] -date: 2017-12-15 00:00:00.000000000 Z +date: 2018-03-27 00:00:00.000000000 Z dependencies: - !ruby/object:Gem::Dependency name: rspec diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/spec/support/shared_examples/shared_example_for_clients.rb new/spec/support/shared_examples/shared_example_for_clients.rb --- old/spec/support/shared_examples/shared_example_for_clients.rb 2017-12-15 21:15:57.000000000 +0100 +++ new/spec/support/shared_examples/shared_example_for_clients.rb 2018-03-27 17:39:41.000000000 +0200 @@ -163,6 +163,15 @@ end context 'when a string is the body paramter' do + it 'does not change the econding of the body' do + skip unless RUBY_VERSION >= '1.9' + + string_body = '¥£€' + expect do + conn.request(method: :post, path: '/echo', body: string_body) + end.to_not change { string_body.encoding } + end + context 'without request_block' do describe Excon::Response do it "#body equals 'x' * 100)" do diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/tests/middlewares/redirect_follower_tests.rb new/tests/middlewares/redirect_follower_tests.rb --- old/tests/middlewares/redirect_follower_tests.rb 2017-12-15 21:15:58.000000000 +0100 +++ new/tests/middlewares/redirect_follower_tests.rb 2018-03-27 17:39:41.000000000 +0200 @@ -62,6 +62,38 @@ env_restore end +Shindo.tests('Excon redirect support for relative Location headers with dot segments') do + env_init + + tests("request(:method => :get, :path => '/foo/baz/').body").returns('/foo/bar/') do + Excon.stub( + { :path => '/foo/baz/' }, + { + :headers => { 'Location' => '../bar/' }, + :body => '/foo/baz/', + :status => 301 + } + ) + + Excon.stub( + { :path => '/foo/bar/' }, + { + :body => '/foo/bar/', + :status => 200 + } + ) + + Excon.get( + 'http://127.0.0.1:9292', + :path => '/foo/baz/', + :middlewares => Excon.defaults[:middlewares] + [Excon::Middleware::RedirectFollower], + :mock => true + ).body + end + + env_restore +end + Shindo.tests("Excon redirecting post request") do env_init