about summary refs log tree commit diff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--dist.ini8
-rw-r--r--t/00_compile.t2
-rw-r--r--t/01_basic.t2
-rw-r--r--t/02_error.t2
-rw-r--r--t/03_serialization.t12
-rw-r--r--t/04_apimethod.t8
-rw-r--r--t/05_authentication.t4
-rw-r--r--t/lib/TestAPI.pm2
8 files changed, 20 insertions, 20 deletions
diff --git a/dist.ini b/dist.ini
index e49f138..ec39823 100644
--- a/dist.ini
+++ b/dist.ini
@@ -1,4 +1,4 @@
-name = MooseX-Net-API
+name = Net-HTTP-API
 author = franck cuny <franck@lumberjaph.net>
 license = Perl_5
 copyright_holder = linkfluence
@@ -18,9 +18,9 @@ bundle = @Basic
 [EOLTests]
 
 [MetaResources]
-repository = git://github.com/franckcuny/moosex-net-api.git
-bugtracker = http://rt.cpan.org/Public/Dist/Display.html?Name=MooseX::Net::API
-homepage = http://search.cpan.org/perldoc?MooseX::Net::API
+repository = git://github.com/franckcuny/net-http-api.git
+bugtracker = http://rt.cpan.org/Public/Dist/Display.html?Name=Net::HTTP::API
+homepage = http://search.cpan.org/perldoc?Net::HTTP::API
 
 [PodWeaver]
 [AutoPrereq]
diff --git a/t/00_compile.t b/t/00_compile.t
index 7da56d3..a53f8e1 100644
--- a/t/00_compile.t
+++ b/t/00_compile.t
@@ -1,4 +1,4 @@
 use strict;
 use Test::More tests => 1;
 
-BEGIN { use Moose; use_ok 'MooseX::Net::API'; }
+BEGIN { use Moose; use_ok 'Net::HTTP::API'; }
diff --git a/t/01_basic.t b/t/01_basic.t
index 0958c36..1f51db1 100644
--- a/t/01_basic.t
+++ b/t/01_basic.t
@@ -11,7 +11,7 @@ use TestAPI;
 ok my $api = TestAPI->new(), 'api object created';
 
 for my $role (qw/UserAgent Format Authentication Serialization Request/) {
-    ok $api->meta->does_role('MooseX::Net::API::Role::' . $role),
+    ok $api->meta->does_role('Net::HTTP::API::Role::' . $role),
       'does role ' . $role;
 }
 
diff --git a/t/02_error.t b/t/02_error.t
index 3ab5dcc..336a593 100644
--- a/t/02_error.t
+++ b/t/02_error.t
@@ -4,7 +4,7 @@ use Test::More;
 use Test::Exception;
 
 package test::api::missing_api_base_url;
-use MooseX::Net::API;
+use Net::HTTP::API;
 
 net_api_method user => (method => 'GET', path => '/user/');
 
diff --git a/t/03_serialization.t b/t/03_serialization.t
index 5fa45c2..8e7eea9 100644
--- a/t/03_serialization.t
+++ b/t/03_serialization.t
@@ -2,12 +2,12 @@ use strict;
 use warnings;
 use Test::More;
 
-use MooseX::Net::API::Parser::XML;
-use MooseX::Net::API::Parser::JSON;
-use MooseX::Net::API::Parser::YAML;
+use Net::HTTP::API::Parser::XML;
+use Net::HTTP::API::Parser::JSON;
+use Net::HTTP::API::Parser::YAML;
 
-ok my $xml_parser = MooseX::Net::API::Parser::XML->new();
-ok my $yaml_parser = MooseX::Net::API::Parser::YAML->new();
-ok my $json_parser = MooseX::Net::API::Parser::JSON->new();
+ok my $xml_parser = Net::HTTP::API::Parser::XML->new();
+ok my $yaml_parser = Net::HTTP::API::Parser::YAML->new();
+ok my $json_parser = Net::HTTP::API::Parser::JSON->new();
 
 done_testing;
diff --git a/t/04_apimethod.t b/t/04_apimethod.t
index cac2715..513c84a 100644
--- a/t/04_apimethod.t
+++ b/t/04_apimethod.t
@@ -2,10 +2,10 @@ use strict;
 use warnings;
 use Test::More;
 use Test::Exception;
-use MooseX::Net::API::Meta::Method;
+use Net::HTTP::API::Meta::Method;
 
 dies_ok {
-    MooseX::Net::API::Meta::Method->wrap(
+    Net::HTTP::API::Meta::Method->wrap(
         name         => 'test_method',
         package_name => 'test::api',
         body         => sub {1},
@@ -13,7 +13,7 @@ dies_ok {
 }
 "missing some params";
 
-ok my $method = MooseX::Net::API::Meta::Method->wrap(
+ok my $method = Net::HTTP::API::Meta::Method->wrap(
     name         => 'test_method',
     package_name => 'test::api',
     body         => sub {1},
@@ -24,7 +24,7 @@ ok my $method = MooseX::Net::API::Meta::Method->wrap(
 
 is $method->method, 'GET', 'method is GET';
 
-ok $method = MooseX::Net::API::Meta::Method->wrap(
+ok $method = Net::HTTP::API::Meta::Method->wrap(
     name         => 'test_method',
     package_name => 'test::api',
     method       => 'GET',
diff --git a/t/05_authentication.t b/t/05_authentication.t
index e769a53..f6d2248 100644
--- a/t/05_authentication.t
+++ b/t/05_authentication.t
@@ -3,7 +3,7 @@ use warnings;
 use Test::More;
 
 package test::auth;
-use MooseX::Net::API;
+use Net::HTTP::API;
 
 net_api_declare fake_auth => (
     api_base_url          => 'http://localhost',
@@ -23,7 +23,7 @@ sub my_auth {
 }
 
 package test::auth::simple;
-use MooseX::Net::API;
+use Net::HTTP::API;
 
 net_api_declare fake_auth => (
     api_base_url          => 'http://localhost',
diff --git a/t/lib/TestAPI.pm b/t/lib/TestAPI.pm
index 45d3cb2..ea770e9 100644
--- a/t/lib/TestAPI.pm
+++ b/t/lib/TestAPI.pm
@@ -1,5 +1,5 @@
 package TestAPI;
-use MooseX::Net::API;
+use Net::HTTP::API;
 
 use HTTP::Response;