lib/binman/rakefile.rb in binman-2.0.0 vs lib/binman/rakefile.rb in binman-3.0.0

- old
+ new

@@ -1,18 +1,19 @@ require 'rake' -path = 'man/man1' +directory path = 'man/man1' bins = FileList['bin/*'] mans = bins.pathmap("#{path}/%n.1") +desc 'Build UNIX man pages for bin/ scripts.' +task :binman => mans + bins.zip(mans).each do |bin, man| file man => [bin, path] do require 'binman' roff = BinMan.dump(bin) File.open(man, 'w') {|f| f << roff } end end - -desc 'Build UNIX man pages for bin/ scripts.' -task :binman => mans -directory path +# build man pages before building ruby gem using bundler +%w[build install release].each {|t| task t => :binman }