Sha256: 5a7d700160629d4f88fd1635842e3f349311fd4a9af2148287d3949951751396
Contents?: true
Size: 1.14 KB
Versions: 3
Compression:
Stored size: 1.14 KB
Contents
require 'rake' require 'rake/clean' require 'rspec/core/rake_task' require 'rubocop/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 RuboCop::RakeTask.new namespace :rubocop do RuboCop::RakeTask.new(:unix) do |task| task.patterns = ['lib/sys/unix/sys/**/*.rb', 'spec/*unix*'] end RuboCop::RakeTask.new(:windows) do |task| task.patterns = ['lib/sys/windows/sys/**/*.rb', 'spec/*windows*'] end end desc "Run the test suite" RSpec::Core::RakeTask.new(:spec) # Clean up afterwards Rake::Task[:spec].enhance do Rake::Task[:clean].invoke end task :default => :spec
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
sys-filesystem-1.5.3 | Rakefile |
sys-filesystem-1.5.2 | Rakefile |
sys-filesystem-1.5.1 | Rakefile |