inochi 4.0.1 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CREDITS +5 -12
- data/bin/inochi +2 -10
- data/lib/inochi/engine.rb +75 -1
- data/lib/inochi/inochi.rb +7 -8
- data/lib/inochi/tasks/2-api.rake +1 -4
- data/lib/inochi/tasks/3-man.rake +55 -54
- data/lib/inochi/tasks/3-man.rake.css +49 -0
- data/lib/inochi/tasks/4-ann.rake +33 -41
- data/lib/inochi/tasks/5-gem.rake +3 -5
- data/lib/inochi/tasks/6-pub.rake +3 -10
- data/lib/inochi/templates/BEYOND.rbs +14 -13
- data/lib/inochi/templates/CREDITS.rbs +7 -14
- data/lib/inochi/templates/HACKING.rbs +48 -50
- data/lib/inochi/templates/HISTORY.rbs +24 -31
- data/lib/inochi/templates/INSTALL.rbs +27 -0
- data/lib/inochi/templates/MANUAL.rbs +8 -34
- data/lib/inochi/templates/README.rbs +14 -40
- data/lib/inochi/templates/SYNOPSIS.rbs +21 -0
- data/lib/inochi/templates/USAGE.rbs +8 -20
- data/lib/inochi/templates/command.rbs +2 -10
- data/lib/inochi/templates/{inochi.opts.rbs → inochi.conf.rbs} +8 -0
- data/lib/inochi/templates/inochi.rb.rbs +11 -11
- data/man/man1/inochi.1 +2807 -0
- metadata +14 -36
- data/lib/inochi/tasks/0-project.rake +0 -25
- data/lib/inochi/tasks/1-init.rake +0 -38
- data/lib/inochi/templates/EXAMPLES.rbs +0 -24
- data/logo/inochi.png +0 -0
- data/man.html +0 -1229
- data/man/man1/inochi.1.gz +0 -0
data/lib/inochi/tasks/5-gem.rake
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
desc 'Build release package for RubyGems.'
|
2
2
|
task :gem do
|
3
|
-
Rake::Task[:@project].invoke
|
4
3
|
Rake::Task[:@ann_nfo_text].invoke
|
5
4
|
Rake::Task[:@project_authors_text].invoke
|
6
5
|
|
@@ -31,8 +30,7 @@ task :gem do
|
|
31
30
|
'{bin,lib,ext}/**/*',
|
32
31
|
'LICENSE',
|
33
32
|
'CREDITS',
|
34
|
-
@
|
35
|
-
@man_roff_dst_glob
|
33
|
+
@man_roff_dst
|
36
34
|
]
|
37
35
|
|
38
36
|
@project_module::DEVTIME.each do |gem_name, gem_version|
|
@@ -44,8 +42,8 @@ task :gem do
|
|
44
42
|
end
|
45
43
|
|
46
44
|
# allow user to configure the gem before it is built
|
47
|
-
if logic = @
|
48
|
-
eval logic, binding, "#{
|
45
|
+
if logic = @project_config[:gem_spec_logic] and not logic.empty?
|
46
|
+
eval logic, binding, "#{PROJECT_CONFIG_FILE} in :gem_spec_logic"
|
49
47
|
end
|
50
48
|
|
51
49
|
# emit gemspec
|
data/lib/inochi/tasks/6-pub.rake
CHANGED
@@ -7,7 +7,6 @@ task :pub => %w[ pub:gem pub:web pub:ann ]
|
|
7
7
|
|
8
8
|
desc 'Publish gem release package to RubyGems.org.'
|
9
9
|
task 'pub:gem' do
|
10
|
-
Rake::Task[:@project].invoke
|
11
10
|
Rake::Task[:gem].invoke unless File.exist? @project_gem_file
|
12
11
|
sh 'gem', 'push', @project_gem_file
|
13
12
|
end
|
@@ -18,12 +17,10 @@ end
|
|
18
17
|
|
19
18
|
desc 'Publish help manual, API docs, and RSS feed to project website.'
|
20
19
|
task 'pub:web' => %w[ man api ann:feed ] do |t|
|
21
|
-
|
22
|
-
|
23
|
-
if target = @project_options[:pub_web_target]
|
24
|
-
options = @project_options[:pub_web_options]
|
20
|
+
if target = @project_config[:pub_web_target]
|
21
|
+
options = @project_config[:pub_web_options]
|
25
22
|
sources = [@man_html_dst, @api_dir, @ann_feed_dst,
|
26
|
-
@
|
23
|
+
@project_config[:pub_web_extras]].compact
|
27
24
|
|
28
25
|
sh ['rsync', options, sources, target].join(' ')
|
29
26
|
end
|
@@ -93,8 +90,6 @@ end
|
|
93
90
|
desc 'Announce release on RAA (Ruby Application Archive).'
|
94
91
|
task 'pub:ann:raa' do
|
95
92
|
site = 'http://raa.ruby-lang.org'
|
96
|
-
|
97
|
-
Rake::Task[:@project].invoke
|
98
93
|
project = @project_package_name
|
99
94
|
|
100
95
|
require 'mechanize'
|
@@ -109,8 +104,6 @@ task 'pub:ann:raa' do
|
|
109
104
|
Rake::Task[:@ann_nfo_text].invoke
|
110
105
|
form['description'] = @ann_nfo_text
|
111
106
|
form['description_style'] = 'Plain'
|
112
|
-
|
113
|
-
Rake::Task[:@project].invoke
|
114
107
|
form['short_description'] = @project_module::TAGLINE
|
115
108
|
form['version'] = @project_module::VERSION
|
116
109
|
form['url'] = @project_module::WEBSITE
|
@@ -1,17 +1,18 @@
|
|
1
|
-
|
2
|
-
## SEE ALSO
|
3
|
-
%#----------------------------------------------------------------------------
|
1
|
+
== SEE ALSO
|
4
2
|
|
5
|
-
|
3
|
+
// TODO: list related UNIX man pages and links here
|
6
4
|
|
7
|
-
some_command(1),
|
8
|
-
another_command(5),
|
9
|
-
yet_another_command(7)
|
5
|
+
some_command(1), another_command(5), yet_another_command(7)
|
10
6
|
|
11
|
-
|
12
|
-
|
13
|
-
%#----------------------------------------------------------------------------
|
7
|
+
[sect2]
|
8
|
+
=== References
|
14
9
|
|
15
|
-
[
|
16
|
-
|
17
|
-
|
10
|
+
[horizontal]
|
11
|
+
|
12
|
+
// NOTE: keep these sorted alphabetically
|
13
|
+
|
14
|
+
[[Inochi]] Inochi:: <%= Inochi::WEBSITE %>
|
15
|
+
[[RubyGems]] RubyGems:: http://rubygems.org
|
16
|
+
[[Ruby]] Ruby:: http://ruby-lang.org
|
17
|
+
|
18
|
+
// TODO: list additional links here
|
@@ -1,27 +1,20 @@
|
|
1
|
-
|
2
|
-
## AUTHORS
|
3
|
-
%#----------------------------------------------------------------------------
|
1
|
+
== AUTHORS
|
4
2
|
|
5
|
-
|
3
|
+
// TODO: attribute yourself, your predecessors, and substantial contributors
|
6
4
|
|
7
5
|
Predecessor name,
|
8
6
|
Your name,
|
9
7
|
Substantial contributor name
|
10
8
|
|
11
|
-
|
12
|
-
## CREDITS
|
13
|
-
%#----------------------------------------------------------------------------
|
9
|
+
=== Credits
|
14
10
|
|
15
|
-
|
11
|
+
// TODO: attribute everyone else who has contributed to this project
|
16
12
|
|
17
13
|
Contributor name,
|
18
|
-
|
14
|
+
http://the.contributor.url[Contributor name],
|
19
15
|
Another contributor <contributor@email.address>,
|
20
16
|
Yet another contributor
|
21
17
|
|
22
|
-
|
23
|
-
## LICENSE
|
24
|
-
%#----------------------------------------------------------------------------
|
18
|
+
=== License
|
25
19
|
|
26
|
-
|
27
|
-
%< "LICENSE"
|
20
|
+
%< 'LICENSE'
|
@@ -1,59 +1,55 @@
|
|
1
|
-
|
2
|
-
## HACKING
|
3
|
-
%#----------------------------------------------------------------------------
|
1
|
+
== HACKING
|
4
2
|
|
5
|
-
|
6
|
-
code.
|
7
|
-
|
8
|
-
%#----------------------------------------------------------------------------
|
9
|
-
### Prerequisites
|
10
|
-
%#----------------------------------------------------------------------------
|
11
|
-
|
12
|
-
> TODO: list the tools and libraries needed to develop your project
|
3
|
+
=== Prerequisites
|
13
4
|
|
14
5
|
Install Ruby libraries necessary for development:
|
15
6
|
|
16
|
-
|
7
|
+
------------------------------------------------------------------------------
|
8
|
+
gem install #{package_name} --development
|
9
|
+
------------------------------------------------------------------------------
|
10
|
+
|
11
|
+
// TODO: list additional tools and libraries needed to develop your project
|
17
12
|
|
18
|
-
|
19
|
-
### Infrastructure
|
20
|
-
%#----------------------------------------------------------------------------
|
13
|
+
=== Infrastructure
|
21
14
|
|
22
|
-
|
23
|
-
tasks such as building this help manual and API documentation, and
|
24
|
-
announcing, and publishing new releases. See its help manual and
|
25
|
-
tasks to get started:
|
15
|
+
<<Inochi>> serves as the project infrastructure for #{project_name}. It
|
16
|
+
handles tasks such as building this help manual and API documentation, and
|
17
|
+
packaging, announcing, and publishing new releases. See its help manual and
|
18
|
+
list of tasks to get started:
|
26
19
|
|
27
|
-
|
28
|
-
|
20
|
+
------------------------------------------------------------------------------
|
21
|
+
inochi --help # display help manual
|
22
|
+
inochi --tasks # list available tasks
|
23
|
+
------------------------------------------------------------------------------
|
29
24
|
|
30
|
-
|
31
|
-
### $LOAD_PATH setup
|
32
|
-
%#----------------------------------------------------------------------------
|
25
|
+
=== $LOAD_PATH setup
|
33
26
|
|
34
27
|
Ensure that the `lib/` directory is listed in Ruby's `$LOAD_PATH` before you
|
35
28
|
use any libraries therein or run any executables in the `bin/` directory.
|
36
29
|
|
37
30
|
This can be achieved by passing an option to Ruby:
|
38
31
|
|
39
|
-
|
40
|
-
|
32
|
+
------------------------------------------------------------------------------
|
33
|
+
ruby -Ilib bin/#{package_name}
|
34
|
+
irb -Ilib -r #{package_name}
|
35
|
+
------------------------------------------------------------------------------
|
41
36
|
|
42
37
|
Or by setting the `$RUBYLIB` environment variable:
|
43
38
|
|
44
|
-
|
45
|
-
|
46
|
-
|
39
|
+
------------------------------------------------------------------------------
|
40
|
+
export RUBYLIB=lib # bash, ksh, zsh
|
41
|
+
setenv RUBYLIB lib # csh
|
42
|
+
set -x RUBYLIB lib # fish
|
47
43
|
|
48
|
-
|
49
|
-
|
44
|
+
ruby bin/#{package_name}
|
45
|
+
irb -r #{package_name}
|
46
|
+
------------------------------------------------------------------------------
|
50
47
|
|
51
|
-
Or by running Ruby through the
|
52
|
-
http://github.com/chneukirchen/rup/blob/master/ruby-wrapper
|
48
|
+
Or by running Ruby through the
|
49
|
+
http://github.com/chneukirchen/rup/blob/master/ruby-wrapper[ruby-wrapper]
|
50
|
+
tool.
|
53
51
|
|
54
|
-
|
55
|
-
### RubyGems setup
|
56
|
-
%#----------------------------------------------------------------------------
|
52
|
+
=== RubyGems setup
|
57
53
|
|
58
54
|
If you use Ruby 1.8 or older, then ensure that RubyGems is activated before
|
59
55
|
you use any libraries in the `lib/` directory or run any executables in the
|
@@ -61,33 +57,35 @@ you use any libraries in the `lib/` directory or run any executables in the
|
|
61
57
|
|
62
58
|
This can be achieved by passing an option to Ruby:
|
63
59
|
|
64
|
-
|
65
|
-
|
60
|
+
------------------------------------------------------------------------------
|
61
|
+
ruby -rubygems bin/#{package_name}
|
62
|
+
irb -rubygems -r #{package_name}
|
63
|
+
------------------------------------------------------------------------------
|
66
64
|
|
67
65
|
Or by setting the `$RUBYOPT` environment variable:
|
68
66
|
|
69
|
-
|
70
|
-
|
71
|
-
|
67
|
+
------------------------------------------------------------------------------
|
68
|
+
export RUBYOPT=-rubygems # bash, ksh, zsh
|
69
|
+
setenv RUBYOPT -rubygems # csh
|
70
|
+
set -x RUBYOPT -rubygems # fish
|
71
|
+
------------------------------------------------------------------------------
|
72
72
|
|
73
|
-
|
74
|
-
### Running tests
|
75
|
-
%#----------------------------------------------------------------------------
|
73
|
+
=== Running tests
|
76
74
|
|
77
75
|
Simply execute the included test runner, which sets up Ruby's `$LOAD_PATH` for
|
78
76
|
testing, loads the `test/helper.rb` file, and then evaluates all
|
79
77
|
`test/**/*_test.rb` files:
|
80
78
|
|
81
|
-
|
79
|
+
------------------------------------------------------------------------------
|
80
|
+
ruby test/runner
|
81
|
+
------------------------------------------------------------------------------
|
82
82
|
|
83
83
|
Its exit status will indicate whether all tests have passed. It may also
|
84
84
|
print additional pass/fail information depending on the testing library used
|
85
85
|
in the `test/helper.rb` file.
|
86
86
|
|
87
|
-
|
88
|
-
### Contributing
|
89
|
-
%#----------------------------------------------------------------------------
|
87
|
+
=== Contributing
|
90
88
|
|
91
|
-
|
89
|
+
// TODO: explain how someone can contribute their changes to your repository
|
92
90
|
|
93
|
-
Fork this project on GitHub
|
91
|
+
<%= @code_repo_url %>[Fork this project on GitHub] and send a pull request.
|
@@ -1,55 +1,48 @@
|
|
1
|
-
|
2
|
-
## HISTORY
|
3
|
-
%#----------------------------------------------------------------------------
|
1
|
+
== HISTORY
|
4
2
|
|
5
|
-
|
3
|
+
=== Version #{project_version} (#{project_release})
|
6
4
|
|
7
|
-
|
8
|
-
### Version #{project_version} (#{project_release})
|
9
|
-
%#----------------------------------------------------------------------------
|
10
|
-
|
11
|
-
> TODO: write a short summary of the changes in this release
|
5
|
+
// TODO: write a short summary of the changes in this release
|
12
6
|
|
13
7
|
This release changes TODO, adds TODO, and fixes TODO.
|
14
8
|
|
15
|
-
Incompatible changes
|
16
|
-
|
17
|
-
> TODO: list all backward-incompatible changes in this release
|
9
|
+
.Incompatible changes
|
18
10
|
|
19
|
-
|
11
|
+
// TODO: list all backward-incompatible changes in this release
|
20
12
|
|
21
|
-
|
13
|
+
* TODO has been TODO to TODO. Thanks to TODO for reporting this.
|
22
14
|
|
23
|
-
|
15
|
+
* TODO was TODO. Thanks to TODO for fixing this.
|
24
16
|
|
25
|
-
|
17
|
+
* TODO. Thanks to TODO for TODO.
|
26
18
|
|
27
|
-
|
19
|
+
.New features
|
28
20
|
|
29
|
-
|
21
|
+
// TODO: list new features added in this release
|
30
22
|
|
31
|
-
|
23
|
+
* TODO has been TODO to TODO. Thanks to TODO for reporting this.
|
32
24
|
|
33
|
-
|
25
|
+
* TODO was TODO. Thanks to TODO for fixing this.
|
34
26
|
|
35
|
-
|
27
|
+
* TODO. Thanks to TODO for TODO.
|
36
28
|
|
37
|
-
|
29
|
+
.Bug fixes
|
38
30
|
|
39
|
-
|
31
|
+
// TODO: describe all bugs that are fixed in this release
|
40
32
|
|
41
|
-
|
33
|
+
* TODO has been TODO to TODO. Thanks to TODO for reporting this.
|
42
34
|
|
43
|
-
|
35
|
+
* TODO was TODO. Thanks to TODO for fixing this.
|
44
36
|
|
45
|
-
|
37
|
+
* TODO. Thanks to TODO for TODO.
|
46
38
|
|
47
|
-
|
48
|
-
> improvements that were done for this release
|
39
|
+
.Housekeeping
|
49
40
|
|
50
|
-
|
41
|
+
// TODO: list the refactorings, clean ups, and other
|
42
|
+
// improvements that were done for this release
|
51
43
|
|
52
|
-
|
44
|
+
* TODO has been TODO to TODO. Thanks to TODO for reporting this.
|
53
45
|
|
54
|
-
|
46
|
+
* TODO was TODO. Thanks to TODO for fixing this.
|
55
47
|
|
48
|
+
* TODO. Thanks to TODO for TODO.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
== INSTALL
|
2
|
+
|
3
|
+
=== Prerequisites
|
4
|
+
|
5
|
+
// TODO: list all software necessary to run your project
|
6
|
+
|
7
|
+
* <<Ruby>> #{RUBY_VERSION} or newer.
|
8
|
+
|
9
|
+
* <<RubyGems>> #{Gem::RubyGemsVersion} or newer.
|
10
|
+
|
11
|
+
=== Installing
|
12
|
+
|
13
|
+
------------------------------------------------------------------------------
|
14
|
+
gem install #{package_name}
|
15
|
+
------------------------------------------------------------------------------
|
16
|
+
|
17
|
+
=== Upgrading
|
18
|
+
|
19
|
+
------------------------------------------------------------------------------
|
20
|
+
gem update #{package_name}
|
21
|
+
------------------------------------------------------------------------------
|
22
|
+
|
23
|
+
=== Removing
|
24
|
+
|
25
|
+
------------------------------------------------------------------------------
|
26
|
+
gem uninstall #{package_name}
|
27
|
+
------------------------------------------------------------------------------
|
@@ -1,34 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
##
|
11
|
-
# Puts the given content inside <pre> tags in a Markdown-safe way.
|
12
|
-
#
|
13
|
-
def preformatted content
|
14
|
-
if content =~ /\\S/
|
15
|
-
content.gsub(/^/, ' ' * 4)
|
16
|
-
else
|
17
|
-
"<pre>\#{content}</pre>"
|
18
|
-
end
|
19
|
-
end
|
20
|
-
%>
|
21
|
-
|
22
|
-
%+ "README"
|
23
|
-
|
24
|
-
%+ "USAGE"
|
25
|
-
|
26
|
-
%+ "EXAMPLES"
|
27
|
-
|
28
|
-
%+ "HACKING"
|
29
|
-
|
30
|
-
%+ "HISTORY"
|
31
|
-
|
32
|
-
%+ "CREDITS"
|
33
|
-
|
34
|
-
%+ "BEYOND"
|
1
|
+
%+ 'SYNOPSIS'
|
2
|
+
%+ 'README'
|
3
|
+
%+ 'INSTALL'
|
4
|
+
%+ 'USAGE'
|
5
|
+
%+ 'HACKING'
|
6
|
+
%+ 'HISTORY'
|
7
|
+
%+ 'CREDITS'
|
8
|
+
%+ 'BEYOND'
|
@@ -1,8 +1,8 @@
|
|
1
|
+
== DESCRIPTION
|
2
|
+
|
1
3
|
#{project_name} is a TODO that TODO.
|
2
4
|
|
3
|
-
|
4
|
-
### Features
|
5
|
-
%#----------------------------------------------------------------------------
|
5
|
+
=== Features
|
6
6
|
|
7
7
|
* Does TODO.
|
8
8
|
|
@@ -12,45 +12,19 @@
|
|
12
12
|
|
13
13
|
* Composed of TODO lines of code.
|
14
14
|
|
15
|
-
|
16
|
-
### Resources
|
17
|
-
%#----------------------------------------------------------------------------
|
18
|
-
|
19
|
-
* Issue tracker (report bugs, request features, get help):
|
20
|
-
<<%= bug_track_url %>>
|
21
|
-
|
22
|
-
* Source code (browse online or obtain with <%= code_repo_scm %>):
|
23
|
-
<<%= code_repo_url %>>
|
24
|
-
|
25
|
-
* API documentation:
|
26
|
-
<<%= api_docs_url %>>
|
27
|
-
|
28
|
-
* Announcements feed:
|
29
|
-
<<%= ann_feed_url %>>
|
30
|
-
|
31
|
-
* Official website:
|
32
|
-
<<%= proj_home_url %>>
|
33
|
-
|
34
|
-
%#----------------------------------------------------------------------------
|
35
|
-
### Setup
|
36
|
-
%#----------------------------------------------------------------------------
|
37
|
-
|
38
|
-
Prerequisites:
|
39
|
-
|
40
|
-
> TODO: list all software necessary to run your project
|
41
|
-
|
42
|
-
* [Ruby] #{RUBY_VERSION} or newer.
|
43
|
-
|
44
|
-
* [RubyGems] #{Gem::RubyGemsVersion} or newer.
|
45
|
-
|
46
|
-
Installing:
|
15
|
+
=== Resources
|
47
16
|
|
48
|
-
|
17
|
+
Project website::
|
18
|
+
<%= @proj_home_url = #{library_name}::WEBSITE %>
|
49
19
|
|
50
|
-
|
20
|
+
Announcements feed::
|
21
|
+
<%= @ann_feed_url = File.join(@proj_home_url, 'ann.xml') %>
|
51
22
|
|
52
|
-
|
23
|
+
API documentation::
|
24
|
+
<%= @api_docs_url = File.join(@proj_home_url, 'api/') %>
|
53
25
|
|
54
|
-
|
26
|
+
Source code (browse online, download, or checkout)::
|
27
|
+
<%= @code_repo_url = 'http://github.com/TODO/#{package_name}' %>
|
55
28
|
|
56
|
-
|
29
|
+
Issue tracker (report bugs, request features, get help)::
|
30
|
+
<%= @bug_track_url = File.join(@code_repo_url, 'issues') %>
|