Sha256: 2f2e9e23129a163218c4a1cd1722ce3dd728a492a35139320d32efea0367d9b0
Contents?: true
Size: 1018 Bytes
Versions: 1
Compression:
Stored size: 1018 Bytes
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 origin v#{version}" system "gem push typus-#{version}.gem" system "git clean -fd" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typus-1.0.0.pre5 | Rakefile |