Sha256: d3a3b4cbeeb7e8cc2f7f38da050518d898f405f7d97cbffcbd0aae0d1c64021d
Contents?: true
Size: 1.02 KB
Versions: 3
Compression:
Stored size: 1.02 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 system "git commit -m 'Bump version to #{Typus::VERSION}' lib/typus/version.rb" system "git tag v#{Typus::VERSION}" system "git push && git push --tags" system "gem push typus-#{Typus::VERSION}.gem" system "git clean -fd && rm -f typus-#{Typus::VERSION}.gem" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typus-1.0.0.pre12 | Rakefile |
typus-1.0.0.pre11 | Rakefile |
typus-1.0.0.pre10 | Rakefile |