summary refs log tree commit diff
diff options
context:
space:
mode:
authorfranck cuny <franck@lumberjaph.net>2009-12-08 10:28:03 +0100
committerfranck cuny <franck@lumberjaph.net>2009-12-08 10:28:03 +0100
commit20eca1a1c886da75a8c80a5dc8d8cdab25e83092 (patch)
treeec4be39cd3fe51c8d2e9eca2d54954a193210b38
parentfix deserialisation (diff)
downloadmoosex-net-api-20eca1a1c886da75a8c80a5dc8d8cdab25e83092.tar.gz
Checking in changes prior to tagging of version 0.01. Changelog diff is:
-rw-r--r--.gitignore2
-rw-r--r--Makefile.PL2
-rw-r--r--t/lib/FakeAPIFail.pm12
-rw-r--r--t/lib/FakeAPIFail2.pm12
4 files changed, 14 insertions, 14 deletions
diff --git a/.gitignore b/.gitignore
index bfd20cf..7cba1bc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,5 @@ inc
 pm_to_blib
 MANIFEST
 Makefile.old
+MANIFEST.SKIP
+.prove
diff --git a/Makefile.PL b/Makefile.PL
index 1f2f818..727209a 100644
--- a/Makefile.PL
+++ b/Makefile.PL
@@ -5,6 +5,8 @@ all_from 'lib/MooseX/Net/API.pm';
 requires 'Carp';
 requires 'Moose';
 requires 'Try::Tiny';
+requires 'URI';
+requires 'HTTP::Request';
 
 tests 't/*.t';
 author_tests 'xt';
diff --git a/t/lib/FakeAPIFail.pm b/t/lib/FakeAPIFail.pm
index 80f1efa..87689bc 100644
--- a/t/lib/FakeAPIFail.pm
+++ b/t/lib/FakeAPIFail.pm
@@ -2,15 +2,13 @@ package FakeAPI;
 use Moose;
 use MooseX::Net::API;
 
-has api_base_url => (
-    is      => 'ro',
-    isa     => 'Str',
-    default => 'http://identi.ca/api',
+net_api_declare fake_api => (
+    base_url               => 'http://identi.ca/api',
+    format                 => 'json',
+    format_mode            => 'content-type',
+    require_authentication => 0,
 );
 
-has format => ( is => 'ro', isa => 'Str', default => 'json', );
-format_query 'format' => ( mode => 'content-type' );
-
 net_api_method foo => (
     description => 'this does foo',
     method      => 'GET',
diff --git a/t/lib/FakeAPIFail2.pm b/t/lib/FakeAPIFail2.pm
index 8ec10c8..1d1725b 100644
--- a/t/lib/FakeAPIFail2.pm
+++ b/t/lib/FakeAPIFail2.pm
@@ -2,15 +2,13 @@ package FakeAPI;
 use Moose;
 use MooseX::Net::API;
 
-has api_base_url => (
-    is      => 'ro',
-    isa     => 'Str',
-    default => 'http://identi.ca/api',
+net_api_declare fake_api => (
+    base_url               => 'http://identi.ca/api',
+    format                 => 'json',
+    format_mode            => 'content-type',
+    require_authentication => 0,
 );
 
-has format => ( is => 'ro', isa => 'Str', default => 'json', );
-format_query 'format' => ( mode => 'content-type' );
-
 net_api_method baz => (
     description => 'this one does baztwo',
     method      => 'BAZ',