Sha256: ab0a8a42932190ee5996c061d13a76a8502690071052f44f1329e439c731aa89

Contents?: true

Size: 707 Bytes

Versions: 4

Compression:

Stored size: 707 Bytes

Contents

require "bundler"
require "bundler/setup"
require "rake/testtask"
require "rdoc/task"

#
# gem
#

task gem: :build
task :build do
  system "gem build --quiet chuckle.gemspec"
end

task install: :build do
  system "sudo gem install --quiet chuckle-#{Chuckle::VERSION}.gem"
end

task release: :build do
  system "git tag -a #{Chuckle::VERSION} -m 'Tagging #{Chuckle::VERSION}'"
  system "git push --tags"
  system "gem push chuckle-#{Chuckle::VERSION}.gem"
end

#
# test
#

Rake::TestTask.new(:test) do |test|
  test.libs << "test"
end
task default: :test

#
# rdoc
#

RDoc::Task.new do |rdoc|
  rdoc.rdoc_dir = "rdoc"
  rdoc.title = "chuckle #{Chuckle::VERSION}"
  rdoc.rdoc_files.include("lib/**/*.rb")
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
chuckle-1.0.3 Rakefile
chuckle-1.0.2 Rakefile
chuckle-1.0.1 Rakefile
chuckle-1.0.0 Rakefile