Sha256: 1d3dc77604b38bd710cd7232845d9ccf9a357e6cc45152e3ee866c4981f8cda2

Contents?: true

Size: 891 Bytes

Versions: 18

Compression:

Stored size: 891 Bytes

Contents

require 'rake'
require 'rake/clean'
require 'rbconfig'
require 'rspec/core/rake_task'
require 'rubocop/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 = Gem::Specification.load('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

RuboCop::RakeTask.new

desc "Run the test suite"
RSpec::Core::RakeTask.new(:spec)

task :default => :spec

Version data entries

18 entries across 18 versions & 2 rubygems

Version Path
cloudsmith-api-2.0.16 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.3.1/Rakefile
sys-uname-1.3.1 Rakefile
cloudsmith-api-2.0.15 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.3.0/Rakefile
cloudsmith-api-2.0.14 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.3.0/Rakefile
sys-uname-1.3.0 Rakefile
cloudsmith-api-2.0.13 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.12 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.11 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.10 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.9 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.8 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.7 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.6 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.5 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.4 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.3 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
cloudsmith-api-2.0.2 vendor/bundle/ruby/2.6.0/gems/sys-uname-1.2.3/Rakefile
sys-uname-1.2.3 Rakefile