Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
90 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
log |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
#! /usr/bin/env perl | ||
|
||
use inc::Module::Install; | ||
|
||
name 'WWW-Fitbit-API'; | ||
all_from 'lib/WWW/Fitbit/API.pm'; | ||
|
||
requires 'Carp'; | ||
|
||
requires 'Data::Dumper'; | ||
requires 'Date::Parse'; | ||
requires 'HTTP::Cookies'; | ||
requires 'HTTP::Request'; | ||
requires 'LWP::UserAgent'; | ||
requires 'Log::Log4perl'; | ||
requires 'POSIX'; | ||
requires 'XML::Simple'; | ||
|
||
install_script glob('script/*.pl'); | ||
auto_install; | ||
WriteAll; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1 @@ | ||
2010/05/11 20:48:06 INFO> FitbitClient.pm:462 FitbitClient::_parse_graph_xml - Getting calories burned for date 2010-05-11 | ||
2010/07/07 16:35:27 INFO> FitbitClient.pm:462 FitbitClient::_parse_graph_xml - Getting calories burned for date 2010-07-07 | ||
2010/07/07 16:35:28 INFO> FitbitClient.pm:368 FitbitClient::_request_http - HTTP status = $VAR1 = '500 Internal Server Error'; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#! perl | ||
|
||
use Test::More; | ||
|
||
BEGIN { | ||
use_ok 'WWW::Fitbit::API' | ||
or BAIL_OUT( "main module can't compile?!" ) | ||
} | ||
|
||
diag "Testing WWW::Fitbit::API version $WWW::Fitbit::API::VERSION"; | ||
|
||
done_testing(1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#! perl | ||
|
||
use Test::More; | ||
use Test::Exception; | ||
use WWW::Fitbit::API; | ||
|
||
dies_ok { WWW::Fitbit::API->new() } 'new() without config throws exception'; | ||
|
||
done_testing(1); |