Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-HTTP-Tinyish for 
openSUSE:Factory checked in at 2022-06-28 15:21:35
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-HTTP-Tinyish (Old)
 and      /work/SRC/openSUSE:Factory/.perl-HTTP-Tinyish.new.1548 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-HTTP-Tinyish"

Tue Jun 28 15:21:35 2022 rev:2 rq:985286 version:0.18

Changes:
--------
--- /work/SRC/openSUSE:Factory/perl-HTTP-Tinyish/perl-HTTP-Tinyish.changes      
2021-01-21 21:54:08.849766971 +0100
+++ 
/work/SRC/openSUSE:Factory/.perl-HTTP-Tinyish.new.1548/perl-HTTP-Tinyish.changes
    2022-06-28 15:21:46.605889049 +0200
@@ -1,0 +2,9 @@
+Tue Jun 21 03:06:57 UTC 2022 - Tina M??ller <[email protected]>
+
+- updated to 0.18
+   see /usr/share/doc/packages/perl-HTTP-Tinyish/Changes
+
+  0.18  2022-06-20 16:44:43 PDT
+          - Support max_redirect: 0 (skaji) #23
+
+-------------------------------------------------------------------

Old:
----
  HTTP-Tinyish-0.17.tar.gz

New:
----
  HTTP-Tinyish-0.18.tar.gz
  cpanspec.yml

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ perl-HTTP-Tinyish.spec ++++++
--- /var/tmp/diff_new_pack.eIg8X6/_old  2022-06-28 15:21:47.709890697 +0200
+++ /var/tmp/diff_new_pack.eIg8X6/_new  2022-06-28 15:21:47.713890703 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-HTTP-Tinyish
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,17 +16,16 @@
 #
 
 
+%define cpan_name HTTP-Tinyish
 Name:           perl-HTTP-Tinyish
-Version:        0.17
+Version:        0.18
 Release:        0
-%define cpan_name HTTP-Tinyish
-Summary:        HTTP::Tiny compatible HTTP client wrappers
 License:        Artistic-1.0 OR GPL-1.0-or-later
-Group:          Development/Libraries/Perl
+Summary:        HTTP::Tiny compatible HTTP client wrappers
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{cpan_name}-%{version}.tar.gz
+Source1:        cpanspec.yml
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(File::Which)
@@ -51,11 +50,11 @@
 without an HTTPS support in built-in HTTP library.
 
 %prep
-%setup -q -n %{cpan_name}-%{version}
+%autosetup  -n %{cpan_name}-%{version}
 
 %build
 perl Makefile.PL INSTALLDIRS=vendor
-make %{?_smp_mflags}
+%make_build
 
 %check
 make test
@@ -66,7 +65,6 @@
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
 %doc Changes README
 %license LICENSE
 

++++++ HTTP-Tinyish-0.17.tar.gz -> HTTP-Tinyish-0.18.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/Changes 
new/HTTP-Tinyish-0.18/Changes
--- old/HTTP-Tinyish-0.17/Changes       2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/Changes       2022-06-21 01:44:45.000000000 +0200
@@ -1,5 +1,8 @@
 Revision history for HTTP-Tinyish
 
+0.18  2022-06-20 16:44:43 PDT
+        - Support max_redirect: 0 (skaji) #23
+
 0.17  2020-07-07 16:55:12 PDT
         - Support saving error output from curl in internal errors (skaji)
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/LICENSE 
new/HTTP-Tinyish-0.18/LICENSE
--- old/HTTP-Tinyish-0.17/LICENSE       2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/LICENSE       2022-06-21 01:44:45.000000000 +0200
@@ -292,21 +292,21 @@
 
   - "Package" refers to the collection of files distributed by the Copyright
     Holder, and derivatives of that collection of files created through
-    textual modification. 
+    textual modification.
   - "Standard Version" refers to such a Package if it has not been modified,
     or has been modified in accordance with the wishes of the Copyright
-    Holder. 
+    Holder.
   - "Copyright Holder" is whoever is named in the copyright or copyrights for
-    the package. 
+    the package.
   - "You" is you, if you're thinking about copying or distributing this 
Package.
   - "Reasonable copying fee" is whatever you can justify on the basis of media
     cost, duplication charges, time of people involved, and so on. (You will
     not be required to justify it to the Copyright Holder, but only to the
-    computing community at large as a market that must bear the fee.) 
+    computing community at large as a market that must bear the fee.)
   - "Freely Available" means that no fee is charged for the item itself, though
     there may be fees involved in handling the item. It also means that
     recipients of the item may redistribute it under the same conditions they
-    received it. 
+    received it.
 
 1. You may make and give away verbatim copies of the source form of the
 Standard Version of this Package without restriction, provided that you
@@ -373,7 +373,7 @@
 
 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
 WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
-MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
+MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
 
 The End
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/MANIFEST 
new/HTTP-Tinyish-0.18/MANIFEST
--- old/HTTP-Tinyish-0.17/MANIFEST      2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/MANIFEST      2022-06-21 01:44:45.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.012.
+# This file was automatically generated by Dist::Zilla::Plugin::Manifest 
v6.025.
 Changes
 LICENSE
 MANIFEST
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/META.json 
new/HTTP-Tinyish-0.18/META.json
--- old/HTTP-Tinyish-0.17/META.json     2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/META.json     2022-06-21 01:44:45.000000000 +0200
@@ -4,7 +4,7 @@
       "Tatsuhiko Miyagawa"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "Dist::Milla version v1.0.20, Dist::Zilla version 6.012, 
CPAN::Meta::Converter version 2.143240",
+   "generated_by" : "Dist::Milla version v1.0.21, Dist::Zilla version 6.025, 
CPAN::Meta::Converter version 2.150010",
    "license" : [
       "perl_5"
    ],
@@ -31,7 +31,7 @@
       },
       "develop" : {
          "requires" : {
-            "Dist::Milla" : "v1.0.20",
+            "Dist::Milla" : "v1.0.21",
             "IO::Socket::SSL" : "1.42",
             "LWP" : "6",
             "LWP::Protocol::https" : "6",
@@ -67,16 +67,18 @@
          "web" : "https://github.com/miyagawa/HTTP-Tinyish";
       }
    },
-   "version" : "0.17",
+   "version" : "0.18",
    "x_contributors" : [
       "Nicolas R <[email protected]>",
       "Shoichi Kaji <[email protected]>",
+      "Stig Palmquist <[email protected]>",
       "Takahiro SHIMIZU <[email protected]>",
       "Tatsuhiko Miyagawa <[email protected]>",
       "Tatsuhiko Miyagawa <[email protected]>"
    ],
-   "x_generated_by_perl" : "v5.20.1",
-   "x_serialization_backend" : "Cpanel::JSON::XS version 4.09",
+   "x_generated_by_perl" : "v5.34.1",
+   "x_serialization_backend" : "Cpanel::JSON::XS version 4.29",
+   "x_spdx_expression" : "Artistic-1.0-Perl OR GPL-1.0-or-later",
    "x_static_install" : 1
 }
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/META.yml 
new/HTTP-Tinyish-0.18/META.yml
--- old/HTTP-Tinyish-0.17/META.yml      2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/META.yml      2022-06-21 01:44:45.000000000 +0200
@@ -8,7 +8,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'Dist::Milla version v1.0.20, Dist::Zilla version 6.012, 
CPAN::Meta::Converter version 2.143240'
+generated_by: 'Dist::Milla version v1.0.21, Dist::Zilla version 6.025, 
CPAN::Meta::Converter version 2.150010'
 license: perl
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -32,13 +32,15 @@
   bugtracker: https://github.com/miyagawa/HTTP-Tinyish/issues
   homepage: https://github.com/miyagawa/HTTP-Tinyish
   repository: https://github.com/miyagawa/HTTP-Tinyish.git
-version: '0.17'
+version: '0.18'
 x_contributors:
   - 'Nicolas R <[email protected]>'
   - 'Shoichi Kaji <[email protected]>'
+  - 'Stig Palmquist <[email protected]>'
   - 'Takahiro SHIMIZU <[email protected]>'
   - 'Tatsuhiko Miyagawa <[email protected]>'
   - 'Tatsuhiko Miyagawa <[email protected]>'
-x_generated_by_perl: v5.20.1
+x_generated_by_perl: v5.34.1
 x_serialization_backend: 'YAML::Tiny version 1.73'
+x_spdx_expression: 'Artistic-1.0-Perl OR GPL-1.0-or-later'
 x_static_install: 1
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/Makefile.PL 
new/HTTP-Tinyish-0.18/Makefile.PL
--- old/HTTP-Tinyish-0.17/Makefile.PL   2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/Makefile.PL   2022-06-21 01:44:45.000000000 +0200
@@ -1,4 +1,4 @@
-# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.012.
+# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker 
v6.025.
 use strict;
 use warnings;
 
@@ -26,7 +26,7 @@
     "JSON::PP" => 0,
     "Test::More" => "0.96"
   },
-  "VERSION" => "0.17",
+  "VERSION" => "0.18",
   "test" => {
     "TESTS" => "t/*.t"
   }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/README new/HTTP-Tinyish-0.18/README
--- old/HTTP-Tinyish-0.17/README        2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/README        2022-06-21 01:44:45.000000000 +0200
@@ -28,7 +28,7 @@
 
 BACKEND SELECTION
 
-    Backends are searched in the order of: LWP, HTTP::Tiny, Curl and Wget.
+    Backends are searched in the order of: LWP, HTTP::Tiny, curl and wget.
     HTTP::Tinyish will auto-detect if the backend also supports HTTPS, and
     use the appropriate backend based on the given URL to the request
     methods.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish/Curl.pm 
new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish/Curl.pm
--- old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish/Curl.pm      2020-07-08 
01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish/Curl.pm      2022-06-21 
01:44:45.000000000 +0200
@@ -102,13 +102,14 @@
     my($self, $url, $opts) = @_;
 
     my @options = (
-        '--location',
         '--silent',
         '--show-error',
         '--max-time', ($self->{timeout} || 60),
-        '--max-redirs', ($self->{max_redirect} || 5),
         '--user-agent', ($self->{agent} || 
"HTTP-Tinyish/$HTTP::Tinyish::VERSION"),
     );
+    if (my $max_redirect = exists $self->{max_redirect} ? 
$self->{max_redirect} : 5) {
+        push @options, '--location', '--max-redirs', $max_redirect;
+    }
 
     my %headers;
     if ($self->{default_headers}) {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish/LWP.pm 
new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish/LWP.pm
--- old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish/LWP.pm       2020-07-08 
01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish/LWP.pm       2022-06-21 
01:44:45.000000000 +0200
@@ -103,7 +103,7 @@
     $agent->parse_head(0);
     $agent->env_proxy;
     $agent->timeout(delete $attr{timeout} || 60);
-    $agent->max_redirect(delete $attr{max_redirect} || 5);
+    $agent->max_redirect(exists $attr{max_redirect} ? $attr{max_redirect} : 5);
     $agent->agent(delete $attr{agent} || 
"HTTP-Tinyish/$HTTP::Tinyish::VERSION");
 
     # LWP default is to verify, HTTP::Tiny isn't
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish/Wget.pm 
new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish/Wget.pm
--- old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish/Wget.pm      2020-07-08 
01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish/Wget.pm      2022-06-21 
01:44:45.000000000 +0200
@@ -117,7 +117,7 @@
         '--server-response',
         '--timeout', ($self->{timeout} || 60),
         '--tries', 1,
-        '--max-redirect', ($self->{max_redirect} || 5),
+        '--max-redirect', (exists $self->{max_redirect} ? 
$self->{max_redirect} : 5),
         '--user-agent', ($self->{agent} || 
"HTTP-Tinyish/$HTTP::Tinyish::VERSION"),
     );
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish.pm 
new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish.pm
--- old/HTTP-Tinyish-0.17/lib/HTTP/Tinyish.pm   2020-07-08 01:55:14.000000000 
+0200
+++ new/HTTP-Tinyish-0.18/lib/HTTP/Tinyish.pm   2022-06-21 01:44:45.000000000 
+0200
@@ -3,7 +3,7 @@
 use warnings;
 use Carp ();
 
-our $VERSION = '0.17';
+our $VERSION = '0.18';
 
 our $PreferredBackend; # for tests
 our @Backends = map "HTTP::Tinyish::$_", qw( LWP HTTPTiny Curl Wget );
@@ -98,8 +98,8 @@
 
 =head1 BACKEND SELECTION
 
-Backends are searched in the order of: C<LWP>, L<HTTP::Tiny>, L<Curl>
-and L<Wget>. HTTP::Tinyish will auto-detect if the backend also
+Backends are searched in the order of: L<LWP>, L<HTTP::Tiny>, C<curl>
+and C<wget>. HTTP::Tinyish will auto-detect if the backend also
 supports HTTPS, and use the appropriate backend based on the given
 URL to the request methods.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/HTTP-Tinyish-0.17/t/tinyish.t 
new/HTTP-Tinyish-0.18/t/tinyish.t
--- old/HTTP-Tinyish-0.17/t/tinyish.t   2020-07-08 01:55:14.000000000 +0200
+++ new/HTTP-Tinyish-0.18/t/tinyish.t   2022-06-21 01:44:45.000000000 +0200
@@ -39,6 +39,12 @@
         $res = HTTP::Tinyish->new(verify_SSL => 
0)->get("https://cpan.metacpan.org/";);
         is $res->{status}, 200;
         like $res->{content}, qr/Comprehensive/i;
+
+        for (qw(expired untrusted-root wrong.host)) {
+            $res = HTTP::Tinyish->new(verify_SSL => 
1)->get("https://$_.badssl.com/";);
+            is $res->{status}, 599, $_;
+            ok !$res->{success}, $_;
+        }
     }
 
     $res = HTTP::Tinyish->new->get("http://example.invalid";);
@@ -127,8 +133,14 @@
     is $res->{status}, 200;
     is_deeply decode_json($res->{content}), { authenticated => 
JSON::PP::true(), user => "user" };
 
-    $res = HTTP::Tinyish->new->get("http://httpbin.org/redirect/1";);
-    is $res->{status}, 200;
+    if (0) {
+        # for some reason it's broken
+        $res = HTTP::Tinyish->new->get("http://httpbin.org/redirect/1";);
+        is $res->{status}, 200;
+    }
+
+    $res = HTTP::Tinyish->new(max_redirect => 
0)->get("http://httpbin.org/redirect/1";);
+    is $res->{status}, 302;
 
     $res = HTTP::Tinyish->new(max_redirect => 
2)->get("http://httpbin.org/redirect/3";);
     isnt $res->{status}, 200; # either 302 or 599

++++++ cpanspec.yml ++++++
---
#description_paragraphs: 3
#description: |-
#  override description from CPAN
#summary: override summary from CPAN
#no_testing: broken upstream
#sources:
#  - source1
#  - source2
#patches:
#  foo.patch: -p1
#  bar.patch:
#  baz.patch: PATCH-FIX-OPENSUSE
#preamble: |-
# BuildRequires:  gcc-c++
#post_prep: |-
# hunspell=`pkg-config --libs hunspell | sed -e 's,-l,,; s,  *,,g'`
# sed -i -e "s,hunspell-X,$hunspell," t/00-prereq.t Makefile.PL 
#post_build: |-
# rm unused.files
#post_install: |-
# sed on %{name}.files
#license: SUSE-NonFree
#skip_noarch: 1
#custom_build: |-
#./Build build flags=%{?_smp_mflags} --myflag
#custom_test: |-
#startserver && make test
#ignore_requires: Bizarre::Module
#skip_doc: regexp_to_skip_for_doc.*
#add_doc: files to add to docs
#misc: |-
#anything else to be added to spec file
#follows directly after %files section, so it can contain new blocks or also
#changes to %files section

Reply via email to