Sha256: e0e8614cfae2f4808fc0db445c96114d59a835dca625d721f1738b4170bb7e76
Contents?: true
Size: 846 Bytes
Versions: 6
Compression:
Stored size: 846 Bytes
Contents
# rubocop:disable Style/SymbolArray # rubocop:disable Style/HashSyntax require 'bundler/gem_tasks' task :validate_gemspec do Bundler.load_gemspec('git-switcher.gemspec').validate end task :version => :validate_gemspec do puts Git::Switcher.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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
git-switcher-1.1.0 | Rakefile |
git-switcher-1.0.7 | Rakefile |
git-switcher-1.0.6 | Rakefile |
git-switcher-1.0.5 | Rakefile |
git-switcher-1.0.4 | Rakefile |
git-switcher-1.0.3 | Rakefile |