Sha256: 87f1aa6bc42ca7369678fddf31482e381fa06a9323544348be6a4098008f3049

Contents?: true

Size: 987 Bytes

Versions: 24

Compression:

Stored size: 987 Bytes

Contents

# encoding: utf-8
#
# This file is part of the lazier gem. Copyright (C) 2013 and above Shogun <shogun@cowtech.it>.
# 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

24 entries across 24 versions & 1 rubygems

Version Path
lazier-4.2.0 Rakefile
lazier-4.1.0 Rakefile
lazier-4.0.6 Rakefile
lazier-4.0.5 Rakefile
lazier-3.5.7 Rakefile
lazier-4.0.4 Rakefile
lazier-3.5.6 Rakefile
lazier-4.0.3 Rakefile
lazier-4.0.2 Rakefile
lazier-4.0.1 Rakefile
lazier-4.0.0 Rakefile
lazier-3.5.5 Rakefile
lazier-3.5.4 Rakefile
lazier-3.5.3 Rakefile
lazier-3.5.2 Rakefile
lazier-3.5.1 Rakefile
lazier-3.5.0 Rakefile
lazier-3.4.2 Rakefile
lazier-3.4.1 Rakefile
lazier-3.4.0 Rakefile