Sha256: 45de6e1e9d3fed4195d8f58b358a4c30c971e145a57410983e584d6192f97c5b

Contents?: true

Size: 629 Bytes

Versions: 1

Compression:

Stored size: 629 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 :permissions do 
  shell("find . -type f -exec chmod o+r,g+r {} \\;")
  shell("find . -type d -exec chmod o+rx,g+rx {} \\;")
end

task :build => :permissions

YARD::Rake::YardocTask.new(:doc) do |t|
  t.files = %w(lib/**/*.rb exe/*.rb - README.md LICENSE sym-3.0-cli.md)
  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

1 entries across 1 versions & 1 rubygems

Version Path
sym-2.3.0 Rakefile