Sha256: 5a58b2c70d6e77cfc4b637a37191d7610a8647a69f2dd39e37a177fd055e521f

Contents?: true

Size: 767 Bytes

Versions: 2

Compression:

Stored size: 767 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rspec/core/rake_task'

CLEAN.include('**/*.gem', '**/*.rbc', '**/*.rbx', '**/*.lock')

namespace :gem do
  desc "Build the sys-filesystem gem"
  task :create => [:clean] do |t|
    require 'rubygems/package'
    spec = eval(IO.read('sys-filesystem.gemspec'))
    spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem')
    Gem::Package.build(spec)
  end

  desc "Install the sys-filesystem gem"
  task :install => [:create] do
    file = Dir['*.gem'].first
    sh "gem install -l #{file}"
  end
end

desc "Run the example program"
task :example do |t|
  sh "ruby -Ilib -Ilib/unix -Ilib/windows examples/example_stat.rb"
end

desc "Run the test suite"
RSpec::Core::RakeTask.new(:spec)

task :default => :spec

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
sys-filesystem-1.4.1 Rakefile
sys-filesystem-1.4.0 Rakefile