Sha256: 2023282e42eb1b3fc19730232a43cbfb95ae7d785d7b216a3c0ce480407a1e55

Contents?: true

Size: 1000 Bytes

Versions: 5

Compression:

Stored size: 1000 Bytes

Contents

# encoding: utf-8
#
# This file is part of the cowtech-extensions gem. Copyright (C) 2011 and above Shogun <shogun_panda@me.com>.
# Licensed under the MIT license, which can be found at http://www.opensource.org/licenses/mit-license.php.
#

require "bundler/gem_tasks"
require "rspec/core/rake_task"

RSpec::Core::RakeTask.new("spec")
RSpec::Core::RakeTask.new("spec:coverage") { |t| t.ruby_opts = "-r./spec/coverage_helper" }

desc "Generate the documentation"
task :docs do
  system("yardoc") || raise("Failed Execution of: yardoc")
end

desc "Get the current release version"
task :version, :with_name do |_, args|
  gem = Bundler::GemHelper.instance.gemspec
  puts [args[:with_name] == "true" ? gem.name : nil, gem.version].compact.join("-")
end

desc "Prepare the release"
task :prerelease => ["spec:coverage", "docs"] do
  ["git add -A", "git commit -am \"Version #{Bundler::GemHelper.instance.gemspec.version}\""].each do |cmd|
    system(cmd) || raise("Failed Execution of: #{cmd}")
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bovem-3.0.1 Rakefile
bovem-3.0.0 Rakefile
bovem-2.4.1 Rakefile
bovem-2.4.0 Rakefile
bovem-2.3.7 Rakefile