Revision history for Sub::Spec::Runner
0.21 2011-10-22
No functional changes. Replace old Sub::Spec::Clause::* with
Sub::Spec::DepChecker.
0.20 2011-10-22
No functional changes. Updated because _parse_schema() is moved from
Sub::Spec::Utils to Data::Sah::Util and 'deps' clause handling is moved
to Sub::Spec::DepChecker.
0.19 2011-06-02
[INCOMPATIBLE CHANGES]
* {get,save,remove}_undo_data() becomes
{get,save,remove}_item_undo_data().
[NEW FEATURES]
* Add methods: {get,remove}_sub_undo_data().
0.18 2011-06-01
[INCOMPATIBLE CHANGES]
* run() now always returns a summary status (e.g. 500 if all items
failed, 200 if some succeeded, etc) instead of last item's result.
See run option 'use_last_res' to return last item's result instead.
[NEW FEATURES]
* run() now accepts options. Currently known option: use_last_res.
* last_res() for easier access to last item's result.
0.17 2011-05-31
[NEW FEATURES]
* New method: empty().
0.16 2011-05-31
[INCOMPATIBLE CHANGES]
* Setting 'undo' attribute no longer automatically reverse order of
run. To reverse order, set 'order_before_run' to a true but negative
value.
0.15 2011-05-26
This release introduces a new feature: under a new flag attribute
'allow_add_same_sub', a single subroutine name can be add()-ed multiple
times, as long as the arguments differ. There are some incompatible
changes introduced as well, as a consequence.
[INCOMPATIBLE CHANGES]
* run() returns 412 instead of 400 when there are no items added.
* Argument list for done(), skip(), repeat(), jump(), pre_sub(),
post_sub() changes, due to extra argument $args when specifying
items.
* rename methods: todo_subs() -> todo_items() (and return hash data
instead of subname), done_subs() -> done_items() (ditto).
* branch_done() replaced by skip_branch() and repeat_branch().
[NEW FEATURES]
* New flag attribute 'allow_add_same_sub' to allow a single subroutine
name to be add()-ed multiple times as long as the arguments differ.
* 'run_sub' dep clause can accept [SUBNAME, ARGS] instead of just
SUBNAME.
[ENHANCEMENTS]
* run() now returns these keys also in data: num_items,
num_success_items, num_failed_items, num_skipped_items to
differentiate with num*subs and num*runs keys.
* add is_done()
0.14 2011-05-16
[INCOMPATIBLE CHANGES]
* Update to latest Sub::Spec specification: -undo becomes -undo_action,
-state becomes -undo_data. Saves undo data in ~/.subspec/.undo by
default.
0.13 2011-03-11
[ENHANCEMENTS]
* Support 'result_naked' spec clause.
0.12 2011-03-10
[DOCUMENTATION]
* Add FAQ.
0.11 2011-03-10
[BUG FIXES]
* Fix small bug in SS::Runner::State's delete().
0.10 2011-03-10
[ENHANCEMENTS]
* Add 'undo' and 'dry_run' attributes.
0.09 2011-03-03
[INCOMPATIBLE CHANGES]
* 'args' attribute is now 'common_args'.
[ENHANCEMENTS]
* Add($subname[, $args]): accepts per-sub args.
0.08 2011-02-28
[INCOMPATIBLE CHANGES]
* Rename module: Sub::Spec::Runner::Orderly -> Sub::Spec::Runner.
* Update to latest Sub::Spec: 'depends' clause becomes 'dep'. 'sub' dep
clause becomes 'run_sub'.
* Check dependencies (using SS::Clause::deps::check()) before add()-ing.
* run() no longer accepts %opts, use the new attributes:
stop_on_sub_errors and order_before_run instead.
[ENHANCEMENTS]
* Add result().
0.07 2011-02-25
Add missing dep [CT].
0.06 2011-02-24
Add get_spec() to allow overriding behaviour for getting sub specs,
remove $spec argument to add().
Add option order_by_dependencies to run() to allow run() to not run
order_by_dependencies().
Some POD fixes.
0.05 2011-02-24
Update doc.
0.04 2011-02-24
Rewrite into OO-style, rename from Sub::Spec::RunDeps ->
Sub::Spec::Runner::Orderly.
0.03 2011-02-23
Add missing dep: Log::Any.
0.02 2011-02-22
Add before_item & after_item argument.
0.01 2011-02-22
First release.