Sha256: b40354ab9df7e5c641c68fddae6af222c6bfc5b3fe4a4d5e95862538c79f4770

Contents?: true

Size: 539 Bytes

Versions: 5

Compression:

Stored size: 539 Bytes

Contents

require "bundler/gem_tasks"
require "rspec/core/rake_task"
require 'rdoc/task'

RSpec::Core::RakeTask.new(:spec => :generate_code)

task :default => :spec

RDoc::Task.new(:rdoc) do |rdoc|
  rdoc.main = "README.md"
  rdoc.rdoc_dir = "rdoc"
  rdoc.rdoc_files.include("README.md", "lib/**/*.rb")
end

# also generates 'lib/gepub/book_add_item.rb' 
file 'lib/gepub/metadata_add.rb' => 'tools/generate_function.rb' do
  sh %Q(ruby tools/generate_function.rb)
end

desc 'auto generate code'
task :generate_code => ['lib/gepub/metadata_add.rb'] 

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
gepub-1.0.16 Rakefile
gepub-1.0.15 Rakefile
gepub-1.0.14 Rakefile
gepub-1.0.13 Rakefile
gepub-1.0.12 Rakefile