Sha256: f82f2b31f3e7599e3a5d295bcb841a9f6f4521f736828b073da2512cc9c61631
Contents?: true
Size: 733 Bytes
Versions: 2
Compression:
Stored size: 733 Bytes
Contents
require 'bundler/gem_tasks' require 'rspec/core/rake_task' require 'yard' def shell(*args) puts "running: #{args.join(' ')}" system(args.join(' ')) end task :clean do shell('rm -rf pkg/ tmp/ coverage/ doc/' ) end task :gem => [:build] do shell('gem install pkg/*') end task :permissions => [ :clean ] do shell("chmod -v o+r,g+r * */* */*/* */*/*/* */*/*/*/* */*/*/*/*/*") shell("find . -type d -exec chmod o+x,g+x {} \\;") end task :build => :permissions YARD::Rake::YardocTask.new(:doc) do |t| t.files = %w(lib/**/*.rb exe/*.rb - README.md LICENSE.txt) t.options.unshift('--title','RequireDir') t.after = ->() { exec('open doc/index.html') } end RSpec::Core::RakeTask.new(:spec) task :default => :spec
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
require_dir-2.0.0 | Rakefile |
require_dir-1.0.0 | Rakefile |