Sha256: a7fc06a6f984d576a5361401a981e45fe3d325c9c62804bfc9613f70abfc15c8
Contents?: true
Size: 769 Bytes
Versions: 2
Compression:
Stored size: 769 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 require 'rubygems/package' spec = Gem::Specification.load('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 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.3 | Rakefile |
sys-filesystem-1.4.2 | Rakefile |