Sha256: dafae4b51bae127238af60f46c337ea52ed72e254986eb889128ab78cd60d780
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
require 'rake' require 'rake/clean' require 'rake/testtask' CLEAN.include("**/*.gem", "**/*.rbx", "**/*.rbc") namespace 'gem' do desc 'Build the sys-uptime gem' task :create => [:clean] do require 'rubygems/package' spec = eval(IO.read('sys-uptime.gemspec')) spec.signing_key = File.join(Dir.home, '.ssh', 'gem-private_key.pem') if File::ALT_SEPARATOR spec.platform = Gem::Platform::CURRENT spec.platform.cpu = 'universal' spec.platform.version = nil else spec.add_dependency('ffi', '>= 1.0.0') end Gem::Package.build(spec, true) end desc 'Install the sys-uptime gem' task :install => [:create] do file = Dir["*.gem"].first sh "gem install -l #{file}" end end desc "Run the test suite" Rake::TestTask.new do |t| if File::ALT_SEPARATOR t.libs << 'lib/windows' else t.libs << 'lib/unix' end t.warning = true t.verbose = true end task :default => :test
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sys-uptime-0.7.1-x86-mingw32 | Rakefile |