Sha256: 03495c6be5f1de8a9a5db40311f6850b597537920888b6c64997e79c3c051349

Contents?: true

Size: 854 Bytes

Versions: 16

Compression:

Stored size: 854 Bytes

Contents

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

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

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)
  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"
RSpec::Core::RakeTask.new(:spec)

task :default => :spec

Version data entries

16 entries across 16 versions & 4 rubygems

Version Path
rubypitaya-3.12.5 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sys-uname-1.2.2/Rakefile
rubypitaya-3.12.4 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sys-uname-1.2.2/Rakefile
rubypitaya-3.12.3 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sys-uname-1.2.2/Rakefile
rubypitaya-3.12.2 ./lib/rubypitaya/app-template/vendor/bundle/ruby/3.1.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-2.0.1 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-2.0.0 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-1.142.3 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-1.120.3 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-1.61.3 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-1.42.3 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-1.33.7 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-1.30.0 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
phillipug-foodie-0.1.0 .vendor/ruby/3.0.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-0.57.1 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
cloudsmith-api-0.54.15 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.2/Rakefile
sys-uname-1.2.2 Rakefile