inochi 4.0.1 → 5.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
- @man_html_dst,
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 = @project_options[:gem_spec_logic] and not logic.empty?
48
- eval logic, binding, "#{@project_options_file} in :gem_spec_logic"
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
@@ -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
- Rake::Task[:@project].invoke
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
- @project_options[:pub_web_extras]].compact
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
- > TODO: list related UNIX man pages here
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
- %# Markdown link references
13
- %#----------------------------------------------------------------------------
7
+ [sect2]
8
+ === References
14
9
 
15
- [Inochi]: <%= Inochi::WEBSITE %>
16
- [RubyGems]: http://rubygems.org
17
- [Ruby]: http://ruby-lang.org
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
- > TODO: attribute yourself, your predecessors, and substantial contributors
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
- > TODO: attribute everyone else who has contributed to this project
11
+ // TODO: attribute everyone else who has contributed to this project
16
12
 
17
13
  Contributor name,
18
- [Contributor name](http://the.contributor.url),
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
- %# See the file named "LICENSE".
27
- %< "LICENSE"
20
+ %< 'LICENSE'
@@ -1,59 +1,55 @@
1
- %#----------------------------------------------------------------------------
2
- ## HACKING
3
- %#----------------------------------------------------------------------------
1
+ == HACKING
4
2
 
5
- This section is meant for people who want to develop #{project_name}'s source
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
- gem install #{package_name} --development
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
- [Inochi] serves as the project infrastructure for #{project_name}. It handles
23
- tasks such as building this help manual and API documentation, and packaging,
24
- announcing, and publishing new releases. See its help manual and list of
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
- inochi --help # display help manual
28
- inochi --tasks # list available tasks
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
- ruby -Ilib bin/#{package_name}
40
- irb -Ilib -r #{package_name}
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
- export RUBYLIB=lib # bash, ksh, zsh
45
- setenv RUBYLIB lib # csh
46
- set -x RUBYLIB lib # fish
39
+ ------------------------------------------------------------------------------
40
+ export RUBYLIB=lib # bash, ksh, zsh
41
+ setenv RUBYLIB lib # csh
42
+ set -x RUBYLIB lib # fish
47
43
 
48
- ruby bin/#{package_name}
49
- irb -r #{package_name}
44
+ ruby bin/#{package_name}
45
+ irb -r #{package_name}
46
+ ------------------------------------------------------------------------------
50
47
 
51
- Or by running Ruby through the [ruby-wrapper](
52
- http://github.com/chneukirchen/rup/blob/master/ruby-wrapper ) tool.
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
- ruby -rubygems bin/#{package_name}
65
- irb -rubygems -r #{package_name}
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
- export RUBYOPT=-rubygems # bash, ksh, zsh
70
- setenv RUBYOPT -rubygems # csh
71
- set -x RUBYOPT -rubygems # fish
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
- ruby test/runner
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
- > TODO: explain how someone can contribute their changes to your repository
89
+ // TODO: explain how someone can contribute their changes to your repository
92
90
 
93
- Fork this project on GitHub (see **Resources** above) and send a pull request.
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
- This section contains release notes of current and past releases.
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
- * TODO has been TODO to TODO --- contributor name
11
+ // TODO: list all backward-incompatible changes in this release
20
12
 
21
- * TODO --- contributor name
13
+ * TODO has been TODO to TODO. Thanks to TODO for reporting this.
22
14
 
23
- * TODO --- contributor name
15
+ * TODO was TODO. Thanks to TODO for fixing this.
24
16
 
25
- New features:
17
+ * TODO. Thanks to TODO for TODO.
26
18
 
27
- > TODO: list new features added in this release
19
+ .New features
28
20
 
29
- * TODO --- contributor name
21
+ // TODO: list new features added in this release
30
22
 
31
- * TODO --- contributor name
23
+ * TODO has been TODO to TODO. Thanks to TODO for reporting this.
32
24
 
33
- * TODO --- contributor name
25
+ * TODO was TODO. Thanks to TODO for fixing this.
34
26
 
35
- Bug fixes:
27
+ * TODO. Thanks to TODO for TODO.
36
28
 
37
- > TODO: describe all bugs that are fixed in this release
29
+ .Bug fixes
38
30
 
39
- * TODO was TODO --- contributor name
31
+ // TODO: describe all bugs that are fixed in this release
40
32
 
41
- * TODO were TODO --- contributor name
33
+ * TODO has been TODO to TODO. Thanks to TODO for reporting this.
42
34
 
43
- * TODO did TODO --- contributor name
35
+ * TODO was TODO. Thanks to TODO for fixing this.
44
36
 
45
- Housekeeping:
37
+ * TODO. Thanks to TODO for TODO.
46
38
 
47
- > TODO: list the refactorings, clean ups, and other
48
- > improvements that were done for this release
39
+ .Housekeeping
49
40
 
50
- * TODO --- contributor name
41
+ // TODO: list the refactorings, clean ups, and other
42
+ // improvements that were done for this release
51
43
 
52
- * TODO --- contributor name
44
+ * TODO has been TODO to TODO. Thanks to TODO for reporting this.
53
45
 
54
- * TODO --- contributor name
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
- proj_home_url = #{library_name}::WEBSITE
3
- api_docs_url = File.join(proj_home_url, 'api/')
4
- ann_feed_url = File.join(proj_home_url, 'ann.xml')
5
-
6
- code_repo_scm = '[Git](http://git-scm.com)'
7
- code_repo_url = 'http://github.com/TODO/#{package_name}'
8
- bug_track_url = 'http://github.com/TODO/#{package_name}/issues'
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
- gem install #{package_name}
17
+ Project website::
18
+ <%= @proj_home_url = #{library_name}::WEBSITE %>
49
19
 
50
- Upgrading:
20
+ Announcements feed::
21
+ <%= @ann_feed_url = File.join(@proj_home_url, 'ann.xml') %>
51
22
 
52
- gem update #{package_name}
23
+ API documentation::
24
+ <%= @api_docs_url = File.join(@proj_home_url, 'api/') %>
53
25
 
54
- Removing:
26
+ Source code (browse online, download, or checkout)::
27
+ <%= @code_repo_url = 'http://github.com/TODO/#{package_name}' %>
55
28
 
56
- gem uninstall #{package_name}
29
+ Issue tracker (report bugs, request features, get help)::
30
+ <%= @bug_track_url = File.join(@code_repo_url, 'issues') %>