main 2.9.0 → 2.9.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.erb +3 -0
- data/lib/main.rb +1 -1
- data/lib/main/base.rb +5 -3
- data/main.gemspec +1 -1
- metadata +6 -8
data/README.erb
CHANGED
data/lib/main.rb
CHANGED
data/lib/main/base.rb
CHANGED
@@ -70,10 +70,10 @@ module Main
|
|
70
70
|
|
71
71
|
# fattrs
|
72
72
|
fattr( 'name' ){ File.basename $0 }
|
73
|
-
fattr( 'synopsis' ){ Usage.default_synopsis(self) }
|
73
|
+
fattr( 'synopsis' ){ Main::Usage.default_synopsis(self) }
|
74
74
|
fattr( 'description' )
|
75
|
-
fattr( 'usage' ){ Usage.default_usage self }
|
76
|
-
fattr( 'modes' ){ Mode.list }
|
75
|
+
fattr( 'usage' ){ Main::Usage.default_usage self }
|
76
|
+
fattr( 'modes' ){ Main::Mode.list }
|
77
77
|
fattr( 'mode_definitions' ){ Array.new }
|
78
78
|
fattr( 'mode_name' ){ 'main' }
|
79
79
|
fattr( 'parent' ){ nil }
|
@@ -401,11 +401,13 @@ module Main
|
|
401
401
|
def before_parse_parameters() :hook end
|
402
402
|
def parse_parameters
|
403
403
|
pre_parse_parameters
|
404
|
+
before_parse_parameters
|
404
405
|
|
405
406
|
self.class.parameters.parse self
|
406
407
|
@params = Parameter::Table.new
|
407
408
|
self.class.parameters.each{|p| @params[p.name.to_s] = p}
|
408
409
|
|
410
|
+
after_parse_parameters
|
409
411
|
post_parse_parameters
|
410
412
|
end
|
411
413
|
def after_parse_parameters() :hook end
|
data/main.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: main
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.9.
|
4
|
+
version: 2.9.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ara T. Howard
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-09-
|
12
|
+
date: 2009-09-30 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -22,8 +22,6 @@ extensions: []
|
|
22
22
|
extra_rdoc_files: []
|
23
23
|
|
24
24
|
files:
|
25
|
-
- lib
|
26
|
-
- lib/main
|
27
25
|
- lib/main/base.rb
|
28
26
|
- lib/main/cast.rb
|
29
27
|
- lib/main/factories.rb
|
@@ -40,7 +38,6 @@ files:
|
|
40
38
|
- Rakefile
|
41
39
|
- README
|
42
40
|
- README.erb
|
43
|
-
- samples
|
44
41
|
- samples/a.rb
|
45
42
|
- samples/b.rb
|
46
43
|
- samples/c.rb
|
@@ -49,11 +46,12 @@ files:
|
|
49
46
|
- samples/f.rb
|
50
47
|
- samples/g.rb
|
51
48
|
- samples/h.rb
|
52
|
-
- test
|
53
49
|
- test/main.rb
|
54
50
|
- TODO
|
55
51
|
has_rdoc: true
|
56
52
|
homepage: http://github.com/ahoward/main/tree/master
|
53
|
+
licenses: []
|
54
|
+
|
57
55
|
post_install_message:
|
58
56
|
rdoc_options: []
|
59
57
|
|
@@ -74,9 +72,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
74
72
|
requirements: []
|
75
73
|
|
76
74
|
rubyforge_project: codeforpeople
|
77
|
-
rubygems_version: 1.3.
|
75
|
+
rubygems_version: 1.3.5
|
78
76
|
signing_key:
|
79
|
-
specification_version:
|
77
|
+
specification_version: 3
|
80
78
|
summary: main
|
81
79
|
test_files:
|
82
80
|
- test/main.rb
|