-
Notifications
You must be signed in to change notification settings - Fork 23
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
v0.14 #44
base: master
Are you sure you want to change the base?
v0.14 #44
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ use List::Util qw(any uniq max min); | |
use Locale::Country; | ||
use Text::Trim qw(trim); | ||
|
||
our $VERSION = '0.13'; | ||
our $VERSION = '0.14'; | ||
|
||
my $sanction_file = _default_sanction_file(); | ||
my $instance; | ||
|
@@ -219,7 +219,7 @@ sub get_sanctioned_info { ## no critic (RequireArgUnpacking) | |
# and deduplicate the list | ||
my $filtered_sanctioned_names = {}; | ||
foreach my $token (@client_name_tokens) { | ||
foreach my $name ( keys %{$self->{_token_sanctioned_names}->{$token}}) { | ||
foreach my $name (keys %{$self->{_token_sanctioned_names}->{$token}}) { | ||
$filtered_sanctioned_names->{$name} = 1; | ||
} | ||
} | ||
|
@@ -286,12 +286,12 @@ sub get_sanctioned_info { ## no critic (RequireArgUnpacking) | |
} | ||
|
||
sub _load_data { | ||
my $self = shift; | ||
my $sanction_file = $self->{sanction_file}; | ||
$self->{last_time} //= 0; | ||
$self->{_data} //= {}; | ||
$self->{_sanctioned_name_tokens} //= {}; | ||
$self->{_token_sanctioned_names} //= {}; | ||
my $self = shift; | ||
my $sanction_file = $self->{sanction_file}; | ||
$self->{last_time} //= 0; | ||
$self->{_data} //= {}; | ||
$self->{_sanctioned_name_tokens} //= {}; | ||
$self->{_token_sanctioned_names} //= {}; | ||
|
||
if (-e $sanction_file) { | ||
return $self->{_data} if stat($sanction_file)->mtime <= $self->{last_time} && $self->{_data}; | ||
|
@@ -303,8 +303,8 @@ sub _load_data { | |
foreach my $sanctioned_name (keys $self->{_index}->%*) { | ||
my @tokens = _clean_names($sanctioned_name); | ||
$self->{_sanctioned_name_tokens}->{$sanctioned_name} = \@tokens; | ||
foreach my $token (@tokens){ | ||
$self->{_token_sanctioned_names}->{$token}->{$sanctioned_name}=1; | ||
foreach my $token (@tokens) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. what is the change except formatting? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nothing, just formatting, it was made by dzil automatically when it was released There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if the change is just formatting, why was it released? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @shantanu-deriv I think you are misunderstanding . Dzil will do perltidy and pump up version number when we run There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. indeed, but now package is released on cpan.org. Anyway this PR needs to be merged explaining that changes between 0.13 and 0.14 and so far I see only formatting changes between it |
||
$self->{_token_sanctioned_names}->{$token}->{$sanctioned_name} = 1; | ||
} | ||
} | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing release notes?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no, it was made by dzil automatically when it was released
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean you need to add release notes (explain the changes between 0.13 and 0.14)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
corrected the comment :D