getopt-declare 1.25 → 1.26

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.
@@ -8,11 +8,11 @@ class TC_Array < Test::Unit::TestCase
8
8
 
9
9
  def setup
10
10
  @file = __FILE__
11
- @args = Getopt::Declare.new( %q{
11
+ @args = Getopt::Declare.new( <<EOF, :build )
12
12
  -v <value:i> [etc] One or more values
13
13
  <infile:if> Input file [required]
14
14
  -o <outfiles:of>... Output files
15
- }, :build )
15
+ EOF
16
16
  end
17
17
 
18
18
  def test_infile
@@ -52,10 +52,8 @@ class TC_Array < Test::Unit::TestCase
52
52
  def test_usage
53
53
  usage = @args.usage
54
54
  # We don't check first lines, as they contain date
55
- usage.sub!(/.*Options:/m, '')
56
- puts usage
55
+ usage.sub!(/.*Options:\n/m, '')
57
56
  assert_equal( <<"EOF", usage )
58
-
59
57
  -v <value> [etc] One or more values
60
58
  <infile> Input file
61
59
  -o <outfiles>... Output files
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.1
3
3
  specification_version: 1
4
4
  name: getopt-declare
5
5
  version: !ruby/object:Gem::Version
6
- version: "1.25"
7
- date: 2007-06-16 00:00:00 -03:00
6
+ version: "1.26"
7
+ date: 2007-06-17 00:00:00 -03:00
8
8
  summary: Getopt-Declare is a command-line argument parser.
9
9
  require_paths:
10
10
  - lib