Commit 899fc0a3 authored by Mike Jones's avatar Mike Jones 🌶

Merge branch 'dev' into 'master'

Add missing dependency

See merge request !44
parents 1daa5c40 1b098f73
......@@ -4,7 +4,7 @@ license = MIT
copyright_holder = Mike Jones
copyright_year = 2018
version = 0.001
version = 0.002
[TestRelease]
[ConfirmRelease]
......@@ -12,10 +12,12 @@ version = 0.001
[@Basic]
[Prereqs]
DateTime = 0
Encode = 0
List::MoreUtils = 0
Mojolicious = 0
Moo = 0
Moose = 0
MooX::HandlesVia = 0
Readonly = 0
Role::EventEmitter = 0
......
......@@ -194,9 +194,12 @@ sub _validate {
my $args = shift;
my $required = shift;
my %slice;
# Grab a slice of the keys from given arguments
my %slice = %{$args}{@{$required}};
@slice{@{$required}} = @{$args}{@{$required}};
# Return early, all's well
return { valid => 1 } if all { defined($_) } values %slice;
my @missing;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment