Sha256: 5637cfbc48a2786477939ac5dfe55202d10134c178f72c0ac12ea539027b2749

Contents?: true

Size: 1.09 KB

Versions: 9

Compression:

Stored size: 1.09 KB

Contents

#!/usr/bin/env ruby

# Created by Jesse Herrick
# www.jessegrant.net
# jessegrantherrick@gmail.com

# Gems
require "rubygems"
require "rake"
require "colorize"
require "rake/testtask"

# Helpers
def test(filename)
    puts `ruby -I . test/test_#{filename}.rb`
end

# Tasks
desc "Default task."
task :default do
    puts `rake test`
    puts "Gem seems to be in tip top shape!".green
    puts "Run: ".yellow + "`bukkit --help` to list all commands."
end

# Run all tests.
Rake::TestTask.new do |t|
    t.libs << "test"
    t.libs << "bin"
    t.test_files = FileList['test/test*.rb']
    t.verbose = true
end

desc "Build gem."
task :build do
    puts "Starting gem build...".yellow
    puts "          Building...".yellow
    `gem build bukkit.gemspec`

    puts "bukkit successfully built!".green
    puts "Gems in this directory: ".yellow
    Dir.glob("*.gem").each { |gem| puts "=> " + gem.yellow }
end

desc "Install the gem."
task :install do
    gem = Dir.glob("*.gem").last
    puts "Installing gem...".yellow
    puts "From: ".yellow + gem
    `gem install #{gem}`
    puts "Gem successfully installed!".green
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
bukkit-2.3.2 Rakefile
bukkit-2.3.1 Rakefile
bukkit-2.3.0 Rakefile
bukkit-2.2.0 Rakefile
bukkit-2.1.3 Rakefile
bukkit-2.1.2 Rakefile
bukkit-2.1.1 Rakefile
bukkit-2.1.0 Rakefile
bukkit-2.0.0 Rakefile