executable 1.2.1 → 1.3.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.
- checksums.yaml +7 -0
- data/HISTORY.md +15 -0
- data/README.md +37 -17
- data/lib/executable/completion.rb +82 -0
- data/lib/executable/core_ext/unbound_method.rb +102 -0
- data/lib/executable/core_ext.rb +1 -102
- data/lib/executable/domain.rb +14 -7
- data/lib/executable/help.rb +18 -12
- data/lib/executable/parser.rb +7 -3
- data/lib/executable/version.rb +2 -19
- data/lib/executable.rb +2 -1
- metadata +30 -88
- data/.index +0 -71
- data/.ruby +0 -1
- data/.yardopts +0 -7
- data/Config.rb +0 -16
- data/DEMO.md +0 -568
- data/lib/executable.yml +0 -71
- data/test/test_executable.rb +0 -59
metadata
CHANGED
|
@@ -1,102 +1,54 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: executable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 1.3.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
|
-
-
|
|
9
|
-
autorequire:
|
|
7
|
+
- Trans
|
|
10
8
|
bindir: bin
|
|
11
9
|
cert_chain: []
|
|
12
|
-
date:
|
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
|
13
11
|
dependencies:
|
|
14
12
|
- !ruby/object:Gem::Dependency
|
|
15
|
-
name:
|
|
13
|
+
name: rake
|
|
16
14
|
requirement: !ruby/object:Gem::Requirement
|
|
17
|
-
none: false
|
|
18
15
|
requirements:
|
|
19
|
-
- -
|
|
16
|
+
- - ">="
|
|
20
17
|
- !ruby/object:Gem::Version
|
|
21
|
-
version: '
|
|
18
|
+
version: '13'
|
|
22
19
|
type: :development
|
|
23
20
|
prerelease: false
|
|
24
21
|
version_requirements: !ruby/object:Gem::Requirement
|
|
25
|
-
none: false
|
|
26
22
|
requirements:
|
|
27
|
-
- -
|
|
23
|
+
- - ">="
|
|
28
24
|
- !ruby/object:Gem::Version
|
|
29
|
-
version: '
|
|
25
|
+
version: '13'
|
|
30
26
|
- !ruby/object:Gem::Dependency
|
|
31
|
-
name:
|
|
27
|
+
name: minitest
|
|
32
28
|
requirement: !ruby/object:Gem::Requirement
|
|
33
|
-
none: false
|
|
34
29
|
requirements:
|
|
35
|
-
- -
|
|
30
|
+
- - ">="
|
|
36
31
|
- !ruby/object:Gem::Version
|
|
37
|
-
version: '
|
|
32
|
+
version: '5'
|
|
38
33
|
type: :development
|
|
39
34
|
prerelease: false
|
|
40
35
|
version_requirements: !ruby/object:Gem::Requirement
|
|
41
|
-
none: false
|
|
42
36
|
requirements:
|
|
43
|
-
- -
|
|
37
|
+
- - ">="
|
|
44
38
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: '
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
none: false
|
|
50
|
-
requirements:
|
|
51
|
-
- - ! '>='
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '0'
|
|
54
|
-
type: :development
|
|
55
|
-
prerelease: false
|
|
56
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
57
|
-
none: false
|
|
58
|
-
requirements:
|
|
59
|
-
- - ! '>='
|
|
60
|
-
- !ruby/object:Gem::Version
|
|
61
|
-
version: '0'
|
|
62
|
-
- !ruby/object:Gem::Dependency
|
|
63
|
-
name: simplecov
|
|
64
|
-
requirement: !ruby/object:Gem::Requirement
|
|
65
|
-
none: false
|
|
66
|
-
requirements:
|
|
67
|
-
- - ! '>='
|
|
68
|
-
- !ruby/object:Gem::Version
|
|
69
|
-
version: '0'
|
|
70
|
-
type: :development
|
|
71
|
-
prerelease: false
|
|
72
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
73
|
-
none: false
|
|
74
|
-
requirements:
|
|
75
|
-
- - ! '>='
|
|
76
|
-
- !ruby/object:Gem::Version
|
|
77
|
-
version: '0'
|
|
78
|
-
description: ! 'Think of Executable as a *COM*, a Commandline Object Mapper,
|
|
79
|
-
|
|
80
|
-
in much the same way that ActiveRecord is an ORM,
|
|
81
|
-
|
|
82
|
-
an Object Relational Mapper. A class utilizing Executable
|
|
83
|
-
|
|
84
|
-
can define a complete command line tool using nothing more
|
|
85
|
-
|
|
86
|
-
than Ruby''s own method definitions.'
|
|
39
|
+
version: '5'
|
|
40
|
+
description: Think of Executable as a COM, a Commandline Object Mapper, in much the
|
|
41
|
+
same way that ActiveRecord is an ORM. A class utilizing Executable can define a
|
|
42
|
+
complete command line tool using nothing more than Ruby's own method definitions.
|
|
87
43
|
email:
|
|
88
44
|
- transfire@gmail.com
|
|
89
45
|
executables: []
|
|
90
46
|
extensions: []
|
|
91
|
-
extra_rdoc_files:
|
|
92
|
-
|
|
47
|
+
extra_rdoc_files: []
|
|
48
|
+
files:
|
|
93
49
|
- HISTORY.md
|
|
50
|
+
- LICENSE.txt
|
|
94
51
|
- README.md
|
|
95
|
-
- DEMO.md
|
|
96
|
-
files:
|
|
97
|
-
- .index
|
|
98
|
-
- .ruby
|
|
99
|
-
- .yardopts
|
|
100
52
|
- demo/00_introduction.md
|
|
101
53
|
- demo/01_single_command.md
|
|
102
54
|
- demo/02_multiple_commands.md
|
|
@@ -113,7 +65,10 @@ files:
|
|
|
113
65
|
- demo/samples/man/hello.1
|
|
114
66
|
- demo/samples/man/hello.1.html
|
|
115
67
|
- demo/samples/man/hello.1.ronn
|
|
68
|
+
- lib/executable.rb
|
|
69
|
+
- lib/executable/completion.rb
|
|
116
70
|
- lib/executable/core_ext.rb
|
|
71
|
+
- lib/executable/core_ext/unbound_method.rb
|
|
117
72
|
- lib/executable/dispatch.rb
|
|
118
73
|
- lib/executable/domain.rb
|
|
119
74
|
- lib/executable/errors.rb
|
|
@@ -121,38 +76,25 @@ files:
|
|
|
121
76
|
- lib/executable/parser.rb
|
|
122
77
|
- lib/executable/utils.rb
|
|
123
78
|
- lib/executable/version.rb
|
|
124
|
-
|
|
125
|
-
- lib/executable.yml
|
|
126
|
-
- test/test_executable.rb
|
|
127
|
-
- LICENSE.txt
|
|
128
|
-
- HISTORY.md
|
|
129
|
-
- README.md
|
|
130
|
-
- DEMO.md
|
|
131
|
-
- Config.rb
|
|
132
|
-
homepage: http://rubyworks.github.com/executable
|
|
79
|
+
homepage: https://github.com/rubyworks/executable
|
|
133
80
|
licenses:
|
|
134
81
|
- BSD-2-Clause
|
|
135
|
-
|
|
82
|
+
metadata: {}
|
|
136
83
|
rdoc_options: []
|
|
137
84
|
require_paths:
|
|
138
85
|
- lib
|
|
139
86
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
140
|
-
none: false
|
|
141
87
|
requirements:
|
|
142
|
-
- -
|
|
88
|
+
- - ">="
|
|
143
89
|
- !ruby/object:Gem::Version
|
|
144
|
-
version: '
|
|
90
|
+
version: '3.1'
|
|
145
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
146
|
-
none: false
|
|
147
92
|
requirements:
|
|
148
|
-
- -
|
|
93
|
+
- - ">="
|
|
149
94
|
- !ruby/object:Gem::Version
|
|
150
95
|
version: '0'
|
|
151
96
|
requirements: []
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
signing_key:
|
|
155
|
-
specification_version: 3
|
|
97
|
+
rubygems_version: 3.6.9
|
|
98
|
+
specification_version: 4
|
|
156
99
|
summary: Commandline Object Mapper
|
|
157
|
-
test_files:
|
|
158
|
-
- test/test_executable.rb
|
|
100
|
+
test_files: []
|
data/.index
DELETED
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
type: ruby
|
|
3
|
-
revision: 2013
|
|
4
|
-
sources:
|
|
5
|
-
- var
|
|
6
|
-
authors:
|
|
7
|
-
- name: 7rans
|
|
8
|
-
email: transfire@gmail.com
|
|
9
|
-
organizations: []
|
|
10
|
-
requirements:
|
|
11
|
-
- groups:
|
|
12
|
-
- test
|
|
13
|
-
development: true
|
|
14
|
-
name: qed
|
|
15
|
-
- groups:
|
|
16
|
-
- test
|
|
17
|
-
development: true
|
|
18
|
-
name: ae
|
|
19
|
-
- groups:
|
|
20
|
-
- build
|
|
21
|
-
development: true
|
|
22
|
-
name: detroit
|
|
23
|
-
- groups:
|
|
24
|
-
- build
|
|
25
|
-
development: true
|
|
26
|
-
name: simplecov
|
|
27
|
-
conflicts: []
|
|
28
|
-
alternatives: []
|
|
29
|
-
resources:
|
|
30
|
-
- type: home
|
|
31
|
-
uri: http://rubyworks.github.com/executable
|
|
32
|
-
label: Homepage
|
|
33
|
-
- type: code
|
|
34
|
-
uri: http://github.com/rubyworks/executable
|
|
35
|
-
label: Source Code
|
|
36
|
-
- type: bugs
|
|
37
|
-
uri: http://github.com/rubyworks/executable/issues
|
|
38
|
-
label: Issue Tracker
|
|
39
|
-
- type: mail
|
|
40
|
-
uri: http://groups.google.com/rubyworks-mailinglist
|
|
41
|
-
label: Mailing List
|
|
42
|
-
- type: chat
|
|
43
|
-
uri: irc://chat.us.freenode.net#rubyworks
|
|
44
|
-
label: IRC Channel
|
|
45
|
-
repositories:
|
|
46
|
-
- name: upstream
|
|
47
|
-
scm: git
|
|
48
|
-
uri: git://github.com/rubyworks/executable.git
|
|
49
|
-
categories: []
|
|
50
|
-
paths:
|
|
51
|
-
load:
|
|
52
|
-
- lib
|
|
53
|
-
copyrights:
|
|
54
|
-
- holder: Rubyworks
|
|
55
|
-
year: '2008'
|
|
56
|
-
license: BSD-2-Clause
|
|
57
|
-
created: '2008-08-08'
|
|
58
|
-
summary: Commandline Object Mapper
|
|
59
|
-
version: 1.2.1
|
|
60
|
-
name: executable
|
|
61
|
-
title: Executable
|
|
62
|
-
description: ! 'Think of Executable as a *COM*, a Commandline Object Mapper,
|
|
63
|
-
|
|
64
|
-
in much the same way that ActiveRecord is an ORM,
|
|
65
|
-
|
|
66
|
-
an Object Relational Mapper. A class utilizing Executable
|
|
67
|
-
|
|
68
|
-
can define a complete command line tool using nothing more
|
|
69
|
-
|
|
70
|
-
than Ruby''s own method definitions.'
|
|
71
|
-
date: '2012-12-18'
|
data/.ruby
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
|
data/.yardopts
DELETED
data/Config.rb
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env ruby
|
|
2
|
-
|
|
3
|
-
# Code coverage.
|
|
4
|
-
profile :cov do
|
|
5
|
-
|
|
6
|
-
# Setup QED.
|
|
7
|
-
config :qed do
|
|
8
|
-
require 'simplecov'
|
|
9
|
-
SimpleCov.start do
|
|
10
|
-
coverage_dir 'log/coverage'
|
|
11
|
-
add_filter "/demo/"
|
|
12
|
-
#add_group "RSpec", "lib/assay/rspec.rb"
|
|
13
|
-
end
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
end
|