Skip to content

Commit

Permalink
0.0.40
Browse files Browse the repository at this point in the history
  • Loading branch information
lizmat committed Nov 11, 2022
1 parent 1926ce9 commit b4816b5
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
5 changes: 5 additions & 0 deletions Changes
Expand Up @@ -2,6 +2,11 @@ Revision history for rak

{{$NEXT}}

0.0.40 2022-11-11T19:01:50+01:00
- Bump dependency on paths to get support for :!file as a way to
fetch directory paths, rather than file paths
- Document specification of :!file to get directory paths only

0.0.39 2022-11-08T11:04:01+01:00
- Add dependency on Data::TextOrBinary
- Files without extension that look like they're binary, will
Expand Down
4 changes: 2 additions & 2 deletions META6.json
Expand Up @@ -9,7 +9,7 @@
"Data::TextOrBinary:ver<1.3>",
"Git::Files:ver<0.0.4>:auth<zef:lizmat>",
"hyperize:ver<0.0.2>:auth<zef:lizmat>",
"paths:ver<10.0.7>:auth<zef:lizmat>",
"paths:ver<10.0.8>:auth<zef:lizmat>",
"path-utils:ver<0.0.11>:auth<zef:lizmat>",
"Trap:ver<0.0.1>:auth<zef:lizmat>"
],
Expand All @@ -30,5 +30,5 @@
],
"test-depends": [
],
"version": "0.0.39"
"version": "0.0.40"
}
2 changes: 2 additions & 0 deletions README.md
Expand Up @@ -395,6 +395,8 @@ If specified, indicates the name of a program and its arguments to be executed.

If specified, indicates the matcher that should be used to select acceptable files with the `paths` utility. Defaults to `True` indicating **all** files should be checked. Applicable for any situation where `paths` is used to create the list of files to check.

If the boolean value `False` is specified, then only directory paths will be produced. This only makes sense if `:find` is also specified.

#### :filesize(&filter)

If specified, indicates the `Callable` filter that should be used to select acceptable paths by the **number of bytes** of the path. The `Callable` is passed the number of bytes of a path and is expected to return a trueish value to have the path be considered for further selection.
Expand Down
4 changes: 4 additions & 0 deletions doc/rak.rakudoc
Expand Up @@ -433,6 +433,10 @@ indicating B<all> files should be checked. Applicable for any
situation where C<paths> is used to create the list of files to
check.

If the boolean value C<False> is specified, then only directory
paths will be produced. This only makes sense if C<:find> is also
specified.

=head4 :filesize(&filter)

If specified, indicates the C<Callable> filter that should be used to select
Expand Down
12 changes: 6 additions & 6 deletions lib/rak.rakumod
@@ -1,10 +1,10 @@
# The modules that we need here, with their full identities
use Data::TextOrBinary:ver<1.3>; # is-text
use Git::Files:ver<0.0.4>:auth<zef:lizmat>; # git-files
use hyperize:ver<0.0.2>:auth<zef:lizmat>; # hyperize raceize
use paths:ver<10.0.7>:auth<zef:lizmat>; # paths
use path-utils:ver<0.0.11>:auth<zef:lizmat>; # path-*
use Trap:ver<0.0.1>:auth<zef:lizmat>; # Trap
use Data::TextOrBinary:ver<1.3>; # is-text
use Git::Files:ver<0.0.4>:auth<zef:lizmat>; # git-files
use hyperize:ver<0.0.2>:auth<zef:lizmat>; # hyperize raceize
use paths:ver<10.0.8>:auth<zef:lizmat> 'paths'; # paths
use path-utils:ver<0.0.11>:auth<zef:lizmat>; # path-*
use Trap:ver<0.0.1>:auth<zef:lizmat>; # Trap

# code to convert a path into an object that can do .lines and .slurp
my &ioify = *.IO;
Expand Down

0 comments on commit b4816b5

Please sign in to comment.