Skip to content

Commit

Permalink
Merge pull request #44 from maxmind/greg/release
Browse files Browse the repository at this point in the history
Release 0.006001
  • Loading branch information
klp2 authored Aug 9, 2023
2 parents c70837d + 75cde91 commit 1853b6d
Show file tree
Hide file tree
Showing 20 changed files with 47 additions and 43 deletions.
9 changes: 2 additions & 7 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,6 @@ can submit an issue report [via the web](https://github.com/maxmind/Stepford/iss
.
This is a good place to send your questions about the usage of this distribution.

## Travis

All pull requests for this distribution will be automatically tested by
[Travis](https://travis-ci.org/) and the build status will be reported on the
pull request page. If your build fails, please take a look at the output.

## Tidyall

Expand All @@ -129,5 +124,5 @@ request to the .mailmap file to contain the correct mapping.
[Check here](https://github.com/git/git/blob/master/Documentation/mailmap.txt)
for more information on git's .mailmap files.

This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.014 from a
template file originating in Dist-Zilla-PluginBundle-MAXMIND-0.83.
This file was generated via Dist::Zilla::Plugin::GenerateFile::FromShareDir 0.015 from a
template file originating in Dist-Zilla-PluginBundle-MAXMIND-0.84.
2 changes: 2 additions & 0 deletions Changes
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
{{$NEXT}}

0.006001 2023-08-09

- If a child process exits abnormally, Stepford will now immediately send
a SIGTERM to all of the children. Previously, it would wait for all of
the running children to complete.
Expand Down
18 changes: 9 additions & 9 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
This software is copyright (c) 2014 - 2019 by MaxMind, Inc.
This software is copyright (c) 2014 - 2023 by MaxMind, Inc.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
Expand All @@ -12,7 +12,7 @@ b) the "Artistic License"

--- The GNU General Public License, Version 1, February 1989 ---

This software is Copyright (c) 2014 - 2019 by MaxMind, Inc.
This software is Copyright (c) 2014 - 2023 by MaxMind, Inc.

This is free software, licensed under:

Expand Down Expand Up @@ -272,7 +272,7 @@ That's all there is to it!

--- The Artistic License 1.0 ---

This software is Copyright (c) 2014 - 2019 by MaxMind, Inc.
This software is Copyright (c) 2014 - 2023 by MaxMind, Inc.

This is free software, licensed under:

Expand All @@ -292,21 +292,21 @@ Definitions:

- "Package" refers to the collection of files distributed by the Copyright
Holder, and derivatives of that collection of files created through
textual modification.
textual modification.
- "Standard Version" refers to such a Package if it has not been modified,
or has been modified in accordance with the wishes of the Copyright
Holder.
Holder.
- "Copyright Holder" is whoever is named in the copyright or copyrights for
the package.
the package.
- "You" is you, if you're thinking about copying or distributing this Package.
- "Reasonable copying fee" is whatever you can justify on the basis of media
cost, duplication charges, time of people involved, and so on. (You will
not be required to justify it to the Copyright Holder, but only to the
computing community at large as a market that must bear the fee.)
computing community at large as a market that must bear the fee.)
- "Freely Available" means that no fee is charged for the item itself, though
there may be fees involved in handling the item. It also means that
recipients of the item may redistribute it under the same conditions they
received it.
received it.

1. You may make and give away verbatim copies of the source form of the
Standard Version of this Package without restriction, provided that you
Expand Down Expand Up @@ -373,7 +373,7 @@ products derived from this software without specific prior written permission.

9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED
WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.

The End

25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Stepford - A vaguely Rake/Make/Cake-like thing for Perl - create steps and let a

# VERSION

version 0.006000
version 0.006001

# SYNOPSIS

Expand Down Expand Up @@ -65,33 +65,33 @@ Stepfile, etc.
With Stepford, each step is represented by a class you create. That class
should consume one of the available Step roles. Those are:

- [Stepford::Role::Step::FileGenerator](https://metacpan.org/pod/Stepford::Role::Step::FileGenerator)
- [Stepford::Role::Step::FileGenerator](https://metacpan.org/pod/Stepford%3A%3ARole%3A%3AStep%3A%3AFileGenerator)

For steps that generate files.

- [Stepford::Role::Step](https://metacpan.org/pod/Stepford::Role::Step)
- [Stepford::Role::Step](https://metacpan.org/pod/Stepford%3A%3ARole%3A%3AStep)

For steps that _don't_ generate files.

- [Stepford::Role::Step::FileGenerator::Atomic](https://metacpan.org/pod/Stepford::Role::Step::FileGenerator::Atomic)
- [Stepford::Role::Step::FileGenerator::Atomic](https://metacpan.org/pod/Stepford%3A%3ARole%3A%3AStep%3A%3AFileGenerator%3A%3AAtomic)

For a step that wants to generate a single file atomically.

Steps declare both their dependencies (required inputs) and productions
(outputs) as attributes. These attributes should be given either the
`StepDependency` or `StepProduction` trait as appropriate.

The [Stepford::Runner](https://metacpan.org/pod/Stepford::Runner) class analyzes the dependencies and productions for
The [Stepford::Runner](https://metacpan.org/pod/Stepford%3A%3ARunner) class analyzes the dependencies and productions for
each step to figure out what steps it needs to run in order to satisfy the
dependencies of the final steps you specify.

Each step can specify a `last_run_time` method (or get one from the
[Stepford::Role::Step::FileGenerator](https://metacpan.org/pod/Stepford::Role::Step::FileGenerator) role). The runner uses this to skip
[Stepford::Role::Step::FileGenerator](https://metacpan.org/pod/Stepford%3A%3ARole%3A%3AStep%3A%3AFileGenerator) role). The runner uses this to skip
steps that are up to date.

See [Stepford::Runner](https://metacpan.org/pod/Stepford::Runner), [Stepford::Role::Step](https://metacpan.org/pod/Stepford::Role::Step), and
[Stepford::Role::Step::FileGenerator](https://metacpan.org/pod/Stepford::Role::Step::FileGenerator), and
[Stepford::Role::Step::FileGenerator::Atomic](https://metacpan.org/pod/Stepford::Role::Step::FileGenerator::Atomic) for more details.
See [Stepford::Runner](https://metacpan.org/pod/Stepford%3A%3ARunner), [Stepford::Role::Step](https://metacpan.org/pod/Stepford%3A%3ARole%3A%3AStep), and
[Stepford::Role::Step::FileGenerator](https://metacpan.org/pod/Stepford%3A%3ARole%3A%3AStep%3A%3AFileGenerator), and
[Stepford::Role::Step::FileGenerator::Atomic](https://metacpan.org/pod/Stepford%3A%3ARole%3A%3AStep%3A%3AFileGenerator%3A%3AAtomic) for more details.

# CONCEPTS AND DESIGN

Expand Down Expand Up @@ -120,7 +120,7 @@ step (they can also be supplied to the runner manually).
The flip side of a dependency is a production. This is a value that the step
will generate as needed.

Steps are run by a [Stepford::Runner](https://metacpan.org/pod/Stepford::Runner) object. To create this object, you give
Steps are run by a [Stepford::Runner](https://metacpan.org/pod/Stepford%3A%3ARunner) object. To create this object, you give
it a list of step namespaces and the class(es) of the final step(s) you want
to run. The runner looks at the final steps' dependencies and uses this
information to figure out what other steps to run. It looks for steps with
Expand All @@ -138,7 +138,7 @@ that satisfies the dependency (in terms of the value's type, content, etc.).

If multiple classes have a production of the same name, then the first class
that Stepford sees "wins". This can be useful if you want to override a step
for testing, for example. See the documentation of the [Stepford::Runner](https://metacpan.org/pod/Stepford::Runner)
for testing, for example. See the documentation of the [Stepford::Runner](https://metacpan.org/pod/Stepford%3A%3ARunner)
class's `new` method for more details on step namespaces.

It is not possible for a class to have an attribute that is simultaneously a
Expand Down Expand Up @@ -175,13 +175,14 @@ Dave Rolsky <drolsky@maxmind.com>
- José Joaquín Atria <jjatria@gmail.com>
- Kevin Phair <phair.kevin@gmail.com>
- Mark Fowler <mfowler@maxmind.com>
- Nick Logan <nlogan@maxmind.com>
- Olaf Alders <oalders@maxmind.com>
- Ran Eilam <reilam@maxmind.com>
- vti <viacheslav.t@gmail.com>

# COPYRIGHT AND LICENSE

This software is copyright (c) 2014 - 2019 by MaxMind, Inc.
This software is copyright (c) 2014 - 2023 by MaxMind, Inc.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.
3 changes: 3 additions & 0 deletions cpanfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is generated by Dist::Zilla::Plugin::CPANFile v6.030
# Do not edit this file directly. To change prereqs, edit the `dist.ini` file.

requires "Carp" => "0";
requires "List::AllUtils" => "0";
requires "Log::Dispatch" => "0";
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Stepford;
use strict;
use warnings;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

1;

Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Error.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Moose;

Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/FinalStep.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Moose;
use MooseX::StrictConstructor;
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Graph.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use List::AllUtils qw( all none );
use Stepford::Error;
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/GraphBuilder.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use List::AllUtils qw( sort_by uniq );
use Stepford::Error;
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/LoggerWithMoniker.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Stepford::Types qw( Logger Str );

Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Role/Step.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use List::AllUtils qw( any );
use Stepford::LoggerWithMoniker;
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Role/Step/FileGenerator.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Carp qw( croak );
use List::AllUtils qw( any max );
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Role/Step/FileGenerator/Atomic.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Carp qw( croak );
use Path::Class qw( file );
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Role/Step/Unserializable.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Moose::Role;

Expand Down
5 changes: 4 additions & 1 deletion lib/Stepford/Runner.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use List::AllUtils qw( first );
use Module::Pluggable::Object;
Expand Down Expand Up @@ -250,6 +250,9 @@ sub _kill_all_children {
my $pm = shift;

for my $pid ( $pm->running_procs ) {

# This is a best-effort attempt to kill direct children.
## no critic (RequireCheckedSyscalls)
kill 'TERM', $pid;
}
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Trait/StepDependency.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Moose::Role;

Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Trait/StepProduction.pm
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use strict;
use warnings;
use namespace::autoclean;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use Moose::Role;

Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Types.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Stepford::Types;
use strict;
use warnings;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use MooseX::Types::Common::Numeric;
use MooseX::Types::Moose;
Expand Down
2 changes: 1 addition & 1 deletion lib/Stepford/Types/Internal.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package Stepford::Types::Internal;
use strict;
use warnings;

our $VERSION = '0.006001';
our $VERSION = '0.006002';

use MooseX::Types::Common::String qw( NonEmptyStr );
use MooseX::Types::Moose qw( ArrayRef Str );
Expand Down

0 comments on commit 1853b6d

Please sign in to comment.