Subject: CVS commit: pkgsrc/devel/lua-penlight
From: Alexander Nasonov
Date: 2017-04-27 23:52:09
Message id: 20170427215209.5515EFBE4@cvs.NetBSD.org

Log Message:
Update devel/lua-penlight to 1.5.2.

Changes between 1.5.2 and 1.4.1:

    lapp: print left in code
    issue #228: bug in file matching for dir.getfiles
    issue #243 broken lapp default: little fix to c222e422274c
    testclone example assumed global lfs
    update changes and version number
    issue #226: can use either = or : to separate flag/value
    issue #241: little hack to handle no-trailing-comment case
    Merge pull request #193 from jvprat/class_tostring

    Setup __tostring on class creation instead of per instance.
    Merge pull request #240 from urzds/fix/lapp-convert-defaults

    lapp: Convert default values using the associated converter function
    Merge pull request #242 from tjachmann/workaround-for-pretty.load-error

    Workaround for error in pretty.load with a C hook

    pretty.load errors out, if a C hook function is installed (Lua 5.1). Reason: \ 
debug.gethook() returns a string as first return value in this case.  Then \ 
debug.sethook complains about the first argument being a string not a function.
    lapp: Convert default values using the associated converter function

    Also uses quite some hack to catch errors during conversion of default values.
     This prevents the application from quitting, if the value provided as default
     would be invalid in the current context, while the value provided on the
     command line is valid.

    Also handles -h and --help early, before parsing command line arguments
     Otherwise it would be impossible to show the help, if conversion of the
     default value of some argument fails.
    Merge pull request #239 from kulla/rename-arg-pattern

    dir.lua: Rename arg "pattern" to "shell_pattern"

    Fix a test to pass under LuaJIT with Lua 5.2 compat
    Merge pull request #237 from Tieske/fix/execute

    fix os.execute
    Merge branch 'master' of https://github.com/stevedonovan/Penlight into \ 
fix/execute
    fix os.execute to return proper results when LuaJIT is being used with 52 \ 
compatibility enabled
    Tweak local declaration in pl.compat

    Avoid duplicated variable.
    Fix a typo in pl.seq docs [ci skip]
    Merge pull request #233 from greatwolf/seq_coverage

    Added more test coverage for pl.seq
    Added test for seq.printall.
    Minor refactor of existing test.
    Added missing test case for equal_to and random.
    Added tests for seq.random, minmax, enum and copy_tuples.
    seq coverage
    Merge pull request #231 from greatwolf/bugfix_refactor

    Redid PR #230 as a separate branch.
    Added more tests for seq.reduce.
    Fixed seq.reduce to handle empty case.
    Allow passing initial value when calling reduce through seq object.
    naming consistency.
    redundant checks.
    Update version number in docs
    Fix typos in pl.lapp docs
    Added tests for seq.take.
    Just use n as counter.
    Added tests for seq.skip.
    Fixed bug when skipping past list.
    More concise code.

    Initial value argument for `tablex.reduce` is going to be added in 1.5.0, \ 
not 1.3.2
    Merge pull request #213 from gpleiss/reduce-memo

    tablex.reduce can take an optional initial memo
    tablex.reduce can take an optional initial memo
    Add "in progress" changes [ci skip]
    Merge pull request #221 from mpeterv/fix-stringx-splitlines

    Fix stringx.splitlines
    Fix coverage reporting on travis

    Tests are now run from project root.
    pl.seq() constructor can take an iterator which returns a function _and_ an \ 
object
    issue #226 lapp respects ':' as well as '='
    Merge pull request #225 from kulla/dir-some-fixes

    Little fixes in dir.lua
    dir.lua: Replace tab with whitespace in docstring.

    The tab characters create a strange format in documentatio (cf.
    https://stevedonovan.github.io/Penlight/api/libraries/pl.dir.html#getallfiles
    )

    dir.lua: Remove file execution permission.

    Merge pull request #224 from kulla/utils-doctring-fix

    Fix usage example of string_lambda().
    utils.lua: Fix usage example of string_lambda().

    Update docs for template.substitute
    Merge pull request #222 from urzds/feature/template-customisable-filename

    pl.template: Support customising the chunk "filename" (default: TMP)
    pl.template: Support customising the chunk name (default: "TMP")

    This can be used to aid debugging, e.g. when the template resides in an actual
     file.
    Fix handling of __index returning false in pl.strict

    Ref #223.
    Add a test for tablex.count_map
    Merge pull request #214 from urzds/feat/customisable-inline-escape

    pl.template: Support customising the inline escape character (default…
    pl.data: faster delimiter guessing

    Don't count occurrences of potential delims, just use string.find.
    Fix error in tablex.count_map

    Regression introduced in @6123f9e.
    Remove unused localizations, update dependency lists
    Don't use globals in 'pl.data' tests
    Fix stringx.splitlines

    Make stringx.splitlines more compliant with its Python
    analogue:

    * Recognize "\r\n" as a single line end.
    * Return an empty list for an empty string.
    * Implement `keep_ends` argument.

Files:
RevisionActionfile
1.11modifypkgsrc/devel/lua-penlight/Makefile
1.9modifypkgsrc/devel/lua-penlight/distinfo