Address-PostCode-India

 view release on metacpan or  search on metacpan

MANIFEST  view on Meta::CPAN

MANIFEST.SKIP
README
t/00-load.t
t/01-details.t
t/manifest.t
t/pod.t
t/changes.t
t/meta-json.t
t/meta-yml.t
META.yml                                 Module YAML meta-data (added by MakeMaker)
META.json                                Module JSON meta-data (added by MakeMaker)

META.json  view on Meta::CPAN

         }
      },
      "configure" : {
         "requires" : {
            "ExtUtils::MakeMaker" : "0"
         }
      },
      "runtime" : {
         "requires" : {
            "Address::PostCode::UserAgent" : "0.09",
            "JSON" : "0",
            "Moo" : "0",
            "namespace::autoclean" : "0.28",
            "perl" : "5.006"
         }
      }
   },
   "provides" : {
      "Address::PostCode::India" : {
         "file" : "lib/Address/PostCode/India.pm",
         "version" : "0.13"

META.json  view on Meta::CPAN

   },
   "release_status" : "stable",
   "resources" : {
      "repository" : {
         "type" : "git",
         "url" : "https://github.com/Manwar/Address-PostCode-India.git",
         "web" : "https://github.com/Manwar/Address-PostCode-India"
      }
   },
   "version" : "0.13",
   "x_serialization_backend" : "JSON::PP version 2.27400"
}

META.yml  view on Meta::CPAN

    - inc
provides:
  Address::PostCode::India:
    file: lib/Address/PostCode/India.pm
    version: '0.13'
  Address::PostCode::India::Place:
    file: lib/Address/PostCode/India/Place.pm
    version: '0.13'
requires:
  Address::PostCode::UserAgent: '0.09'
  JSON: '0'
  Moo: '0'
  namespace::autoclean: '0.28'
  perl: '5.006'
resources:
  repository: https://github.com/Manwar/Address-PostCode-India.git
version: '0.13'
x_serialization_backend: 'CPAN::Meta::YAML version 0.018'

Makefile.PL  view on Meta::CPAN

    LICENSE          => 'artistic_2',
    PL_FILES         => {},
    MIN_PERL_VERSION => 5.006,
    CONFIGURE_REQUIRES => {
        'ExtUtils::MakeMaker' => 0,
    },
    BUILD_REQUIRES   => {
        'Test::More' => 0,
    },
    PREREQ_PM => {
        'JSON' => 0,
        'Moo'  => 0,
        'namespace::autoclean'         => '0.28',
        'Address::PostCode::UserAgent' => '0.09',
    },
    dist  => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
    clean => { FILES => 'Address-PostCode-India-*' },
    (eval { ExtUtils::MakeMaker->VERSION(6.46) } ? (META_MERGE => {
        'meta-spec' => { version => 2 },
        provides    => {
            'Address::PostCode::India'        => { file => 'lib/Address/PostCode/India.pm'      , version => '0.13' },

lib/Address/PostCode/India.pm  view on Meta::CPAN


Address::PostCode::India - Interface to the India PinCode.

=head1 VERSION

Version 0.13

=cut

use 5.006;
use JSON;
use Data::Dumper;
use Address::PostCode::UserAgent;
use Address::PostCode::India::Place;

use Moo;
use namespace::autoclean;
extends 'Address::PostCode::UserAgent';

our $BASE_URL = 'http://getpincodes.info/api.php';

t/meta-json.t  view on Meta::CPAN

#!/usr/bin/perl

use 5.006;
use strict; use warnings;
use Address::PostCode::India;
use Test::More;

eval "use Test::CPAN::Meta::JSON";
plan skip_all => "Test::CPAN::Meta::JSON required for testing MYMETA.json" if $@;

my $meta    = meta_spec_ok('MYMETA.json');
my $version = $Address::PostCode::India::VERSION;

is($meta->{version},$version, 'MYMETA.json distribution version matches');

if ($meta->{provides}) {
    foreach my $mod (keys %{$meta->{provides}}) {
        eval("use $mod;");
        my $mod_version = eval(sprintf("\$%s::VERSION", $mod));



( run in 0.671 second using v1.01-cache-2.11-cpan-cdf2f3d4e48 )