Sha256: 9fe89afee3b0f0d34c16f2920584f0279c2a55a800946d79eff4209fe70450c5

Contents?: true

Size: 615 Bytes

Versions: 31

Compression:

Stored size: 615 Bytes

Contents

require 'rubygems'
require 'rubygems/package_task'
require 'rubygems/specification'
require 'date'

gemspec = eval(IO.read("ohai.gemspec"))


Gem::PackageTask.new(gemspec).define

desc "install the gem locally"
task :install => [:package] do
  sh %{gem install pkg/#{ohai}-#{OHAI_VERSION}}
end

begin
  require 'rspec/core/rake_task'

  RSpec::Core::RakeTask.new do |t|
    t.pattern = 'spec/**/*_spec.rb'
  end
rescue LoadError
  desc "rspec is not installed, this task is disabled"
  task :spec do
    abort "rspec is not installed. `(sudo) gem install rspec` to run unit tests"
  end
end

task :default => :spec

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
ohai-7.4.1 Rakefile
ohai-7.4.0 Rakefile
ohai-7.4.0.rc.0 Rakefile
ohai-6.24.2 Rakefile
ohai-6.24.0 Rakefile
ohai-7.2.4 Rakefile
ohai-7.2.2 Rakefile
ohai-7.2.0 Rakefile
ohai-6.24.0.rc.0 Rakefile
ohai-7.2.0.rc.2 Rakefile
ohai-7.2.0.rc.1 Rakefile
ohai-7.2.0.rc.0 Rakefile
ohai-7.2.0.alpha.0 Rakefile
ohai-7.0.4 Rakefile
ohai-7.0.4.rc.0 Rakefile
ohai-7.0.2 Rakefile
ohai-6.22.0 Rakefile
ohai-7.0.0 Rakefile
ohai-7.0.0.rc.3 Rakefile
ohai-7.0.0.rc.2 Rakefile