Sha256: 060536124eff1b05fb9ff76ca2d363058a7620f2a238eaf37b0584bfc5c79e78

Contents?: true

Size: 797 Bytes

Versions: 3

Compression:

Stored size: 797 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/ spec/fixtures/file5/libraries' )
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','Arli — The Missing Arduino Library Manager')
  t.after = ->() { exec('open doc/index.html') }
end

RSpec::Core::RakeTask.new(:spec)

task :default => :spec


Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
arli-1.4.0 Rakefile
arli-1.3.0 Rakefile
arli-1.2.1 Rakefile