Sha256: 1ab3660ea905614fe652aee97b68829e0d5beffd659c273fdb7155ed2417c2d0

Contents?: true

Size: 617 Bytes

Versions: 20

Compression:

Stored size: 617 Bytes

Contents

require 'rubygems'
require 'rake/gempackagetask'
require 'rubygems/specification'
require 'date'

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


Rake::GemPackageTask.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

20 entries across 20 versions & 1 rubygems

Version Path
ohai-6.16.0.beta.2 Rakefile
ohai-6.16.0.beta.1 Rakefile
ohai-6.14.0 Rakefile
ohai-6.14.0.rc.1 Rakefile
ohai-0.6.14.rc.1 Rakefile
ohai-0.6.12 Rakefile
ohai-0.6.12.rc.5 Rakefile
ohai-0.6.12.rc.4 Rakefile
ohai-0.6.12.rc.3 Rakefile
ohai-0.6.12.rc.2 Rakefile
ohai-0.6.12.rc.1 Rakefile
ohai-0.6.10 Rakefile
ohai-0.6.10.rc.1 Rakefile
ohai-0.6.8 Rakefile
ohai-0.6.8.rc.1 Rakefile
ohai-0.6.8.rc.0 Rakefile
ohai-0.6.6 Rakefile
ohai-0.6.6.rc.1 Rakefile
ohai-0.6.6.rc.0 Rakefile
ohai-0.6.4 Rakefile