Sha256: c7dd335c001fb2c4d8296ac649a16cd7e6ed366bc74bd23a5ecec274d565db8e
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
# rubocop:disable Style/HashSyntax require 'bundler/gem_tasks' def gemspec @gemspec ||= begin # rubocop:disable Security/Eval eval(File.read('git-multi.gemspec')) # rubocop:enable Security/Eval end end desc 'Validate the gemspec' task :validate do gemspec.validate end require 'rake/testtask' Rake::TestTask.new(:test) do |t| t.libs << 'test' t.libs << 'lib' t.test_files = FileList['test/**/*_test.rb'] end task :default => :test require 'git/multi' git_workarea = File.join(Git::Multi::WORKAREA, 'git', 'git') documentation = File.join(git_workarea, 'Documentation') git_asciidoc = File.join(documentation, 'git-multi.txt') require 'erb' file 'man/git-multi.erb' => 'lib/git/multi/version.rb' # version changes file git_asciidoc => 'man/git-multi.erb' do |task| File.write(task.name, ERB.new(File.read(task.source)).result) end task :documentation => git_asciidoc do Dir.chdir(documentation) do # use git's documentation approach and build system %x{ make git-multi.1 git-multi.html } FileUtils.cp 'git-multi.1', Git::Multi::MAN_PAGE FileUtils.cp 'git-multi.html', Git::Multi::HTML_PAGE end end Rake::Task['build'].enhance([:documentation]) # rubocop:enable Style/HashSyntax
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
git-multi-1.0.5 | Rakefile |