getopt-declare 1.28 → 1.29

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/HISTORY.txt DELETED
@@ -1,95 +0,0 @@
1
- == 1.28
2
- * Fixed a minor issue where help lines were not being compacted
3
- properly.
4
- * Fixed a minor inconsistency in pvtype regex in usage description.
5
- * Fixed GNU style parameter matching to not get confused with
6
- multiple spaces before parameters.
7
- * Sped up matching of default rules a tad due to use of symbols
8
- instead of strings.
9
- * Fixed required matches not working for some cases due to change
10
- in 1.27.
11
-
12
- == 1.27
13
- * Fixed a bug with the sorting of arguments, which could sometimes
14
- lead to strange parsing.
15
- * Made required argument parsing more strict.
16
-
17
- == 1.26
18
- * Stripping of usage was making help lines that were not
19
- parameters look bad. Fixed.
20
- * [ requires: param && flag ] was being expanded incorrectly,
21
- leading to an obtuse error. Fixed.
22
- like what user expects.
23
- * Removed _enbool() routine as it is no longer needed.
24
- * Documented [debug] directive.
25
- * Updated usage() tests.
26
-
27
- == 1.25
28
- * Really just v1.24, but there were problems with hoe releasing.
29
- * Made -version not fail when doing rake tests and file is not
30
- located.
31
- * Upgraded Rakefile to using Hoe (much simpler).
32
- Sadly, this makes getopt-declare be getoptdeclare.
33
- * Fixed a bug regarding required parameters not being found in
34
- the released version of 1.23 (my custom version was okay).
35
-
36
- == 1.24
37
- * Made -version not fail when doing rake tests and file is not
38
- located.
39
- * Upgraded Rakefile to using Hoe (much simpler).
40
- * Fixed a bug regarding required parameters not being found in
41
- the released version of 1.23 (my custom version was okay).
42
-
43
- == 1.23
44
- * Added all samples as Ruby tests, which lead to the discovery
45
- of several bugs.
46
- * Fixed silly bug with foundid that would make some parsing not
47
- work (required parameters).
48
- * Fixed a silly bug when parsing from a string file, which would
49
- modify the string in place
50
- * Fixed a bug in that would make it not parse Rh+ and Rh- in
51
- cmdline_pvttype demo and other potential regexes.
52
- * Removed 3 warnings from parsing multiple times.
53
- * Fixed a bug with cluster: singles not working.
54
- * Fixed a stack trace bug with optional single text arguments.
55
- * Improved handling of optional integer/float arguments, leaving
56
- them as nil instead of 0 as before.
57
- * Added 'used' function to allow returning the flags that are used.
58
- * Made CSV demo work again, albeit I am not too happy with the regex.
59
- * Made Getopt::Declare part of firebrigade.
60
- http://firebrigade.seattlerb.org/
61
-
62
- 1.22 - * Fixed some nasty bugs introduced in 1.21, which would cause stack
63
- traces.
64
- * Fixed the use of /bin/env in some demos instead of /usr/bin/env.
65
-
66
- 1.21 - Incorporated Perl fixes done by Damian in v1.10 and v1.11 of the
67
- corresponding Getopt-Declare into Ruby.
68
-
69
- * If -p[rompt] and -p[rompt]2 are specified, they are now distinguished
70
- as separate flags.
71
- * Documented built-in :id and :qs parameter variable types
72
- * Added \G to -v flag checker to solve nasty problem with embedded
73
- args containing -v
74
-
75
- 1.20 - Added support for using 3 spaces in addition to tabs for
76
- parameter descriptions.
77
- Added support for GNU -p, --param descriptions, for easier
78
- GNU parameter support.
79
- Fixed help description bug with [ditto] of single parameter flags.
80
-
81
- 1.13 - Fixed bug that would always match parameters in a case insensitive
82
- way, as if [nocase] had been used. This should speed the parser a
83
- tiny bit.
84
-
85
- [cluster: ...] was incorrectly being printed in help usage.
86
-
87
- 1.12 - Fixed bug with :+i, :+n, :0+i options not being cast appropiately
88
- when used in pvttypes.
89
- Added [debug] option to argument description to turn on debugging.
90
-
91
- NOTE: there is a known bug when using [] within pvttype regex
92
- definitions. Problem seems to be related to DelimScanner/strscan.
93
-
94
- 1.11 - Fixed a pretty bug that was parsing -flags inappropiately and leading
95
- to slower parsing.
data/Rakefile DELETED
@@ -1,34 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
-
4
- require 'rubygems'
5
- require 'hoe'
6
- require './lib/Getopt/Declare'
7
-
8
- rdoc_files = ["Declare.rdoc", 'HISTORY.txt'] + Dir.glob('lib/*/*.rb')
9
-
10
-
11
- #
12
- # Make sure that ~/.rubyforge/auto-config.yml contains getopt-declare
13
- # as project (not getoptdeclare).
14
- #
15
- Hoe.new('getopt-declare', Getopt::Declare::VERSION) do |p|
16
- p.rubyforge_name = name = 'getoptdeclare'
17
- p.author = "Gonzalo Garramuno"
18
- p.email = 'ggarra@advancedsl.com.ar, GGarramuno@aol.com'
19
- p.summary = "Getopt-Declare is a command-line argument parser."
20
- p.description = <<-"EOF"
21
- Comprehensive and easy to use command-line parser library using
22
- regular expressions. Port of Damian Conway\'s Perl Getopt-Declare.
23
- EOF
24
- # p.url = p.paragraphs_of('README.txt', 0).first.split(/\n/)[1..-1]
25
- p.url = "#{name}.rubyforge.org"
26
- p.changes = p.paragraphs_of('HISTORY.txt', 0).join("\n\n")
27
- p.need_zip = p.need_tar = true
28
- end
29
-
30
-
31
- task :default => ['test', 'redocs', 'publish_docs',
32
- 'package', 'release', 'announce', 'email', 'post_news']
33
-
34
-