Sha256: ddbc8e40ad06b475f54384988ad5dfb804e4f69f9e330c81971978cd8d46cf71

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 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)
  t.options.unshift('--title','"Sym – Symmetric Key Encryption for Your Data"')
  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
sym-2.8.2 Rakefile
sym-2.8.1 Rakefile
sym-2.8.0 Rakefile