-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update META info for PAUSE upload prep
Also added missing iterator.t test
- Loading branch information
Showing
4 changed files
with
49 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"perl" : "6", | ||
"name" : "IO::Glob", | ||
"auth" : "github:zostay", | ||
"version" : "v0.1", | ||
"description" : "Glob matching for paths & strings and listing files", | ||
"authors" : [ "Andrew Sterling Hanenkamp <[email protected]>" ], | ||
"license" : "Artistic 2.0", | ||
"provides" : { | ||
"IO::Glob": "lib/IO/Glob.pm6", | ||
"IO::Glob::Globber": "lib/IO/Glob.pm6", | ||
"IO::Glob::Globber::Term": "lib/IO/Glob.pm6", | ||
"IO::Glob::Globber::Match": "lib/IO/Glob.pm6", | ||
"IO::Glob::Globber::Expansion": "lib/IO/Glob.pm6", | ||
"IO::Glob::Base": "lib/IO/Glob.pm6", | ||
"IO::Glob::Simple": "lib/IO/Glob.pm6", | ||
"IO::Glob::BSD": "lib/IO/Glob.pm6", | ||
"IO::Glob::SQL": "lib/IO/Glob.pm6" | ||
}, | ||
"depends" : [], | ||
"source" : { | ||
"bugtracker" : "https://github.com/zostay/perl6-IO-Glob/issues", | ||
"source" : "git://github.com/zostay/perl6-IO-Glob.git" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
unit class IO::Glob does Iterable; | ||
unit class IO::Glob:auth<github:zostay>:ver<0.1> does Iterable; | ||
|
||
use v6; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#!perl6 | ||
|
||
use v6; | ||
|
||
use Test; | ||
use IO::Glob; | ||
|
||
{ | ||
my @files = glob('t/fixtures/*.md'); | ||
is @files.elems, 2; | ||
is @files[0], 't/fixtures/bar.md'.IO; | ||
is @files[1], 't/fixtures/foo.md'.IO; | ||
} | ||
|
||
{ | ||
todo 'expansion order should be respected', 3; | ||
my @files = glob('t/fixtures/{foo,bar}.md'); | ||
is @files.elems, 2; | ||
is @files[0], 't/fixtures/foo.md'.IO; | ||
is @files[1], 't/fixtures/bar.md'.IO; | ||
} | ||
|
||
done-testing; |