cmdparse 2.0.2 → 2.0.3

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/README CHANGED
@@ -1,6 +1,6 @@
1
1
  cmdparse - an advanced command line parser using optparse which has support for commands
2
2
 
3
- Copyright (C) 2004 Thomas Leitner
3
+ Copyright (C) 2004-2010 Thomas Leitner
4
4
 
5
5
  = Description
6
6
 
@@ -12,6 +12,9 @@ This library, cmdparse, can be used to create such a command line interface. Int
12
12
  optparse or any other option parser library to parse options and it provides a nice API for
13
13
  specifying commands.
14
14
 
15
+ = License
16
+
17
+ GNU LGPLv3 - see COPYING.LESSER for the LGPL and COPYING for the GPL
15
18
 
16
19
  = Dependencies
17
20
 
data/Rakefile CHANGED
@@ -1,21 +1,23 @@
1
1
  # -*- ruby -*-
2
2
  #
3
- # $Id$
4
- #
3
+ #--
5
4
  # cmdparse: advanced command line parser supporting commands
6
- # Copyright (C) 2004 Thomas Leitner
5
+ # Copyright (C) 2004-2010 Thomas Leitner
6
+ #
7
+ # This file is part of cmdparse.
7
8
  #
8
- # This program is free software; you can redistribute it and/or modify it under the terms of the GNU
9
- # General Public License as published by the Free Software Foundation; either version 2 of the
10
- # License, or (at your option) any later version.
9
+ # cmdparse is free software: you can redistribute it and/or modify it under the terms of the GNU
10
+ # Lesser General Public License as published by the Free Software Foundation, either version 3 of
11
+ # the License, or (at your option) any later version.
11
12
  #
12
- # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
13
- # even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13
+ # cmdparse is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
14
+ # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
14
15
  # General Public License for more details.
15
16
  #
16
- # You should have received a copy of the GNU General Public License along with this program; if not,
17
- # write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17
+ # You should have received a copy of the GNU Lesser General Public License along with cmdparse. If
18
+ # not, see <http://www.gnu.org/licenses/>.
18
19
  #
20
+ #++
19
21
 
20
22
 
21
23
  begin
@@ -94,6 +96,7 @@ PKG_FILES = FileList.new( [
94
96
  'setup.rb',
95
97
  'TODO',
96
98
  'COPYING',
99
+ 'COPYING.LESSER',
97
100
  'README',
98
101
  'Rakefile',
99
102
  'ChangeLog',
@@ -145,7 +148,6 @@ else
145
148
 
146
149
  task :package => [:generateFiles]
147
150
  task :generateFiles do |t|
148
- sh "svn log -r HEAD:1 -v > ChangeLog"
149
151
  File.open('VERSION', 'w+') do |file| file.write( PKG_VERSION + "\n" ) end
150
152
  end
151
153
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.0.2
1
+ 2.0.3
data/lib/cmdparse.rb CHANGED
@@ -1,31 +1,29 @@
1
1
  #
2
2
  #--
3
- #
4
- # $Id: cmdparse.rb 416 2006-06-17 19:32:55Z thomas $
5
- #
6
3
  # cmdparse: advanced command line parser supporting commands
7
- # Copyright (C) 2004 Thomas Leitner
4
+ # Copyright (C) 2004-2010 Thomas Leitner
8
5
  #
9
- # This program is free software; you can redistribute it and/or modify it under the terms of the GNU
10
- # General Public License as published by the Free Software Foundation; either version 2 of the
11
- # License, or (at your option) any later version.
6
+ # This file is part of cmdparse.
12
7
  #
13
- # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
14
- # even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8
+ # cmdparse is free software: you can redistribute it and/or modify it under the terms of the GNU
9
+ # Lesser General Public License as published by the Free Software Foundation, either version 3 of
10
+ # the License, or (at your option) any later version.
11
+ #
12
+ # cmdparse is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
13
+ # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15
14
  # General Public License for more details.
16
15
  #
17
- # You should have received a copy of the GNU General Public License along with this program; if not,
18
- # write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # You should have received a copy of the GNU Lesser General Public License along with cmdparse. If
17
+ # not, see <http://www.gnu.org/licenses/>.
19
18
  #
20
19
  #++
21
20
  #
22
21
 
23
-
24
22
  # Namespace module for cmdparse.
25
23
  module CmdParse
26
24
 
27
25
  # The version of this cmdparse implemention
28
- VERSION = [2, 0, 2]
26
+ VERSION = [2, 0, 3]
29
27
 
30
28
 
31
29
  # Base class for all cmdparse errors.
@@ -1,25 +1,23 @@
1
1
  #
2
2
  #--
3
- #
4
- # $Id: optparse.rb 329 2005-08-14 15:39:05Z thomas $
5
- #
6
3
  # cmdparse: advanced command line parser supporting commands
7
- # Copyright (C) 2004 Thomas Leitner
4
+ # Copyright (C) 2004-2010 Thomas Leitner
8
5
  #
9
- # This program is free software; you can redistribute it and/or modify it under the terms of the GNU
10
- # General Public License as published by the Free Software Foundation; either version 2 of the
11
- # License, or (at your option) any later version.
6
+ # This file is part of cmdparse.
12
7
  #
13
- # This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without
14
- # even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
8
+ # cmdparse is free software: you can redistribute it and/or modify it under the terms of the GNU
9
+ # Lesser General Public License as published by the Free Software Foundation, either version 3 of
10
+ # the License, or (at your option) any later version.
11
+ #
12
+ # cmdparse is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
13
+ # the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser
15
14
  # General Public License for more details.
16
15
  #
17
- # You should have received a copy of the GNU General Public License along with this program; if not,
18
- # write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16
+ # You should have received a copy of the GNU Lesser General Public License along with cmdparse. If
17
+ # not, see <http://www.gnu.org/licenses/>.
19
18
  #
20
19
  #++
21
20
  #
22
- #
23
21
 
24
22
  require 'optparse'
25
23
 
metadata CHANGED
@@ -1,69 +1,87 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
3
- specification_version: 1
4
2
  name: cmdparse
5
3
  version: !ruby/object:Gem::Version
6
- version: 2.0.2
7
- date: 2006-06-17 00:00:00 +02:00
8
- summary: Advanced command line parser supporting commands
9
- require_paths:
10
- - lib
11
- email: t_leitner@gmx.at
12
- homepage: http://cmdparse.rubyforge.org
13
- rubyforge_project: cmdparse
14
- description: cmdparse provides classes for parsing commands on the command line; command line options are parsed using optparse or any other option parser implementation. Programs that use such command line interfaces are, for example, subversion's 'svn' or Rubygem's 'gem' program.
15
- autorequire: cmdparse
16
- default_executable:
17
- bindir: bin
18
- has_rdoc: true
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- - - ">"
22
- - !ruby/object:Gem::Version
23
- version: 0.0.0
24
- version:
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 0
8
+ - 3
9
+ version: 2.0.3
25
10
  platform: ruby
26
- signing_key:
27
- cert_chain:
28
11
  authors:
29
12
  - Thomas Leitner
13
+ autorequire: cmdparse
14
+ bindir: bin
15
+ cert_chain: []
16
+
17
+ date: 2011-01-05 00:00:00 +01:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description: " cmdparse provides classes for parsing commands on the command line; command line options\n are parsed using optparse or any other option parser implementation. Programs that use\n such command line interfaces are, for example, subversion's 'svn' or Rubygem's 'gem' program.\n"
22
+ email: t_leitner@gmx.at
23
+ executables: []
24
+
25
+ extensions: []
26
+
27
+ extra_rdoc_files: []
28
+
30
29
  files:
31
30
  - setup.rb
32
31
  - TODO
33
32
  - COPYING
33
+ - COPYING.LESSER
34
34
  - README
35
35
  - Rakefile
36
36
  - ChangeLog
37
37
  - net.rb
38
38
  - VERSION
39
- - lib/cmdparse.rb
40
39
  - lib/cmdparse/wrappers/optparse.rb
41
- - doc/src
40
+ - lib/cmdparse.rb
41
+ - doc/plugin/extract.rb
42
42
  - doc/config.yaml
43
- - doc/plugin
44
- - doc/src/default.css
45
43
  - doc/src/features.page
44
+ - doc/src/logo.png
45
+ - doc/src/tutorial.page
46
+ - doc/src/default.css
46
47
  - doc/src/index.page
47
- - doc/src/about.page
48
+ - doc/src/meta.info
48
49
  - doc/src/download.page
49
50
  - doc/src/default.template
50
- - doc/src/tutorial.page
51
- - doc/src/meta.info
52
- - doc/src/logo.png
53
- - doc/plugin/extract.rb
54
- test_files: []
51
+ - doc/src/about.page
52
+ has_rdoc: true
53
+ homepage: http://cmdparse.rubyforge.org
54
+ licenses: []
55
55
 
56
+ post_install_message:
56
57
  rdoc_options:
57
58
  - --line-numbers
58
59
  - -m
59
60
  - CmdParse::CommandParser
60
- extra_rdoc_files: []
61
-
62
- executables: []
63
-
64
- extensions: []
65
-
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ segments:
69
+ - 0
70
+ version: "0"
71
+ required_rubygems_version: !ruby/object:Gem::Requirement
72
+ none: false
73
+ requirements:
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ segments:
77
+ - 0
78
+ version: "0"
66
79
  requirements: []
67
80
 
68
- dependencies: []
81
+ rubyforge_project: cmdparse
82
+ rubygems_version: 1.3.7
83
+ signing_key:
84
+ specification_version: 3
85
+ summary: Advanced command line parser supporting commands
86
+ test_files: []
69
87