Find a file
Juerd Waalboer df771e22fd Fix bug where follow-up prompt of second command would split on whitespace
Bug:

    > 2x unlisted 6
    Please provide a short description: bar foo
    foo: No such product, user, or command.

Fixed:

    > 2x unlisted 6
    Please provide a short description: bar foo
    Pending:
    2x {
        6.00 bar foo
    }
    Enter username to pay 12.00; type 'abort' to abort.
2020-09-07 02:27:25 +02:00
lib/RevBank Merge branch 'master' of github.com:Juerd/revbank 2020-03-01 06:17:27 +01:00
plugins Fix #7 2020-03-01 06:16:08 +01:00
.gitignore Add revbank.stock & voorraad to .gitignore 2019-05-14 18:58:39 +02:00
README.md Fix POD/markdown 2020-06-10 21:05:20 +02:00
revbank Fix bug where follow-up prompt of second command would split on whitespace 2020-09-07 02:27:25 +02:00
revbank.accounts Empty accounts file 2011-05-16 22:04:47 +02:00
revbank.market New plugin: market 2013-02-26 23:05:37 +01:00
revbank.plugins New plugin: beep on error 2019-11-08 03:41:49 +01:00
revbank.products Slightly better comments 2013-02-26 04:09:15 +01:00

NAME

revbank - Banking for hackerspace visitors

ANNOUNCEMENTS

The following features were removed:

  • plugins nyan and game

    Please remove these from your revbank.plugins configuration file.

  • creating new accounts with deposit

    Use adduser instead.

  • Method $cart->is_multi_user

  • Method $cart->delete($user, $index)

    Delete a specific entry, as returned by $cart->entries, instead.

The following will disappear in a future version:

Hooks add and added

Use add_entry and added_entry instead, which gets a RevBank::Cart::Entry object, instead.

Note that the new "entries", unlike old "items", can have a quantity other than 1.

Method $cart->add(undef, ...)

Method $cart->add($user, ...)

The add method now always creates an entry from the perspective of the current user, and returns a RevBank::Cart::Entry object to which "contras" can be added with add_contra. The contras can be used for counteracting a value with an operation on another account.

To upgrade a plugin that does a single add with undef as the first argument, simply remove the undef, . When multiple items were added that belong together, consider using add_contra for the subsequent lines; see the take and give plugins for examples.

Method $cart->select_items

Use entries instead, which takes the same kind of argument. Note that entries work slightly differently: they can have a quantity and attached contra entries. Attributes are now accessed through the has_attribute and attribute methods, instead of directly manipulating the hash.

DESCRIPTION

Maybe I'll write some documentation, but not now.

Shell-like invocation with -c is supported, sort of, but it has to be a complete command. Currently, multiple commands are supported on the command line (space separated), but that's an unintended feature...

PLUGINS

Refer to RevBank::Plugins for documentation about writing plugins.

Plugins themselves may have some documentation in the respective plugin files.

Note that plugins that begin with revspace_ are revspace specific hacks, and were not written with reusability in mind. They will probably not work for your setup.

AUTHOR

Juerd Waalboer #####@juerd.nl

LICENSE

Pick your favorite OSI license.