Hello community, here is the log from the commit of package perl-Net-Twitter for openSUSE:Factory checked in at 2018-01-24 15:30:15 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/perl-Net-Twitter (Old) and /work/SRC/openSUSE:Factory/.perl-Net-Twitter.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "perl-Net-Twitter" Wed Jan 24 15:30:15 2018 rev:16 rq:568399 version:4.01043 Changes: -------- --- /work/SRC/openSUSE:Factory/perl-Net-Twitter/perl-Net-Twitter.changes 2017-10-10 11:43:47.285361529 +0200 +++ /work/SRC/openSUSE:Factory/.perl-Net-Twitter.new/perl-Net-Twitter.changes 2018-01-24 15:30:21.602767223 +0100 @@ -1,0 +2,12 @@ +Thu Jan 18 06:55:46 UTC 2018 - [email protected] + +- updated to 4.01043 + see /usr/share/doc/packages/perl-Net-Twitter/Changes + + 4.01043 2018-01-17 + - deprecation notice: Twitter::API is the new Net::Twitter + - deprecated update_with_media + - doc and build updates + - remove debugger breakpoint (Oof!) + +------------------------------------------------------------------- Old: ---- Net-Twitter-4.01042.tar.gz New: ---- Net-Twitter-4.01043.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ perl-Net-Twitter.spec ++++++ --- /var/tmp/diff_new_pack.lV70ih/_old 2018-01-24 15:30:23.106696884 +0100 +++ /var/tmp/diff_new_pack.lV70ih/_new 2018-01-24 15:30:23.106696884 +0100 @@ -1,7 +1,7 @@ # # spec file for package perl-Net-Twitter # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,7 +17,7 @@ Name: perl-Net-Twitter -Version: 4.01042 +Version: 4.01043 Release: 0 %define cpan_name Net-Twitter Summary: Perl Interface to the Twitter Api @@ -91,8 +91,12 @@ # MANUAL END %description +This module has been superseded by Twitter::API. Please update as soon as +you possibly can to use new features and the new API versions. This module +will no longer be supported. + This module provides a perl interface to the Twitter APIs. See -http://dev.twitter.com/doc for a full description of the Twitter APIs. +http://dev.twitter.com/docs for a full description of the Twitter APIs. %prep %setup -q -n %{cpan_name}-%{version} ++++++ Net-Twitter-4.01042.tar.gz -> Net-Twitter-4.01043.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/Changes new/Net-Twitter-4.01043/Changes --- old/Net-Twitter-4.01042/Changes 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/Changes 2018-01-17 19:35:28.000000000 +0100 @@ -1,3 +1,9 @@ +4.01043 2018-01-17 + - deprecation notice: Twitter::API is the new Net::Twitter + - deprecated update_with_media + - doc and build updates + - remove debugger breakpoint (Oof!) + 4.01042 2017-02-06 - deprecated contributors/contributees - Fixed: follow_suggestions and follow_suggestions_for were reversed diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/LICENSE new/Net-Twitter-4.01043/LICENSE --- old/Net-Twitter-4.01042/LICENSE 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/LICENSE 2018-01-17 19:35:28.000000000 +0100 @@ -1,4 +1,4 @@ -This software is copyright (c) 2016 by Marc Mims. +This software is copyright (c) 2018 by Marc Mims. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. @@ -12,7 +12,7 @@ --- The GNU General Public License, Version 1, February 1989 --- -This software is Copyright (c) 2016 by Marc Mims. +This software is Copyright (c) 2018 by Marc Mims. This is free software, licensed under: @@ -272,7 +272,7 @@ --- The Artistic License 1.0 --- -This software is Copyright (c) 2016 by Marc Mims. +This software is Copyright (c) 2018 by Marc Mims. This is free software, licensed under: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/MANIFEST new/Net-Twitter-4.01043/MANIFEST --- old/Net-Twitter-4.01042/MANIFEST 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/MANIFEST 2018-01-17 19:35:28.000000000 +0100 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.008. +# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010. Changes LICENSE MANIFEST diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/META.yml new/Net-Twitter-4.01043/META.yml --- old/Net-Twitter-4.01042/META.yml 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/META.yml 2018-01-17 19:35:28.000000000 +0100 @@ -22,7 +22,7 @@ configure_requires: ExtUtils::MakeMaker: '7.1101' dynamic_config: 0 -generated_by: 'Dist::Zilla version 6.008, CPAN::Meta::Converter version 2.150001' +generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150001' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html @@ -68,5 +68,5 @@ bugtracker: http://github.com/semifor/Net-Twitter/issues homepage: https://github.com/semifor/Net-Twitter repository: https://github.com/semifor/Net-Twitter.git -version: '4.01042' +version: '4.01043' x_serialization_backend: 'YAML::Tiny version 1.69' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/Makefile.PL new/Net-Twitter-4.01043/Makefile.PL --- old/Net-Twitter-4.01042/Makefile.PL 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/Makefile.PL 2018-01-17 19:35:28.000000000 +0100 @@ -1,4 +1,4 @@ -# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.008. +# This file was automatically generated by Dist::Zilla::Plugin::MakeMaker v6.010. use strict; use warnings; @@ -66,7 +66,7 @@ "utf8" => 0, "warnings" => 0 }, - "VERSION" => "4.01042", + "VERSION" => "4.01043", "test" => { "TESTS" => "t/*.t" } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/README new/Net-Twitter-4.01043/README --- old/Net-Twitter-4.01042/README 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/README 2018-01-17 19:35:28.000000000 +0100 @@ -43,8 +43,13 @@ Net::Twitter::Manual::MigratingToV1_1. DESCRIPTION + This module has been superseded by Twitter::API. Please update as soon + as you possibly can to use new features and the new API versions. This + module will no longer be supported. + This module provides a perl interface to the Twitter APIs. See - <http://dev.twitter.com/doc> for a full description of the Twitter APIs. + <http://dev.twitter.com/docs> for a full description of the Twitter + APIs. TWITTER API VERSION 1.1 Twitter will (perhaps has by the time you read this) deprecated version @@ -279,7 +284,7 @@ useragent The value for "User-Agent" HTTP header. It defaults to - "Net::Twitter/4.01042 (Perl)". + "Net::Twitter/4.01043 (Perl)". source Twitter on longer uses the "source" parameter. Support for it @@ -735,7 +740,14 @@ Parameters: media_id, alt_text Required: media_id - add metadata to media + Adds metadata -- alt text, in particular -- to a previously uploaded + media object, specified by its ID. (One knows this ID via the return + value of the preceding "upload" call.) + + The "alt_text" parameter must have as its value a hashref containing + a single key-value pair. The key must be "text", and the value is + the alt text to assign to the media object. The text must be 400 + characters or fewer in length. Returns: HashRef @@ -2389,7 +2401,7 @@ <https://dev.twitter.com/rest/reference/post/account/update_profile_ image> - update_with_media + update_with_media DEPRECATED update_with_media(status, media[]) Parameters: status, media[], possibly_sensitive, @@ -2399,6 +2411,10 @@ Updates the authenticating user's status and attaches media for upload. + Note that Twitter has marked this endpoint as deprecated, and + recommends instead calling "upload", then (optionally) + "create_media_metadata", then "update". + The "media[]" parameter is an arrayref with the following interpretation: @@ -2423,19 +2439,19 @@ Returns: Status - Twitter API documentation: POST statuses/update_with_media - <https://dev.twitter.com/rest/reference/post/statuses/update_with_me - dia> - upload upload(media) Parameters: media Required: media - Upload images to twitter without posting them on the timeline + Uploads an image to twitter without immediately posting it to the + authenticating user's timeline. Its return-value hashref notably + contains a "media_id" value that's useful as a parameter value in + various other endpoint calls, such as "update" and + "create_media_metadata". - Returns: Image + Returns: HashRef Twitter API documentation: POST media/upload <https://dev.twitter.com/rest/reference/post/media/upload> diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/dist.ini new/Net-Twitter-4.01043/dist.ini --- old/Net-Twitter-4.01042/dist.ini 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/dist.ini 2018-01-17 19:35:28.000000000 +0100 @@ -1,9 +1,9 @@ name = Net-Twitter -version = 4.01042 +version = 4.01043 author = Marc Mims <[email protected]> license = Perl_5 copyright_holder = Marc Mims -copyright_year = 2016 +copyright_year = 2018 [GithubMeta] [MetaResources] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Identica.pm new/Net-Twitter-4.01043/lib/Net/Identica.pm --- old/Net-Twitter-4.01042/lib/Net/Identica.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Identica.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Identica; -$Net::Identica::VERSION = '4.01042'; +$Net::Identica::VERSION = '4.01043'; use Moose; extends 'Net::Twitter::Core'; @@ -22,7 +22,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/API.pm new/Net-Twitter-4.01043/lib/Net/Twitter/API.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/API.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/API.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::API; -$Net::Twitter::API::VERSION = '4.01042'; +$Net::Twitter::API::VERSION = '4.01043'; use Moose (); use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; use Moose::Exporter; @@ -117,7 +117,7 @@ } package Net::Twitter::Meta::Method; -$Net::Twitter::Meta::Method::VERSION = '4.01042'; +$Net::Twitter::Meta::Method::VERSION = '4.01043'; use Moose; use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; extends 'Moose::Meta::Method'; @@ -164,7 +164,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Core.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Core.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Core.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Core.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Core; -$Net::Twitter::Core::VERSION = '4.01042'; +$Net::Twitter::Core::VERSION = '4.01043'; # ABSTRACT: A perl interface to the Twitter API use 5.008001; @@ -370,7 +370,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Error.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Error.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Error.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Error.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Error; -$Net::Twitter::Error::VERSION = '4.01042'; +$Net::Twitter::Error::VERSION = '4.01043'; use Moose; use Try::Tiny; use Devel::StackTrace; @@ -116,7 +116,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Manual/MigratingToV1_1.pod new/Net-Twitter-4.01043/lib/Net/Twitter/Manual/MigratingToV1_1.pod --- old/Net-Twitter-4.01042/lib/Net/Twitter/Manual/MigratingToV1_1.pod 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Manual/MigratingToV1_1.pod 2018-01-17 19:35:28.000000000 +0100 @@ -4,7 +4,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/OAuth.pm new/Net-Twitter-4.01043/lib/Net/Twitter/OAuth.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/OAuth.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/OAuth.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::OAuth; -$Net::Twitter::OAuth::VERSION = '4.01042'; +$Net::Twitter::OAuth::VERSION = '4.01043'; use Moose; extends 'Net::Twitter::Core'; @@ -19,7 +19,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Lists.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Lists.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Lists.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Lists.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::Lists; -$Net::Twitter::Role::API::Lists::VERSION = '4.01042'; +$Net::Twitter::Role::API::Lists::VERSION = '4.01043'; use Moose::Role; use Net::Twitter::API; use DateTime::Format::Strptime; @@ -13,7 +13,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/REST.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/REST.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/REST.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/REST.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::REST; -$Net::Twitter::Role::API::REST::VERSION = '4.01042'; +$Net::Twitter::Role::API::REST::VERSION = '4.01043'; use Moose::Role; use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; use Net::Twitter::API; @@ -1737,7 +1737,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/RESTv1_1.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/RESTv1_1.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/RESTv1_1.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/RESTv1_1.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::RESTv1_1; -$Net::Twitter::Role::API::RESTv1_1::VERSION = '4.01042'; +$Net::Twitter::Role::API::RESTv1_1::VERSION = '4.01043'; use Moose::Role; use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; use Net::Twitter::API; @@ -207,6 +207,7 @@ ); twitter_api_method update_with_media => ( + deprecated => 1, path => 'statuses/update_with_media', method => 'POST', params => [qw/ @@ -218,6 +219,10 @@ description => <<'EOT', Updates the authenticating user's status and attaches media for upload. +Note that Twitter has marked this endpoint as B<deprecated>, and recommends +instead calling C<upload>, then (optionally) C<create_media_metadata>, then +C<update>. + The C<media[]> parameter is an arrayref with the following interpretation: [ $file ] @@ -2140,8 +2145,16 @@ params => [qw/media_id alt_text/], required => [qw/media_id/], returns => 'HashRef', - description => 'add metadata to media', - content_type => 'application/json' + content_type => 'application/json', + description => <<'EOT', +Adds metadata -- alt text, in particular -- to a previously uploaded media +object, specified by its ID. (One knows this ID via the return value of the +preceding C<upload> call.) + +The C<alt_text> parameter must have as its value a hashref containing a single +key-value pair. The key must be C<text>, and the value is the alt text to assign +to the media object. The text must be 400 characters or fewer in length. +EOT ); # infer screen_name or user_id from positional args for backwards compatibility @@ -2185,7 +2198,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Search/Trends.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Search/Trends.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Search/Trends.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Search/Trends.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::Search::Trends; -$Net::Twitter::Role::API::Search::Trends::VERSION = '4.01042'; +$Net::Twitter::Role::API::Search::Trends::VERSION = '4.01043'; use Moose::Role; after BUILD => sub { @@ -26,7 +26,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Search.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Search.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Search.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Search.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::Search; -$Net::Twitter::Role::API::Search::VERSION = '4.01042'; +$Net::Twitter::Role::API::Search::VERSION = '4.01043'; use Moose::Role; use Net::Twitter::API; use DateTime::Format::Strptime; @@ -52,7 +52,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/TwitterVision.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/TwitterVision.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/TwitterVision.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/TwitterVision.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::TwitterVision; -$Net::Twitter::Role::API::TwitterVision::VERSION = '4.01042'; +$Net::Twitter::Role::API::TwitterVision::VERSION = '4.01043'; use Moose::Role; requires qw/credentials/; @@ -47,7 +47,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Upload.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Upload.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/Upload.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/Upload.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::Upload; -$Net::Twitter::Role::API::Upload::VERSION = '4.01042'; +$Net::Twitter::Role::API::Upload::VERSION = '4.01043'; use Moose::Role; use Net::Twitter::API; use DateTime::Format::Strptime; @@ -65,7 +65,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/UploadMedia.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/UploadMedia.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/API/UploadMedia.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/API/UploadMedia.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::API::UploadMedia; -$Net::Twitter::Role::API::UploadMedia::VERSION = '4.01042'; +$Net::Twitter::Role::API::UploadMedia::VERSION = '4.01043'; use Moose::Role; use Net::Twitter::API; use DateTime::Format::Strptime; @@ -22,8 +22,13 @@ params => [qw/media/], required => [qw/media/], booleans => [qw/possibly_sensitive display_coordinates/], - returns => 'Image', - description => 'Upload images to twitter without posting them on the timeline' + returns => 'HashRef', + description => <<'', +Uploads an image to twitter without immediately posting it to the +authenticating user's timeline. Its return-value hashref notably contains a +C<media_id> value that's useful as a parameter value in various other +endpoint calls, such as C<update> and C<create_media_metadata>. + ); twitter_api_method upload_status => ( @@ -46,7 +51,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/AppAuth.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/AppAuth.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/AppAuth.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/AppAuth.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::AppAuth; -$Net::Twitter::Role::AppAuth::VERSION = '4.01042'; +$Net::Twitter::Role::AppAuth::VERSION = '4.01043'; use Moose::Role; use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; use HTTP::Request::Common qw/POST/; @@ -119,7 +119,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/AutoCursor.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/AutoCursor.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/AutoCursor.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/AutoCursor.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::AutoCursor; -$Net::Twitter::Role::AutoCursor::VERSION = '4.01042'; +$Net::Twitter::Role::AutoCursor::VERSION = '4.01043'; use MooseX::Role::Parameterized; parameter max_calls => isa => 'Int', default => 16; @@ -68,7 +68,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/InflateObjects.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/InflateObjects.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/InflateObjects.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/InflateObjects.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::InflateObjects; -$Net::Twitter::Role::InflateObjects::VERSION = '4.01042'; +$Net::Twitter::Role::InflateObjects::VERSION = '4.01043'; use Moose::Role; use namespace::autoclean; use Data::Visitor::Callback; @@ -11,7 +11,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/Legacy.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/Legacy.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/Legacy.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/Legacy.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::Legacy; -$Net::Twitter::Role::Legacy::VERSION = '4.01042'; +$Net::Twitter::Role::Legacy::VERSION = '4.01043'; use Moose::Role; use namespace::autoclean; @@ -47,7 +47,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/OAuth.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/OAuth.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/OAuth.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/OAuth.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::OAuth; -$Net::Twitter::Role::OAuth::VERSION = '4.01042'; +$Net::Twitter::Role::OAuth::VERSION = '4.01043'; use Moose::Role; use HTTP::Request::Common; use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; @@ -267,7 +267,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/RateLimit.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/RateLimit.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/RateLimit.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/RateLimit.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::RateLimit; -$Net::Twitter::Role::RateLimit::VERSION = '4.01042'; +$Net::Twitter::Role::RateLimit::VERSION = '4.01043'; use Moose::Role; use namespace::autoclean; use Try::Tiny; @@ -11,7 +11,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/RetryOnError.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/RetryOnError.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/RetryOnError.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/RetryOnError.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::RetryOnError; -$Net::Twitter::Role::RetryOnError::VERSION = '4.01042'; +$Net::Twitter::Role::RetryOnError::VERSION = '4.01043'; use Moose::Role; use namespace::autoclean; use Time::HiRes; @@ -12,7 +12,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/SimulateCursors.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/SimulateCursors.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/SimulateCursors.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/SimulateCursors.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::SimulateCursors; -$Net::Twitter::Role::SimulateCursors::VERSION = '4.01042'; +$Net::Twitter::Role::SimulateCursors::VERSION = '4.01043'; use Moose::Role; use namespace::autoclean; @@ -41,7 +41,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/WrapError.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/WrapError.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/WrapError.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/WrapError.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::WrapError; -$Net::Twitter::Role::WrapError::VERSION = '4.01042'; +$Net::Twitter::Role::WrapError::VERSION = '4.01043'; use Moose::Role; use Try::Tiny; use Scalar::Util qw/blessed/; @@ -35,7 +35,6 @@ my $r = try { $next->($self, $res, $sythetic_args, $datetime_parser) } catch { - $DB::single = 1; die $_ unless blessed $_ && $_->isa('Net::Twitter::Error'); $self->_twitter_error($_->has_twitter_error @@ -64,7 +63,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Role/WrapResult.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Role/WrapResult.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Role/WrapResult.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Role/WrapResult.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Role::WrapResult; -$Net::Twitter::Role::WrapResult::VERSION = '4.01042'; +$Net::Twitter::Role::WrapResult::VERSION = '4.01043'; use Moose::Role; use Net::Twitter::WrappedResult; @@ -29,7 +29,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Search.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Search.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Search.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Search.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Search; -$Net::Twitter::Search::VERSION = '4.01042'; +$Net::Twitter::Search::VERSION = '4.01043'; use Moose; extends 'Net::Twitter::Core'; @@ -19,7 +19,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/Types.pm new/Net-Twitter-4.01043/lib/Net/Twitter/Types.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/Types.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/Types.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::Types; -$Net::Twitter::Types::VERSION = '4.01042'; +$Net::Twitter::Types::VERSION = '4.01043'; use Moose::Util::TypeConstraints; use URI; @@ -19,6 +19,6 @@ =head1 VERSION -version 4.01042 +version 4.01043 =cut diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter/WrappedResult.pm new/Net-Twitter-4.01043/lib/Net/Twitter/WrappedResult.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter/WrappedResult.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter/WrappedResult.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter::WrappedResult; -$Net::Twitter::WrappedResult::VERSION = '4.01042'; +$Net::Twitter::WrappedResult::VERSION = '4.01043'; use Moose; # decoded JSON Twitter API response @@ -43,7 +43,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter.pm new/Net-Twitter-4.01043/lib/Net/Twitter.pm --- old/Net-Twitter-4.01042/lib/Net/Twitter.pm 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter.pm 2018-01-17 19:35:28.000000000 +0100 @@ -1,5 +1,5 @@ package Net::Twitter; -$Net::Twitter::VERSION = '4.01042'; +$Net::Twitter::VERSION = '4.01043'; use Moose; use Carp::Clan qw/^(?:Net::Twitter|Moose|Class::MOP)/; use JSON::MaybeXS; @@ -160,8 +160,8 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 DESCRIPTION -See Net/Twitter.pod +This module has been superseded by L<Twitter::API>. Please update your applications and/or downstream dependent modules as soon as possible. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/Net-Twitter-4.01042/lib/Net/Twitter.pod new/Net-Twitter-4.01043/lib/Net/Twitter.pod --- old/Net-Twitter-4.01042/lib/Net/Twitter.pod 2017-02-07 03:24:29.000000000 +0100 +++ new/Net-Twitter-4.01043/lib/Net/Twitter.pod 2018-01-17 19:35:28.000000000 +0100 @@ -4,7 +4,7 @@ =head1 VERSION -version 4.01042 +version 4.01043 =head1 SYNOPSIS @@ -52,8 +52,12 @@ =head1 DESCRIPTION +This module has been superseded by L<Twitter::API>. Please update as +soon as you possibly can to use new features and the new API +versions. This module will no longer be supported. + This module provides a perl interface to the Twitter APIs. See -L<http://dev.twitter.com/doc> for a full description of the Twitter APIs. +L<http://dev.twitter.com/docs> for a full description of the Twitter APIs. =head1 TWITTER API VERSION 1.1 @@ -304,7 +308,7 @@ =item useragent The value for C<User-Agent> HTTP header. It defaults to -"Net::Twitter/4.01042 (Perl)". +"Net::Twitter/4.01043 (Perl)". =item source @@ -889,7 +893,14 @@ =back -add metadata to media +Adds metadata -- alt text, in particular -- to a previously uploaded media +object, specified by its ID. (One knows this ID via the return value of the +preceding C<upload> call.) + +The C<alt_text> parameter must have as its value a hashref containing a single +key-value pair. The key must be C<text>, and the value is the alt text to assign +to the media object. The text must be 400 characters or fewer in length. + Returns: HashRef @@ -3238,7 +3249,7 @@ Twitter API documentation: L<POST account/update_profile_image|https://dev.twitter.com/rest/reference/post/account/update_profile_image> -=item B<update_with_media> +=item B<update_with_media> B<DEPRECATED> =item B<update_with_media(status, media[])> @@ -3254,6 +3265,10 @@ Updates the authenticating user's status and attaches media for upload. +Note that Twitter has marked this endpoint as B<deprecated>, and recommends +instead calling C<upload>, then (optionally) C<create_media_metadata>, then +C<update>. + The C<media[]> parameter is an arrayref with the following interpretation: [ $file ] @@ -3278,8 +3293,6 @@ Returns: Status -Twitter API documentation: L<POST statuses/update_with_media|https://dev.twitter.com/rest/reference/post/statuses/update_with_media> - =item B<upload> =item B<upload(media)> @@ -3294,9 +3307,13 @@ =back -Upload images to twitter without posting them on the timeline +Uploads an image to twitter without immediately posting it to the +authenticating user's timeline. Its return-value hashref notably contains a +C<media_id> value that's useful as a parameter value in various other +endpoint calls, such as C<update> and C<create_media_metadata>. + -Returns: Image +Returns: HashRef Twitter API documentation: L<POST media/upload|https://dev.twitter.com/rest/reference/post/media/upload>
