Skip to content
This repository has been archived by the owner on Apr 13, 2021. It is now read-only.

Commit

Permalink
Merge pull request #35 from techman83/cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
techman83 committed Sep 11, 2015
2 parents 0cb918a + 911b73d commit 39e34a7
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 14 deletions.
3 changes: 1 addition & 2 deletions lib/App/KSP_CKAN/NetKAN.pm
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use strict;
use warnings;
use autodie;
use Method::Signatures 20140224;
use Scalar::Util::Reftype;
use File::chdir;
use Carp qw( croak );
use App::KSP_CKAN::Status;
Expand Down Expand Up @@ -37,7 +36,7 @@ data and only run the inflater when required.
=cut

my $Ref = sub {
croak("auth isn't a 'App::KSP_CKAN::Tools::Config' object!") unless reftype( $_[0] )->class eq "App::KSP_CKAN::Tools::Config";
croak("auth isn't a 'App::KSP_CKAN::Tools::Config' object!") unless $_[0]->DOES("App::KSP_CKAN::Tools::Config");
};

has 'config' => ( is => 'ro', required => 1, isa => $Ref );
Expand Down
10 changes: 5 additions & 5 deletions lib/App/KSP_CKAN/Roles/Logger.pm
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,11 @@ my @methods = qw(
);

has _logger => (
is => 'ro',
isa => sub { 'Log::Log4perl::Logger' },
lazy => 1,
builder => 1,
handles => \@methods,
is => 'ro',
isa => sub { 'Log::Log4perl::Logger' },
lazy => 1,
builder => 1,
handles => \@methods,
);

has _log_level => ( is => 'ro', lazy => 1, builder => 1 );
Expand Down
14 changes: 7 additions & 7 deletions lib/App/KSP_CKAN/Status.pm
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,14 @@ has '_data' => ( is => 'ro', lazy => 1, builder => 1 );
has '_json' => ( is => 'ro', lazy => 1, builder => 1 );

has 'status' => (
is => 'rw',
handles_via => 'Hash',
handles => {
get_val => 'get',
set_val => 'set',
all_keys => 'keys'
is => 'rw',
handles_via => 'Hash',
handles => {
get_val => 'get',
set_val => 'set',
all_keys => 'keys'
},
default => sub { { } },
default => sub { { } },
);

method _build__json {
Expand Down

0 comments on commit 39e34a7

Please sign in to comment.