Skip to content
This repository has been archived by the owner on Sep 28, 2022. It is now read-only.

Commit

Permalink
Use Twitter API v1.1
Browse files Browse the repository at this point in the history
Fixes gh-5
  • Loading branch information
doherty committed Jun 13, 2013
1 parent c8e2798 commit dc35a2d
Show file tree
Hide file tree
Showing 3 changed files with 64 additions and 2 deletions.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Revision history for Dist-Zilla-Plugin-Twitter

{{$NEXT}}
- API v1.1 support [GH #5]

0.020 2013-02-02
- Link to doherty's github repo instead of dagolden's
Expand Down
61 changes: 61 additions & 0 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@

#!start included /home/mike/perl5/perlbrew/perls/perl-5.18.0/lib/5.18.0/ExtUtils/MANIFEST.SKIP
# Avoid version control files.
\bRCS\b
\bCVS\b
\bSCCS\b
,v$
\B\.svn\b
\B\.git\b
\B\.gitignore\b
\b_darcs\b
\B\.cvsignore$

# Avoid VMS specific MakeMaker generated files
\bDescrip.MMS$
\bDESCRIP.MMS$
\bdescrip.mms$

# Avoid Makemaker generated and utility files.
\bMANIFEST\.bak
\bMakefile$
\bblib/
\bMakeMaker-\d
\bpm_to_blib\.ts$
\bpm_to_blib$
\bblibdirs\.ts$ # 6.18 through 6.25 generated this

# Avoid Module::Build generated and utility files.
\bBuild$
\b_build/
\bBuild.bat$
\bBuild.COM$
\bBUILD.COM$
\bbuild.com$

# Avoid temp and backup files.
~$
\.old$
\#$
\b\.#
\.bak$
\.tmp$
\.#
\.rej$

# Avoid OS-specific files/dirs
# Mac OSX metadata
\B\.DS_Store
# Mac OSX SMB mount metadata files
\B\._

# Avoid Devel::Cover and Devel::CoverX::Covered files.
\bcover_db\b
\bcovered\b

# Avoid MYMETA files
^MYMETA\.
#!end included /home/mike/perl5/perlbrew/perls/perl-5.18.0/lib/5.18.0/ExtUtils/MANIFEST.SKIP

# Avoid archives of this distribution
\bDist-Zilla-Plugin-Twitter-[\d\.\_]+
4 changes: 2 additions & 2 deletions lib/Dist/Zilla/Plugin/Twitter.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use utf8;

use Dist::Zilla 4 ();
use Moose 0.99;
use Net::Twitter 3 ();
use Net::Twitter 4.00001 (); # API v1.1 support
use WWW::Shorten::Simple (); # A useful interface to WWW::Shorten
use WWW::Shorten 3.02 (); # For latest updates to dead services
use WWW::Shorten::TinyURL (); # Our fallback
Expand Down Expand Up @@ -152,7 +152,7 @@ has 'twitter' => (
my $self = shift;
my $nt = Net::Twitter->new(
useragent_class => $ENV{DZ_TWITTER_USERAGENT} || 'LWP::UserAgent',
traits => [qw/ API::REST OAuth /],
traits => [qw/ API::RESTv1_1 OAuth /],
%{ $self->consumer_tokens },
);

Expand Down

0 comments on commit dc35a2d

Please sign in to comment.