Permalink
Browse files

CPAN Release 0.01

  • Loading branch information...
1 parent e765093 commit 0a54c3641258b8992e2d1b106b2cb63679f1caa9 @mithun committed May 15, 2012
Showing with 704 additions and 1 deletion.
  1. +1 −1 Build.PL
  2. +10 −0 Changes
  3. +28 −0 INSTALL
  4. +379 −0 LICENSE
  5. +12 −0 MANIFEST
  6. +57 −0 META.json
  7. +33 −0 META.yml
  8. +15 −0 Makefile.PL
  9. +88 −0 README
  10. +81 −0 readme.mkdn
View
@@ -30,7 +30,7 @@ my $builder = Module::Build->new(
create_license => 1,
create_makefile_pl => 'traditional',
meta_merge => {
- keywords => [],
+ keywords => [qw(text string range expand permute glob)],
resources => {
bugtracker =>
'http://rt.cpan.org/Public/Dist/Display.html?Name=String-Range-Expand',
View
10 Changes
@@ -0,0 +1,10 @@
+Version History for String-Range-Expand
+Mithun Ayachit
+
+
+0.01
+====
+
+- Initial Release
+
+* * * * *
View
28 INSTALL
@@ -0,0 +1,28 @@
+Installing String-Range-Expand
+Mithun Ayachit
+
+
+Distribution page
+=================
+
+The latest and all previous releases for String-Range-Expand can be
+downloaded from https://metacpan.org/release/String-Range-Expand
+
+Install using cpanm
+===================
+
+String-Range-Expand can be installed with cpanm using the following
+command
+
+ cpanm .
+
+Install using Module::Build
+===========================
+
+String-Range-Expand can be installed with Module::Build using the
+following commands
+
+ perl ./Build.PL
+ ./Build
+ ./Build test
+ ./Build install
View
379 LICENSE

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -0,0 +1,12 @@
+Build.PL
+Changes
+INSTALL
+lib/String/Range/Expand.pm
+LICENSE
+Makefile.PL
+MANIFEST This list of files
+META.json
+META.yml
+README
+t/00-load.t
+t/01-expand.t
View
@@ -0,0 +1,57 @@
+{
+ "abstract" : "Expand range-like strings",
+ "author" : [
+ "Mithun Ayachit <mithun@cpan.org>"
+ ],
+ "dynamic_config" : 1,
+ "generated_by" : "Module::Build version 0.4, CPAN::Meta::Converter version 2.120921",
+ "keywords" : [
+ "text",
+ "string",
+ "range",
+ "expand",
+ "permute",
+ "glob"
+ ],
+ "license" : [
+ "perl_5"
+ ],
+ "meta-spec" : {
+ "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
+ "version" : "2"
+ },
+ "name" : "String-Range-Expand",
+ "prereqs" : {
+ "build" : {
+ "requires" : {
+ "Test::More" : "0",
+ "version" : "0"
+ }
+ },
+ "configure" : {
+ "requires" : {
+ "Module::Build" : "0.38"
+ }
+ }
+ },
+ "provides" : {
+ "String::Range::Expand" : {
+ "file" : "lib/String/Range/Expand.pm",
+ "version" : "0.01"
+ }
+ },
+ "release_status" : "stable",
+ "resources" : {
+ "bugtracker" : {
+ "web" : "http://rt.cpan.org/Public/Dist/Display.html?Name=String-Range-Expand"
+ },
+ "homepage" : "https://github.com/mithun/perl-string-range-expand",
+ "license" : [
+ "http://dev.perl.org/licenses/"
+ ],
+ "repository" : {
+ "url" : "git://github.com/mithun/perl-string-range-expand.git"
+ }
+ },
+ "version" : "0.01"
+}
View
@@ -0,0 +1,33 @@
+---
+abstract: 'Expand range-like strings'
+author:
+ - 'Mithun Ayachit <mithun@cpan.org>'
+build_requires:
+ Test::More: 0
+ version: 0
+configure_requires:
+ Module::Build: 0.38
+dynamic_config: 1
+generated_by: 'Module::Build version 0.4, CPAN::Meta::Converter version 2.120921'
+keywords:
+ - text
+ - string
+ - range
+ - expand
+ - permute
+ - glob
+license: perl
+meta-spec:
+ url: http://module-build.sourceforge.net/META-spec-v1.4.html
+ version: 1.4
+name: String-Range-Expand
+provides:
+ String::Range::Expand:
+ file: lib/String/Range/Expand.pm
+ version: 0.01
+resources:
+ bugtracker: http://rt.cpan.org/Public/Dist/Display.html?Name=String-Range-Expand
+ homepage: https://github.com/mithun/perl-string-range-expand
+ license: http://dev.perl.org/licenses/
+ repository: git://github.com/mithun/perl-string-range-expand.git
+version: 0.01
View
@@ -0,0 +1,15 @@
+# Note: this file was auto-generated by Module::Build::Compat version 0.40
+use ExtUtils::MakeMaker;
+WriteMakefile
+(
+ 'NAME' => 'String::Range::Expand',
+ 'VERSION_FROM' => 'lib/String/Range/Expand.pm',
+ 'PREREQ_PM' => {
+ 'Test::More' => 0,
+ 'version' => 0
+ },
+ 'INSTALLDIRS' => 'site',
+ 'EXE_FILES' => [],
+ 'PL_FILES' => {}
+)
+;
View
88 README
@@ -0,0 +1,88 @@
+NAME
+====
+
+String::Range::Expand - Expand range-like strings
+
+SYNOPSIS
+========
+
+ use String::Range::Expand;
+
+ print "$_\n" for expand_range('host[aa-ac,^ab,ae][01-04,^02-03]');
+
+ # Prints ...
+ # hostaa01
+ # hostaa04
+ # hostac01
+ # hostac04
+ # hostae01
+ # hostae04
+
+DESCRIPTION
+===========
+
+This module provides functions to expand a string that contains
+range-like expressions. This is something that is usually useful when
+working with hostnames, but can be used elsewhere too.
+
+FUNCTIONS
+=========
+
+expand_range($string)
+---------------------
+
+ my @list = expand_range('...');
+
+This function accept a single string, evaluates expressions in those
+strings and returns a list with all avaialble permutations. Ranges with
+limits are expanded using the Range Operator.
+
+ my @list = expand_range('[aa-ad]'); # This is identical to ('aa' .. 'ad')
+
+The following formats are recognized and evaluated
+
+ my @list = expand_range('foo[bar,baz]'); # Comma separated list
+ my @list = expand_range('foo[aa-ad,^ab]'); # Negated element
+ my @list = expand_range('foo[aa-ag,^ab-ad]'); # Negated range
+
+SEE ALSO
+========
+
+- SSH::Batch
+
+This is an extremely useful distribution if you are working with
+hostnames. String::Range::Expand was inspired by this distribution, and
+provides only a subset of features of SSH::Batch
+
+- String::Glob::Permute
+
+Pretty similar, but does not evaluate alphabetical ranges
+
+- Text::Glob::Expand
+
+Like String::Glob::Permute, it does not evaluate alphabetical ranges.
+But it does provide some additional functionality like setting upper
+limits and formatting.
+
+BUGS AND LIMITATIONS
+====================
+
+This module does not attempt to limit the number of permutations for an
+expression.
+
+Please report any bugs or feature requests to
+bug-string-range-expand@rt.cpan.org, or through the web interface at
+http://rt.cpan.org/Public/Dist/Display.html?Name=String-Range-Expand
+
+AUTHOR
+======
+
+Mithun Ayachit mithun@cpan.org
+
+LICENSE AND COPYRIGHT
+=====================
+
+Copyright (c) 2012, Mithun Ayachit. All rights reserved.
+
+This module is free software; you can redistribute it and/or modify it
+under the same terms as Perl itself. See perlartistic.
View
@@ -0,0 +1,81 @@
+# NAME
+
+String::Range::Expand - Expand range-like strings
+
+# SYNOPSIS
+
+ use String::Range::Expand;
+
+ print "$_\n" for expand_range('host[aa-ac,^ab,ae][01-04,^02-03]');
+
+ # Prints ...
+ # hostaa01
+ # hostaa04
+ # hostac01
+ # hostac04
+ # hostae01
+ # hostae04
+
+# DESCRIPTION
+
+This module provides functions to expand a string that contains range-like
+expressions. This is something that is usually useful when working with
+hostnames, but can be used elsewhere too.
+
+# FUNCTIONS
+
+## expand\_range($string)
+
+ my @list = expand_range('...');
+
+This function accept a single string, evaluates expressions in those strings
+and returns a list with all avaialble permutations. Ranges with limits are
+expanded using the [Range Operator](http://perldoc.perl.org/perlop.html\#Range-Operators).
+
+ my @list = expand_range('[aa-ad]'); # This is identical to ('aa' .. 'ad')
+
+The following formats are recognized and evaluated
+
+ my @list = expand_range('foo[bar,baz]'); # Comma separated list
+ my @list = expand_range('foo[aa-ad,^ab]'); # Negated element
+ my @list = expand_range('foo[aa-ag,^ab-ad]'); # Negated range
+
+
+
+# SEE ALSO
+
+- [SSH::Batch](http://search.cpan.org/perldoc?SSH::Batch)
+
+This is an extremely useful distribution if you are working with hostnames.
+`String::Range::Expand` was inspired by this distribution, and provides only a
+subset of features of `SSH::Batch`
+
+- [String::Glob::Permute](http://search.cpan.org/perldoc?String::Glob::Permute)
+
+Pretty similar, but does not evaluate alphabetical ranges
+
+- [Text::Glob::Expand](http://search.cpan.org/perldoc?Text::Glob::Expand)
+
+Like `String::Glob::Permute`, it does not evaluate alphabetical ranges. But it
+does provide some additional functionality like setting upper limits and
+formatting.
+
+# BUGS AND LIMITATIONS
+
+This module does not attempt to limit the number of permutations for an
+expression.
+
+Please report any bugs or feature requests to
+`bug-string-range-expand@rt.cpan.org`, or through the web interface at
+[http://rt.cpan.org/Public/Dist/Display.html?Name=String-Range-Expand](http://rt.cpan.org/Public/Dist/Display.html?Name=String-Range-Expand)
+
+# AUTHOR
+
+Mithun Ayachit `mithun@cpan.org`
+
+# LICENSE AND COPYRIGHT
+
+Copyright (c) 2012, Mithun Ayachit. All rights reserved.
+
+This module is free software; you can redistribute it and/or modify it under
+the same terms as Perl itself. See [perlartistic](http://search.cpan.org/perldoc?perlartistic).

0 comments on commit 0a54c36

Please sign in to comment.