Skip to content

Commit

Permalink
Finished removing App::hopen code
Browse files Browse the repository at this point in the history
Also, replaced Arrrgs, and direct uses of Getargs::Mixed, with new
Data::Hopen::getparameters().

Bumped version; first non-trial release.
  • Loading branch information
Chris White committed Feb 14, 2019
1 parent 2acfb34 commit c5e6e72
Show file tree
Hide file tree
Showing 29 changed files with 71 additions and 528 deletions.
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ inc/
nytprof.out
pod2htm*.tmp
pm_to_blib
Build-Hopen-*
Build-Hopen-*.tar.gz
Data-Hopen-*
Data-Hopen-*.tar.gz
*.bak

# Other
Expand Down
4 changes: 0 additions & 4 deletions MANIFEST
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
bin/hopen
Changes
lib/Data/Hopen.pm
lib/Data/Hopen/Arrrgs.pm
lib/Data/Hopen/Base.pm
lib/Data/Hopen/G.pod
lib/Data/Hopen/G/CollectOp.pm
lib/Data/Hopen/G/DAG.pm
lib/Data/Hopen/G/Entity.pm
lib/Data/Hopen/G/FilesOp.pm
lib/Data/Hopen/G/Goal.pm
lib/Data/Hopen/G/GraphBuilder.pm
lib/Data/Hopen/G/Link.pm
Expand All @@ -19,8 +17,6 @@ lib/Data/Hopen/Scope/Environment.pm
lib/Data/Hopen/Scope/Hash.pm
lib/Data/Hopen/Scope/Inputs.pm
lib/Data/Hopen/Scope/Overrides.pm
lib/Data/Hopen/Tool.pm
lib/Data/Hopen/Toolchain.pm
lib/Data/Hopen/Util/Data.pm
lib/Data/Hopen/Util/Filename.pm
lib/Data/Hopen/Util/NameSet.pm
Expand Down
4 changes: 2 additions & 2 deletions MANIFEST.SKIP
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
# MIscellaneous
# Miscellaneous
^\.editorconfig
^\.[^\\\/]*\.yml
\bfoo\b.*
t/.*\.out$
lua$
TEMPLATE
Data-Hopen-*
Data-Hopen-.*
TODO
\brunhopen$
\.stackdump$
Expand Down
2 changes: 1 addition & 1 deletion Makefile.PL
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,7 @@ my %opts = (
'Hash::Ordered' => '0.011',
'Import::Into' => '0',
'IO::Handle' => '0',
'Getargs::Mixed' => '1.03', # no Changes file - take the latest
'Getargs::Mixed' => '1.04', # For -undef_ok option
'Getopt::Long' => '2.5', # For long option bugfix
'Graph' => '0.9704', # For latest multiedged support
'List::MoreUtils' => '0.428',
Expand Down
19 changes: 17 additions & 2 deletions lib/Data/Hopen.pm
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ our (@EXPORT, @EXPORT_OK, %EXPORT_TAGS);
BEGIN {
# TODO move more of these to a separate utility package?
# Probably keep hnew, hlog, $VERBOSE, and $QUIET here.
@EXPORT = qw(hnew hlog);
@EXPORT = qw(hnew hlog getparameters);
@EXPORT_OK = qw(loadfrom $VERBOSE $QUIET UNSPECIFIED NOTHING isMYH MYH);
%EXPORT_TAGS = (
default => [@EXPORT],
Expand All @@ -19,9 +19,10 @@ BEGIN {
}

use Data::Hopen::Util::NameSet;
use Getargs::Mixed;
use Storable ();

our $VERSION = '0.000009'; # TRIAL
our $VERSION = '0.000010';

# Docs {{{1

Expand Down Expand Up @@ -205,6 +206,20 @@ sub isMYH {
return ($name =~ /\b\Q@{[MYH]}\E$/)
} #isMYH()

=head2 getparameters
An alias of the C<parameters()> function from L<Getargs::Mixed>, but with
C<-undef_ok> set.
=cut

my $GM = Getargs::Mixed->new(-undef_ok => true);

sub getparameters {
unshift @_, $GM;
goto &Getargs::Mixed::parameters;
} #getparameters()

=head1 CONSTANTS
=head2 UNSPECIFIED
Expand Down
281 changes: 0 additions & 281 deletions lib/Data/Hopen/Arrrgs.pm

This file was deleted.

2 changes: 1 addition & 1 deletion lib/Data/Hopen/Base.pm
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ package Data::Hopen::Base;
use parent 'Exporter';
use Import::Into;

our $VERSION = '0.000009'; # TRIAL
our $VERSION = '0.000010';

# Pragmas
use 5.014;
Expand Down
Loading

0 comments on commit c5e6e72

Please sign in to comment.