thunder 0.4.4 → 0.5.0
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/DESIGN.md +0 -0
- data/README.md +0 -0
- data/Rakefile +0 -0
- data/lib/thunder.rb +4 -4
- data/lib/thunder/help/default.rb +0 -0
- data/lib/thunder/options/optparse.rb +0 -0
- data/lib/thunder/options/trollop.rb +0 -0
- data/lib/thunder/version.rb +2 -2
- data/spec/spec_thunder.rb +0 -0
- metadata +4 -5
- data/CHANGELOG +0 -29
data/DESIGN.md
CHANGED
File without changes
|
data/README.md
CHANGED
File without changes
|
data/Rakefile
CHANGED
File without changes
|
data/lib/thunder.rb
CHANGED
@@ -9,7 +9,7 @@ module Thunder
|
|
9
9
|
|
10
10
|
# Start the object as a command line program,
|
11
11
|
# processing the given arguments and using the provided options.
|
12
|
-
#
|
12
|
+
#
|
13
13
|
# @param args [<String>] the command line arguments [ARGV]
|
14
14
|
# @param options [{Symbol => *}] the default options to use [{}]
|
15
15
|
def start(args=ARGV.dup, options={})
|
@@ -144,7 +144,7 @@ module Thunder
|
|
144
144
|
thunder[key] = nil
|
145
145
|
end
|
146
146
|
end
|
147
|
-
|
147
|
+
|
148
148
|
# Set the options processor.
|
149
149
|
#
|
150
150
|
# @param processor [#process_options]
|
@@ -183,7 +183,7 @@ module Thunder
|
|
183
183
|
end
|
184
184
|
|
185
185
|
# Define an option for the next method (or subcommand)
|
186
|
-
#
|
186
|
+
#
|
187
187
|
# @param name [Symbol,String] the long name of this option
|
188
188
|
# @option options :short [String] the short version of the option [the first letter of the option name]
|
189
189
|
# @option options :type [Class] the datatype of this option [Boolean]
|
@@ -216,4 +216,4 @@ module Thunder
|
|
216
216
|
end
|
217
217
|
|
218
218
|
end
|
219
|
-
end
|
219
|
+
end
|
data/lib/thunder/help/default.rb
CHANGED
File without changes
|
File without changes
|
File without changes
|
data/lib/thunder/version.rb
CHANGED
data/spec/spec_thunder.rb
CHANGED
File without changes
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thunder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-12-30 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Thunder does command line interfaces. Nothing more, nothing less.
|
15
15
|
email: steven.karas@gmail.com
|
@@ -18,14 +18,13 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- lib/thunder/help/default.rb
|
21
|
+
- lib/thunder/version.rb
|
21
22
|
- lib/thunder/options/optparse.rb
|
22
23
|
- lib/thunder/options/trollop.rb
|
23
|
-
- lib/thunder/version.rb
|
24
24
|
- lib/thunder.rb
|
25
25
|
- spec/spec_thunder.rb
|
26
|
-
- CHANGELOG
|
27
|
-
- DESIGN.md
|
28
26
|
- Rakefile
|
27
|
+
- DESIGN.md
|
29
28
|
- README.md
|
30
29
|
homepage: http://stevenkaras.github.com/thunder
|
31
30
|
licenses: []
|
data/CHANGELOG
DELETED
@@ -1,29 +0,0 @@
|
|
1
|
-
v0.4.4
|
2
|
-
- fixed minor bug in processing of commands that caused a crash when seeking help
|
3
|
-
|
4
|
-
v0.4.3
|
5
|
-
- fixed handling of parameters and default commands
|
6
|
-
|
7
|
-
v0.4.2
|
8
|
-
- fixed boolean flags in default options processor
|
9
|
-
- default help formatter now strips whitespace properly
|
10
|
-
- all options now have optional arguments
|
11
|
-
+ default values are now set properly
|
12
|
-
+ added trollop adapter for option processing
|
13
|
-
+ improved documentation and help formatting for options
|
14
|
-
- fixed handling of ARGV and subcommands
|
15
|
-
|
16
|
-
v0.4.1
|
17
|
-
- fixed fatal options processing bug
|
18
|
-
|
19
|
-
v0.4.0
|
20
|
-
+ add help formatter
|
21
|
-
|
22
|
-
v0.3.0
|
23
|
-
+ provide facility for defining options
|
24
|
-
|
25
|
-
v0.2.0
|
26
|
-
+ pass leftover arguments to the command
|
27
|
-
|
28
|
-
v0.1.0
|
29
|
-
+ call specified command
|