Sha256: 3dd59543cf56fe9739b34138c7cd4e775a69a4d310cb5ff661af24b262edbe58

Contents?: true

Size: 652 Bytes

Versions: 4

Compression:

Stored size: 652 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'
    t.rspec_opts = %w(-fs --color)
  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

4 entries across 4 versions & 1 rubygems

Version Path
ohai-0.6.2 Rakefile
ohai-0.6.2.rc.0 Rakefile
ohai-0.6.0 Rakefile
ohai-0.6.0.beta.0 Rakefile