Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Fixes & v3 #13

Closed
wants to merge 8 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,9 @@
.vim/
t
Geo-IPinfo/MYMETA.json
Geo-IPinfo/MYMETA.yml
Geo-IPinfo/Makefile
Geo-IPinfo/Makefile.old
Geo-IPinfo/MANIFEST.bak
Geo-IPinfo/blib
Geo-IPinfo/pm_to_blib
3 changes: 3 additions & 0 deletions Geo-IPinfo/Changes
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ Revision history for Geo-IPinfo

2.0 Nov 29, 2018
Add Caching, breaking changes

3.0 May 5, 2021
TODO
6 changes: 3 additions & 3 deletions Geo-IPinfo/MANIFEST
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
Changes
lib/Geo/IPinfo.pm
ignore.txt
lib/Geo/Details.pm
lib/Geo/IPinfo.pm
Makefile.PL
MANIFEST This list of files
README
ignore.txt
share/countries.json
t/00-load.t
t/01-usage.t
t/manifest.t
t/pod-coverage.t
t/pod.t
xt/boilerplate.t
share/countries.json
6 changes: 3 additions & 3 deletions Geo-IPinfo/Makefile.PL
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
use 5.006;
use 5.30.3;
use strict;
use warnings;

use ExtUtils::MakeMaker;
use File::ShareDir::Install;

Expand All @@ -13,7 +14,7 @@ WriteMakefile(
ABSTRACT_FROM => 'lib/Geo/IPinfo.pm',
LICENSE => 'apache_2_0',
PL_FILES => {},
MIN_PERL_VERSION => '5.006',
MIN_PERL_VERSION => '5.30.3',
CONFIGURE_REQUIRES => {
'ExtUtils::MakeMaker' => '0',
},
Expand All @@ -26,7 +27,6 @@ WriteMakefile(
'File::ShareDir::Install' => '0',
'Cache::LRU' => '0',
'File::Share' => '0',

},
dist => { COMPRESS => 'gzip -9f', SUFFIX => 'gz', },
clean => { FILES => 'Geo-IPinfo-*' },
Expand Down
48 changes: 29 additions & 19 deletions Geo-IPinfo/lib/Geo/Details.pm
Original file line number Diff line number Diff line change
@@ -1,79 +1,89 @@
package Geo::Details;

use 5.006;
use 5.30.3;
use strict;
use warnings;

sub new {
my $class = shift;
my $self = shift;
my $self = shift;

bless $self, $class;

return $self;
}

sub ip {
return $_[0]->{ip};
return $_[0]->{ip};
}

sub hostname {
return $_[0]->{hostname};
return $_[0]->{hostname};
}

sub city {
return $_[0]->{city};
return $_[0]->{city};
}

sub region {
return $_[0]->{region};
return $_[0]->{region};
}

sub country {
return $_[0]->{country};
return $_[0]->{country};
}

sub country_name {
return $_[0]->{country_name};
return $_[0]->{country_name};
}

sub loc {
return $_[0]->{loc};
return $_[0]->{loc};
}

sub latitude {
return $_[0]->{latitude};
return $_[0]->{latitude};
}

sub longitude {
return $_[0]->{longitude};
return $_[0]->{longitude};
}

sub postal {
return $_[0]->{postal};
return $_[0]->{postal};
}

sub timezone {
return $_[0]->{timezone};
}

sub asn {
return $_[0]->{asn};
return $_[0]->{asn};
}

sub company {
return $_[0]->{company};
return $_[0]->{company};
}

sub carrier {
return $_[0]->{carrier};
return $_[0]->{carrier};
}

sub privacy {
return $_[0]->{privacy};
}

sub abuse {
return $_[0]->{abuse};
}

sub meta {
return $_[0]->{meta};
return $_[0]->{meta};
}

sub all {
return $_[0];
return $_[0];
}

#-------------------------------------------------------------------------------

1;
__END__
Loading