Sha256: 4a197471ff88e77f858e4a20ecfa6e7a9de4f52eb35e1f589463dcd9e2552e5d

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

require 'bundler/gem_tasks'
require 'rspec/core/rake_task'
require 'rubocop/rake_task'
require 'yard'
require 'timeout'

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)
  t.options.unshift('--title', '"Sym – Symmetric Key Encryption for Your Data"')
  t.after = -> { exec('open doc/index.html') }
end

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

RuboCop::RakeTask.new

task :default => :spec





Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sym-2.10.0 Rakefile