lib/inochi/templates/HACKING.rbs in inochi-4.0.1 vs lib/inochi/templates/HACKING.rbs in inochi-5.0.0
- old
+ new
@@ -1,93 +1,91 @@
-%#----------------------------------------------------------------------------
-## HACKING
-%#----------------------------------------------------------------------------
+== HACKING
-This section is meant for people who want to develop #{project_name}'s source
-code.
+=== Prerequisites
-%#----------------------------------------------------------------------------
-### Prerequisites
-%#----------------------------------------------------------------------------
-
-> TODO: list the tools and libraries needed to develop your project
-
Install Ruby libraries necessary for development:
- gem install #{package_name} --development
+------------------------------------------------------------------------------
+gem install #{package_name} --development
+------------------------------------------------------------------------------
-%#----------------------------------------------------------------------------
-### Infrastructure
-%#----------------------------------------------------------------------------
+// TODO: list additional tools and libraries needed to develop your project
-[Inochi] serves as the project infrastructure for #{project_name}. It handles
-tasks such as building this help manual and API documentation, and packaging,
-announcing, and publishing new releases. See its help manual and list of
-tasks to get started:
+=== Infrastructure
- inochi --help # display help manual
- inochi --tasks # list available tasks
+<<Inochi>> serves as the project infrastructure for #{project_name}. It
+handles tasks such as building this help manual and API documentation, and
+packaging, announcing, and publishing new releases. See its help manual and
+list of tasks to get started:
-%#----------------------------------------------------------------------------
-### $LOAD_PATH setup
-%#----------------------------------------------------------------------------
+------------------------------------------------------------------------------
+inochi --help # display help manual
+inochi --tasks # list available tasks
+------------------------------------------------------------------------------
+=== $LOAD_PATH setup
+
Ensure that the `lib/` directory is listed in Ruby's `$LOAD_PATH` before you
use any libraries therein or run any executables in the `bin/` directory.
This can be achieved by passing an option to Ruby:
- ruby -Ilib bin/#{package_name}
- irb -Ilib -r #{package_name}
+------------------------------------------------------------------------------
+ruby -Ilib bin/#{package_name}
+irb -Ilib -r #{package_name}
+------------------------------------------------------------------------------
Or by setting the `$RUBYLIB` environment variable:
- export RUBYLIB=lib # bash, ksh, zsh
- setenv RUBYLIB lib # csh
- set -x RUBYLIB lib # fish
+------------------------------------------------------------------------------
+export RUBYLIB=lib # bash, ksh, zsh
+setenv RUBYLIB lib # csh
+set -x RUBYLIB lib # fish
- ruby bin/#{package_name}
- irb -r #{package_name}
+ruby bin/#{package_name}
+irb -r #{package_name}
+------------------------------------------------------------------------------
-Or by running Ruby through the [ruby-wrapper](
-http://github.com/chneukirchen/rup/blob/master/ruby-wrapper ) tool.
+Or by running Ruby through the
+http://github.com/chneukirchen/rup/blob/master/ruby-wrapper[ruby-wrapper]
+tool.
-%#----------------------------------------------------------------------------
-### RubyGems setup
-%#----------------------------------------------------------------------------
+=== RubyGems setup
If you use Ruby 1.8 or older, then ensure that RubyGems is activated before
you use any libraries in the `lib/` directory or run any executables in the
`bin/` directory.
This can be achieved by passing an option to Ruby:
- ruby -rubygems bin/#{package_name}
- irb -rubygems -r #{package_name}
+------------------------------------------------------------------------------
+ruby -rubygems bin/#{package_name}
+irb -rubygems -r #{package_name}
+------------------------------------------------------------------------------
Or by setting the `$RUBYOPT` environment variable:
- export RUBYOPT=-rubygems # bash, ksh, zsh
- setenv RUBYOPT -rubygems # csh
- set -x RUBYOPT -rubygems # fish
+------------------------------------------------------------------------------
+export RUBYOPT=-rubygems # bash, ksh, zsh
+setenv RUBYOPT -rubygems # csh
+set -x RUBYOPT -rubygems # fish
+------------------------------------------------------------------------------
-%#----------------------------------------------------------------------------
-### Running tests
-%#----------------------------------------------------------------------------
+=== Running tests
Simply execute the included test runner, which sets up Ruby's `$LOAD_PATH` for
testing, loads the `test/helper.rb` file, and then evaluates all
`test/**/*_test.rb` files:
- ruby test/runner
+------------------------------------------------------------------------------
+ruby test/runner
+------------------------------------------------------------------------------
Its exit status will indicate whether all tests have passed. It may also
print additional pass/fail information depending on the testing library used
in the `test/helper.rb` file.
-%#----------------------------------------------------------------------------
-### Contributing
-%#----------------------------------------------------------------------------
+=== Contributing
-> TODO: explain how someone can contribute their changes to your repository
+// TODO: explain how someone can contribute their changes to your repository
-Fork this project on GitHub (see **Resources** above) and send a pull request.
+<%= @code_repo_url %>[Fork this project on GitHub] and send a pull request.