Skip to content

Commit

Permalink
Update META info for PAUSE upload prep
Browse files Browse the repository at this point in the history
Also added missing iterator.t test
  • Loading branch information
zostay committed Feb 10, 2016
1 parent 271783d commit ee36d55
Show file tree
Hide file tree
Showing 4 changed files with 49 additions and 18 deletions.
17 changes: 0 additions & 17 deletions META.info

This file was deleted.

25 changes: 25 additions & 0 deletions META6.json
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"
}
}
2 changes: 1 addition & 1 deletion lib/IO/Glob.pm6
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;

Expand Down
23 changes: 23 additions & 0 deletions t/iterator.t
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;

0 comments on commit ee36d55

Please sign in to comment.