Sha256: 2ac0d64606c684b8b49cced0874c4bf474ea57f3c2a7b6da170693703c0770c4

Contents?: true

Size: 1 KB

Versions: 3

Compression:

Stored size: 1 KB

Contents

require 'rubygems'
require 'rake/testtask'
require 'rake/rdoctask'

$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
require 'typus/version'

desc 'Default: run unit tests.'
task :default => :test

desc 'Test the typus plugin.'
Rake::TestTask.new(:test) do |t|
  t.libs << 'lib'
  t.libs << 'test'
  t.pattern = 'test/**/*_test.rb'
  t.verbose = true
end

desc 'Generate plugin documentation.'
Rake::RDocTask.new(:rdoc) do |rdoc|
  rdoc.rdoc_dir = 'rdoc'
  rdoc.title    = 'Typus'
  rdoc.options << '--line-numbers' << '--inline-source'
  rdoc.rdoc_files.include('README.rdoc')
  rdoc.rdoc_files.include('lib/**/*.rb')
end

desc 'Build the gem.'
task :build do
  system "gem build typus.gemspec"
end

desc 'Build and release the gem.'
task :release => :build do
  version = Typus::VERSION

  system "git commit -m 'Bump version to #{Typus::VERSION}' lib/typus/version.rb"
  system "git tag v#{version}"
  system "git push"
  system "git push --tags"

  system "gem push typus-#{version}.gem"

  system "git clean -fd"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
typus-1.0.0.pre8 Rakefile
typus-1.0.0.pre7 Rakefile
typus-1.0.0.pre6 Rakefile