main 4.7.0 → 4.7.1
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/a.rb +10 -0
- data/lib/main.rb +1 -1
- data/lib/main/program/instance_methods.rb +1 -1
- data/lib/main/util.rb +4 -0
- data/main.gemspec +66 -0
- metadata +18 -3
data/a.rb
ADDED
data/lib/main.rb
CHANGED
@@ -229,7 +229,7 @@ module Main
|
|
229
229
|
end
|
230
230
|
|
231
231
|
exit_status(( exit_failure )) if exit_status == exit_success
|
232
|
-
exit_status((
|
232
|
+
exit_status(( Util.integer(exit_status) rescue(exit_status ? 0 : 1) ))
|
233
233
|
end
|
234
234
|
|
235
235
|
def handle_exit(status)
|
data/lib/main/util.rb
CHANGED
data/main.gemspec
ADDED
@@ -0,0 +1,66 @@
|
|
1
|
+
## main.gemspec
|
2
|
+
#
|
3
|
+
|
4
|
+
Gem::Specification::new do |spec|
|
5
|
+
spec.name = "main"
|
6
|
+
spec.version = "4.7.1"
|
7
|
+
spec.platform = Gem::Platform::RUBY
|
8
|
+
spec.summary = "main"
|
9
|
+
spec.description = "description: main kicks the ass"
|
10
|
+
|
11
|
+
spec.files =
|
12
|
+
["LICENSE",
|
13
|
+
"README",
|
14
|
+
"README.erb",
|
15
|
+
"Rakefile",
|
16
|
+
"TODO",
|
17
|
+
"a.rb",
|
18
|
+
"lib",
|
19
|
+
"lib/main",
|
20
|
+
"lib/main.rb",
|
21
|
+
"lib/main/cast.rb",
|
22
|
+
"lib/main/dsl.rb",
|
23
|
+
"lib/main/factories.rb",
|
24
|
+
"lib/main/getoptlong.rb",
|
25
|
+
"lib/main/logger.rb",
|
26
|
+
"lib/main/mode.rb",
|
27
|
+
"lib/main/parameter.rb",
|
28
|
+
"lib/main/program",
|
29
|
+
"lib/main/program.rb",
|
30
|
+
"lib/main/program/class_methods.rb",
|
31
|
+
"lib/main/program/instance_methods.rb",
|
32
|
+
"lib/main/softspoken.rb",
|
33
|
+
"lib/main/stdext.rb",
|
34
|
+
"lib/main/test.rb",
|
35
|
+
"lib/main/usage.rb",
|
36
|
+
"lib/main/util.rb",
|
37
|
+
"main.gemspec",
|
38
|
+
"samples",
|
39
|
+
"samples/a.rb",
|
40
|
+
"samples/b.rb",
|
41
|
+
"samples/c.rb",
|
42
|
+
"samples/d.rb",
|
43
|
+
"samples/e.rb",
|
44
|
+
"samples/f.rb",
|
45
|
+
"samples/g.rb",
|
46
|
+
"samples/h.rb",
|
47
|
+
"samples/j.rb",
|
48
|
+
"test",
|
49
|
+
"test/main_test.rb"]
|
50
|
+
|
51
|
+
spec.executables = []
|
52
|
+
|
53
|
+
spec.require_path = "lib"
|
54
|
+
|
55
|
+
spec.test_files = nil
|
56
|
+
|
57
|
+
### spec.add_dependency 'lib', '>= version'
|
58
|
+
#### spec.add_dependency 'map'
|
59
|
+
|
60
|
+
spec.extensions.push(*[])
|
61
|
+
|
62
|
+
spec.rubyforge_project = "codeforpeople"
|
63
|
+
spec.author = "Ara T. Howard"
|
64
|
+
spec.email = "ara.t.howard@gmail.com"
|
65
|
+
spec.homepage = "https://github.com/ahoward/main"
|
66
|
+
end
|
metadata
CHANGED
@@ -1,8 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: main
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
+
hash: 33
|
4
5
|
prerelease:
|
5
|
-
|
6
|
+
segments:
|
7
|
+
- 4
|
8
|
+
- 7
|
9
|
+
- 1
|
10
|
+
version: 4.7.1
|
6
11
|
platform: ruby
|
7
12
|
authors:
|
8
13
|
- Ara T. Howard
|
@@ -10,7 +15,8 @@ autorequire:
|
|
10
15
|
bindir: bin
|
11
16
|
cert_chain: []
|
12
17
|
|
13
|
-
date: 2011-08-16 00:00:00
|
18
|
+
date: 2011-08-16 00:00:00 -06:00
|
19
|
+
default_executable:
|
14
20
|
dependencies: []
|
15
21
|
|
16
22
|
description: "description: main kicks the ass"
|
@@ -27,6 +33,7 @@ files:
|
|
27
33
|
- README.erb
|
28
34
|
- Rakefile
|
29
35
|
- TODO
|
36
|
+
- a.rb
|
30
37
|
- lib/main.rb
|
31
38
|
- lib/main/cast.rb
|
32
39
|
- lib/main/dsl.rb
|
@@ -43,6 +50,7 @@ files:
|
|
43
50
|
- lib/main/test.rb
|
44
51
|
- lib/main/usage.rb
|
45
52
|
- lib/main/util.rb
|
53
|
+
- main.gemspec
|
46
54
|
- samples/a.rb
|
47
55
|
- samples/b.rb
|
48
56
|
- samples/c.rb
|
@@ -53,6 +61,7 @@ files:
|
|
53
61
|
- samples/h.rb
|
54
62
|
- samples/j.rb
|
55
63
|
- test/main_test.rb
|
64
|
+
has_rdoc: true
|
56
65
|
homepage: https://github.com/ahoward/main
|
57
66
|
licenses: []
|
58
67
|
|
@@ -66,17 +75,23 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
75
|
requirements:
|
67
76
|
- - ">="
|
68
77
|
- !ruby/object:Gem::Version
|
78
|
+
hash: 3
|
79
|
+
segments:
|
80
|
+
- 0
|
69
81
|
version: "0"
|
70
82
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
83
|
none: false
|
72
84
|
requirements:
|
73
85
|
- - ">="
|
74
86
|
- !ruby/object:Gem::Version
|
87
|
+
hash: 3
|
88
|
+
segments:
|
89
|
+
- 0
|
75
90
|
version: "0"
|
76
91
|
requirements: []
|
77
92
|
|
78
93
|
rubyforge_project: codeforpeople
|
79
|
-
rubygems_version: 1.
|
94
|
+
rubygems_version: 1.4.2
|
80
95
|
signing_key:
|
81
96
|
specification_version: 3
|
82
97
|
summary: main
|