Sha256: eb64414b134bdea35d07890375a100350f58411fc61b453b4c8c86f5e486673e

Contents?: true

Size: 856 Bytes

Versions: 4

Compression:

Stored size: 856 Bytes

Contents

# rubocop:disable Style/SymbolArray
# rubocop:disable Style/HashSyntax

require 'bundler/gem_tasks'

task :validate_gemspec do
  Bundler.load_gemspec('git-branch--stray.gemspec').validate
end

task :version => :validate_gemspec do
  puts Git::Branch::Stray.version
end

require 'rubocop/rake_task'

RuboCop::RakeTask.new(:rubocop)

require 'rake/testtask'

Rake::TestTask.new(:test) do |t|
  t.libs << 'test'
  t.libs << 'lib'
  t.test_files = FileList['test/**/*_test.rb']
end

task :default => [:version, :rubocop, :test]

task :documentation

task :ready => :documentation do
  sh('bundle --quiet') # regenerate Gemfile.lock e.g. if version has changed
  sh('git diff-index --quiet HEAD --') # https://stackoverflow.com/a/2659808
end

Rake::Task['build'].enhance([:default, :ready])

# rubocop:enable Style/HashSyntax
# rubocop:enable Style/SymbolArray

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
git-branch--stray-2.0.0 Rakefile
git-branch--stray-1.8.0 Rakefile
git-branch--stray-1.7.0 Rakefile
git-branch--stray-1.6.0 Rakefile