Sha256: 4fadfc2b1f1cb1d261c6a496ca2810d3efd5dcee078ec50613e1bcf2bd621541

Contents?: true

Size: 1.06 KB

Versions: 3

Compression:

Stored size: 1.06 KB

Contents

=begin

    This file is part of the Toq project and may be subject to
    redistribution and commercial restrictions. Please see the Toq
    web site for more information on licensing and terms of use.

=end

require 'rubygems'
require File.expand_path( File.dirname( __FILE__ ) ) + '/lib/toq/version'

begin
    require 'rspec'
    require 'rspec/core/rake_task'

    RSpec::Core::RakeTask.new
rescue
end

task default: [ :build, :spec ]

desc 'Generate docs'
task :docs do
    outdir = "../toq"
    sh "rm -rf #{outdir}"
    sh "mkdir -p #{outdir}"

    sh "yardoc -o #{outdir}"

    sh "rm -rf .yardoc"
end

desc 'Clean up'
task :clean do
    sh 'rm *.gem || true'
end

desc 'Build the toq gem.'
task build: [ :clean ] do
    sh 'gem build toq.gemspec'
end

desc 'Build and install the toq gem.'
task install: [ :build ] do
    sh "gem install toq-#{Toq::VERSION}.gem"
end

desc 'Push a new version to Rubygems'
task publish: [ :build ] do
    sh "git tag -a v#{Toq::VERSION} -m 'Version #{Toq::VERSION}'"
    sh "gem push toq-#{Toq::VERSION}.gem"
end
task release: [ :publish ]

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
toq-0.1.0 Rakefile
toq-0.0.4.1 Rakefile
toq-0.0.4 Rakefile