trollop 1.1 → 1.2
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 +4 -0
- data/Rakefile +4 -0
- data/lib/trollop.rb +3 -3
- metadata +4 -12
data/History.txt
CHANGED
data/Rakefile
CHANGED
@@ -4,6 +4,10 @@ require 'rubygems'
|
|
4
4
|
require 'hoe'
|
5
5
|
require 'trollop'
|
6
6
|
|
7
|
+
class Hoe
|
8
|
+
def extra_deps; @extra_deps.reject { |x| Array(x).first == "hoe" } end
|
9
|
+
end # thanks to "Mike H"
|
10
|
+
|
7
11
|
Hoe.new('trollop', Trollop::VERSION) do |p|
|
8
12
|
p.rubyforge_name = 'trollop'
|
9
13
|
p.author = "William Morgan"
|
data/lib/trollop.rb
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
module Trollop
|
7
7
|
|
8
|
-
VERSION = "1.
|
8
|
+
VERSION = "1.2"
|
9
9
|
|
10
10
|
## Thrown by Parser in the event of a commandline error. Not needed if
|
11
11
|
## you're using the Trollop::options entry.
|
@@ -371,8 +371,8 @@ end
|
|
371
371
|
## option values.
|
372
372
|
##
|
373
373
|
## The block passed in should contain one or more calls to #opt
|
374
|
-
## (Parser#opt),
|
375
|
-
##
|
374
|
+
## (Parser#opt), one or more calls to text (Parser#text), and
|
375
|
+
## probably a call to version (Parser#version).
|
376
376
|
##
|
377
377
|
## See the synopsis in README.txt for examples.
|
378
378
|
def options *a, &b
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
|
|
3
3
|
specification_version: 1
|
4
4
|
name: trollop
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: "1.
|
7
|
-
date: 2007-01-
|
6
|
+
version: "1.2"
|
7
|
+
date: 2007-01-31 00:00:00 -08:00
|
8
8
|
summary: Trollop is YAFCLAP --- yet another fine commandline argument processing library for Ruby. Trollop is designed to provide the maximal amount of GNU-style argument processing in the minimum number of lines of code (for you, the programmer).
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -47,13 +47,5 @@ extensions: []
|
|
47
47
|
|
48
48
|
requirements: []
|
49
49
|
|
50
|
-
dependencies:
|
51
|
-
|
52
|
-
name: hoe
|
53
|
-
version_requirement:
|
54
|
-
version_requirements: !ruby/object:Gem::Version::Requirement
|
55
|
-
requirements:
|
56
|
-
- - ">="
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: 1.1.7
|
59
|
-
version:
|
50
|
+
dependencies: []
|
51
|
+
|