Sha256: 3f88bd2e184c09292baf363545ff539d031bd22c74775c982bcc67262761864d

Contents?: true

Size: 638 Bytes

Versions: 1

Compression:

Stored size: 638 Bytes

Contents

require 'rake'
require 'rake/testtask'
require 'rake/clean'

CLEAN.include("*.gem", "*.rbc")

namespace :gem do
  desc 'Build the enumerable-extra gem'
  task :create => [:clean] do
    spec = eval(IO.read('enumerable-extra.gemspec'))
    if Gem::VERSION < "2.0"
      Gem::Builder.new(spec).build
    else
      require 'rubygems/package'
      Gem::Package.build(spec)
    end
  end

  desc "Install the enumerable-extra library as a gem"
  task :install => [:create] do
    file = Dir["*.gem"].first
    sh "gem install -l #{file}"
  end
end

Rake::TestTask.new do |t|
  t.warning = true
  t.verbose = true
end

task :default => :test

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
enumerable-extra-0.2.0 Rakefile