Closed postmodern closed 10 years ago
Note that Bundler's tasks aren't stacked. That is, neither release nor install invoke build. Perhaps we should fix this upstream?
If the additional man-pages are listed in gemspec.files
but don't exist the build should fail. You are right, the build
task should depend on everything in gemspec.files
, so a change in a man-pages will trigger a rebuild. The install
task should depend on the pkg/$name-$version.gem
file as well. This is how rubygems-tasks operates.
Submitted an issue upstream.
On second thought, we probably shouldn't be hooking into build
. Should let the developer decide how to hook md2man into their Rakefile.
Fair enough.
This patch adds extra steps of instantiating Md2Man::Tasks.new
in the user's rakefile. That doesn't fit with my intended usage of simply requiring this library into the user's rakefile to make things work. Therefore I'm closing this pull request unmerged. Nevertheless, thanks for your patch! :bow:
Converted the
md2man/rakefile
intoMd2Man::Tasks
::options
option for passing options down to Redcarpet.:web
option for enabling/disabling generation of.html
files.build
task tomd2man
.In the future more options could be added to customize the format of the
.html
files.