Sha256: 7002c8bfe43fe2309af3c62f0014ed0287770e78e15ffc32aec09465d31fa5c9

Contents?: true

Size: 859 Bytes

Versions: 9

Compression:

Stored size: 859 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'
require 'rbconfig'

CLEAN.include("**/*.rbc", "**/*.rbx", "**/*.gem")

desc "Run the example program"
task :example do
  if File::ALT_SEPARATOR
    sh 'ruby -Ilib/windows examples/uname_test.rb'
  else
    sh 'ruby -Ilib/unix examples/uname_test.rb'
  end
end

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

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

desc "Run the test suite"
Rake::TestTask.new("test") do |t|
  t.warning = true
  t.verbose = true
end

task :default => :test

Version data entries

9 entries across 9 versions & 4 rubygems

Version Path
sys-uname-1.1.1 Rakefile
cloudsmith-api-0.44.4 vendor/bundle/ruby/2.3.0/gems/sys-uname-1.1.0/Rakefile
sys-uname-1.1.0 Rakefile
dadapush_client-1.0.1 vendor/bundle/ruby/2.3.0/gems/sys-uname-1.0.3/Rakefile
sys-uname-1.0.4 Rakefile
cloudsmith-api-0.30.7 vendor/bundle/ruby/2.3.0/gems/sys-uname-1.0.3/Rakefile
color_me_shop-1.0.0 vendor/bundle/ruby/2.5.0/gems/sys-uname-1.0.3/Rakefile
cloudsmith-api-0.21.4 vendor/bundle/ruby/2.3.0/gems/sys-uname-1.0.3/Rakefile
sys-uname-1.0.3 Rakefile