Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package perl-Mojolicious-Plugin-OAuth2 for 
openSUSE:Factory checked in at 2021-02-17 18:12:45
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-OAuth2 (Old)
 and      /work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-OAuth2.new.28504 
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "perl-Mojolicious-Plugin-OAuth2"

Wed Feb 17 18:12:45 2021 rev:2 rq:873066 version:1.59

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/perl-Mojolicious-Plugin-OAuth2/perl-Mojolicious-Plugin-OAuth2.changes
    2020-06-05 20:28:41.501256226 +0200
+++ 
/work/SRC/openSUSE:Factory/.perl-Mojolicious-Plugin-OAuth2.new.28504/perl-Mojolicious-Plugin-OAuth2.changes
 2021-02-17 18:13:32.486038847 +0100
@@ -1,0 +2,11 @@
+Wed Feb 17 03:12:08 UTC 2021 - Tina M??ller <timueller+p...@suse.de>
+
+- updated to 1.59
+   see /usr/share/doc/packages/perl-Mojolicious-Plugin-OAuth2/Changes
+
+  1.59 2021-02-17T08:33:17+0900
+   - Fix invalid "=item" in documentation.
+   - Compatible with Mojolicious 9.0
+     Contributor: Joel Berger
+
+-------------------------------------------------------------------

Old:
----
  Mojolicious-Plugin-OAuth2-1.58.tar.gz

New:
----
  Mojolicious-Plugin-OAuth2-1.59.tar.gz

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

Other differences:
------------------
++++++ perl-Mojolicious-Plugin-OAuth2.spec ++++++
--- /var/tmp/diff_new_pack.BbldvN/_old  2021-02-17 18:13:32.966039239 +0100
+++ /var/tmp/diff_new_pack.BbldvN/_new  2021-02-17 18:13:32.966039239 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package perl-Mojolicious-Plugin-OAuth2
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,18 +16,16 @@
 #
 
 
+%define cpan_name Mojolicious-Plugin-OAuth2
 Name:           perl-Mojolicious-Plugin-OAuth2
-Version:        1.58
+Version:        1.59
 Release:        0
-%define cpan_name Mojolicious-Plugin-OAuth2
 Summary:        Auth against OAuth2 APIs
 License:        Artistic-2.0
-Group:          Development/Libraries/Perl
 URL:            https://metacpan.org/release/%{cpan_name}
 Source0:        
https://cpan.metacpan.org/authors/id/J/JH/JHTHORSEN/%{cpan_name}-%{version}.tar.gz
 Source1:        cpanspec.yml
 BuildArch:      noarch
-BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildRequires:  perl
 BuildRequires:  perl-macros
 BuildRequires:  perl(IO::Socket::SSL) >= 1.94
@@ -49,11 +47,11 @@
    $ mojo version
 
 %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
@@ -64,7 +62,6 @@
 %perl_gen_filelist
 
 %files -f %{name}.files
-%defattr(-,root,root,755)
 %doc Changes README README.md
 
 %changelog

++++++ Mojolicious-Plugin-OAuth2-1.58.tar.gz -> 
Mojolicious-Plugin-OAuth2-1.59.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-OAuth2-1.58/Changes 
new/Mojolicious-Plugin-OAuth2-1.59/Changes
--- old/Mojolicious-Plugin-OAuth2-1.58/Changes  2019-07-03 14:22:38.000000000 
+0200
+++ new/Mojolicious-Plugin-OAuth2-1.59/Changes  2021-02-17 00:33:17.000000000 
+0100
@@ -1,5 +1,10 @@
 Revision history for perl distribution Mojolicious-Plugin-OAuth2
 
+1.59 2021-02-17T08:33:17+0900
+ - Fix invalid "=item" in documentation.
+ - Compatible with Mojolicious 9.0
+   Contributor: Joel Berger
+
 1.58 2019-07-03T14:22:38+0200
  - Add new Oauth2 providers: instagram.com
  - Add new Oauth2 providers: vk.com
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-OAuth2-1.58/META.json 
new/Mojolicious-Plugin-OAuth2-1.59/META.json
--- old/Mojolicious-Plugin-OAuth2-1.58/META.json        2019-07-03 
14:22:39.000000000 +0200
+++ new/Mojolicious-Plugin-OAuth2-1.59/META.json        2021-02-17 
00:33:18.000000000 +0100
@@ -4,7 +4,7 @@
       "Jan Henning Thorsen <jhthor...@cpan.org>"
    ],
    "dynamic_config" : 0,
-   "generated_by" : "ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter 
version 2.150010",
+   "generated_by" : "ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter 
version 2.150010",
    "license" : [
       "artistic_2"
    ],
@@ -52,10 +52,10 @@
          "web" : "https://github.com/marcusramberg/Mojolicious-Plugin-OAuth2";
       }
    },
-   "version" : "1.58",
+   "version" : "1.59",
    "x_contributors" : [
       "Marcus Ramberg <mramb...@cpan.org>",
       "Jan Henning Thorsen <jhthor...@cpan.org>"
    ],
-   "x_serialization_backend" : "JSON::PP version 2.97001"
+   "x_serialization_backend" : "JSON::PP version 4.04"
 }
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-OAuth2-1.58/META.yml 
new/Mojolicious-Plugin-OAuth2-1.59/META.yml
--- old/Mojolicious-Plugin-OAuth2-1.58/META.yml 2019-07-03 14:22:38.000000000 
+0200
+++ new/Mojolicious-Plugin-OAuth2-1.59/META.yml 2021-02-17 00:33:18.000000000 
+0100
@@ -7,7 +7,7 @@
 configure_requires:
   ExtUtils::MakeMaker: '0'
 dynamic_config: 0
-generated_by: 'ExtUtils::MakeMaker version 7.34, CPAN::Meta::Converter version 
2.150010'
+generated_by: 'ExtUtils::MakeMaker version 7.44, CPAN::Meta::Converter version 
2.150010'
 license: artistic_2
 meta-spec:
   url: http://module-build.sourceforge.net/META-spec-v1.4.html
@@ -24,7 +24,7 @@
   bugtracker: https://github.com/marcusramberg/Mojolicious-Plugin-OAuth2/issues
   homepage: https://github.com/marcusramberg/Mojolicious-Plugin-OAuth2
   repository: https://github.com/marcusramberg/Mojolicious-Plugin-OAuth2.git
-version: '1.58'
+version: '1.59'
 x_contributors:
   - 'Marcus Ramberg <mramb...@cpan.org>'
   - 'Jan Henning Thorsen <jhthor...@cpan.org>'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-OAuth2-1.58/Makefile.PL 
new/Mojolicious-Plugin-OAuth2-1.59/Makefile.PL
--- old/Mojolicious-Plugin-OAuth2-1.58/Makefile.PL      2019-07-03 
14:22:38.000000000 +0200
+++ new/Mojolicious-Plugin-OAuth2-1.59/Makefile.PL      2021-02-17 
00:33:17.000000000 +0100
@@ -8,6 +8,7 @@
   ABSTRACT_FROM  => 'lib/Mojolicious/Plugin/OAuth2.pm',
   VERSION_FROM   => 'lib/Mojolicious/Plugin/OAuth2.pm',
   EXE_FILES      => [qw()],
+  OBJECT         => '',
   BUILD_REQUIRES => {}
 ,
   TEST_REQUIRES  => {
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-OAuth2-1.58/README.md 
new/Mojolicious-Plugin-OAuth2-1.59/README.md
--- old/Mojolicious-Plugin-OAuth2-1.58/README.md        2019-07-03 
14:22:38.000000000 +0200
+++ new/Mojolicious-Plugin-OAuth2-1.59/README.md        2021-02-17 
00:33:17.000000000 +0100
@@ -10,7 +10,7 @@
 
 Note that OAuth2 requires https, so you need to have the optional Mojolicious
 dependency required to support it. Run the command below to check if
-[IO::Socket::SSL](https://metacpan.org/pod/IO::Socket::SSL) is installed.
+[IO::Socket::SSL](https://metacpan.org/pod/IO%3A%3ASocket%3A%3ASSL) is 
installed.
 
     $ mojo version
 
@@ -69,7 +69,7 @@
       },
     };
 
-To make it a bit easier, 
[Mojolicious::Plugin::OAuth2](https://metacpan.org/pod/Mojolicious::Plugin::OAuth2)
 has already
+To make it a bit easier, 
[Mojolicious::Plugin::OAuth2](https://metacpan.org/pod/Mojolicious%3A%3APlugin%3A%3AOAuth2)
 has already
 values for `authorize_url` and `token_url` for the following providers:
 
 - dailymotion
@@ -90,7 +90,7 @@
 
     See also 
[https://developers.facebook.com/docs/reference/dialogs/oauth/](https://developers.facebook.com/docs/reference/dialogs/oauth/).
 
-    &#x3d; item \* instagram
+- instagram
 
     OAuth2 for Instagram API. You can find `key` (Client ID) and
     `secret` (Client Secret) from the app dashboard here:
@@ -112,7 +112,7 @@
 
     See also 
[https://developers.google.com/+/quickstart/](https://developers.google.com/+/quickstart/).
 
-    &#x3d; item \* vkontakte
+- vkontakte
 
     OAuth2 for Vkontakte. You can find `key` (App ID) and `secret`
     (Secure key) from the app dashboard here: 
[https://vk.com/apps?act=manage](https://vk.com/apps?act=manage).
@@ -160,7 +160,7 @@
 
     $url = $c->oauth2->auth_url($provider => \%args);
 
-Returns a [Mojo::URL](https://metacpan.org/pod/Mojo::URL) object which contain 
the authorize URL. This is
+Returns a [Mojo::URL](https://metacpan.org/pod/Mojo%3A%3AURL) object which 
contain the authorize URL. This is
 useful if you want to add the authorize URL as a link to your webpage
 instead of doing a redirect like ["oauth2.get\_token"](#oauth2-get_token) 
does. `%args` is optional,
 but can contain:
@@ -245,7 +245,7 @@
 
     $promise = $c->oauth2->get_token_p($provider_name => \%args);
 
-Same as ["oauth2.get\_token"](#oauth2-get_token), but returns a 
[Mojo::Promise](https://metacpan.org/pod/Mojo::Promise). See 
["SYNOPSIS"](#synopsis)
+Same as ["oauth2.get\_token"](#oauth2-get_token), but returns a 
[Mojo::Promise](https://metacpan.org/pod/Mojo%3A%3APromise). See 
["SYNOPSIS"](#synopsis)
 for example usage.
 
 ## oauth2.providers
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/Mojolicious-Plugin-OAuth2-1.58/lib/Mojolicious/Plugin/OAuth2.pm 
new/Mojolicious-Plugin-OAuth2-1.59/lib/Mojolicious/Plugin/OAuth2.pm
--- old/Mojolicious-Plugin-OAuth2-1.58/lib/Mojolicious/Plugin/OAuth2.pm 
2019-07-03 14:22:38.000000000 +0200
+++ new/Mojolicious-Plugin-OAuth2-1.59/lib/Mojolicious/Plugin/OAuth2.pm 
2021-02-17 00:33:17.000000000 +0100
@@ -6,7 +6,7 @@
 use Carp 'croak';
 use strict;
 
-our $VERSION = '1.58';
+our $VERSION = '1.59';
 
 has providers => sub {
   return {
@@ -34,10 +34,7 @@
       authorize_url => 
"https://accounts.google.com/o/oauth2/v2/auth?response_type=code";,
       token_url     => "https://www.googleapis.com/oauth2/v4/token";,
     },
-    vkontakte => {
-      authorize_url => "https://oauth.vk.com/authorize";,
-      token_url     => "https://oauth.vk.com/access_token";,
-    },
+    vkontakte => {authorize_url => "https://oauth.vk.com/authorize";, token_url 
=> "https://oauth.vk.com/access_token",},
     mocked => {authorize_url => '/mocked/oauth/authorize', token_url => 
'/mocked/oauth/token', secret => 'fake_secret'},
   };
 };
@@ -92,7 +89,7 @@
   my $provider_args = $self->providers->{$args->{provider}};
   my $authorize_url;
 
-  $args->{scope} ||= $provider_args->{scope};
+  $args->{scope}        ||= $provider_args->{scope};
   $args->{redirect_uri} ||= $c->url_for->to_abs->to_string;
   $authorize_url = Mojo::URL->new($provider_args->{authorize_url});
   $authorize_url->host($args->{host}) if exists $args->{host};
@@ -301,7 +298,7 @@
 
 See also L<https://developers.facebook.com/docs/reference/dialogs/oauth/>.
 
-= item * instagram
+=item * instagram
 
 OAuth2 for Instagram API. You can find C<key> (Client ID) and
 C<secret> (Client Secret) from the app dashboard here:
@@ -323,7 +320,7 @@
 
 See also L<https://developers.google.com/+/quickstart/>.
 
-= item * vkontakte
+=item * vkontakte
 
 OAuth2 for Vkontakte. You can find C<key> (App ID) and C<secret>
 (Secure key) from the app dashboard here: L<https://vk.com/apps?act=manage>.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/Mojolicious-Plugin-OAuth2-1.58/t/delayed.t 
new/Mojolicious-Plugin-OAuth2-1.59/t/delayed.t
--- old/Mojolicious-Plugin-OAuth2-1.58/t/delayed.t      2018-08-30 
12:06:21.000000000 +0200
+++ new/Mojolicious-Plugin-OAuth2-1.59/t/delayed.t      2021-02-17 
00:32:41.000000000 +0100
@@ -6,29 +6,15 @@
 
 Mojo::Util::monkey_patch('Mojolicious::Plugin::OAuth2', _ua => sub { $t->ua });
 
-$t->app->helper(
-  delay => sub {
-    my $c  = shift;
-    my $tx = $c->render_later->tx;
-    Mojo::IOLoop->delay(@_)->catch(sub { $c->helpers->reply->exception(pop) 
and undef $tx })->wait;
-  }
-);
-
 $app->routes->get(
   '/oauth-delayed' => sub {
     my $c = shift;
 
-    $c->delay(
-      sub {
-        my $delay = shift;
-        $c->oauth2->get_token(test => $delay->begin);
-      },
-      sub {
-        my ($delay, $err, $provider_res) = @_;
-        return $c->render(text => $err) unless $provider_res;
-        return $c->render(text => "Token $provider_res->{access_token}");
-      },
-    );
+    $c->oauth2->get_token(test => sub {
+      my (undef, $err, $provider_res) = @_;
+      return $c->render(text => $err) unless $provider_res;
+      return $c->render(text => "Token $provider_res->{access_token}");
+    });
   }
 );
 

Reply via email to