Sha256: f55d146a06cb02e4b0800225da50b4f6a051b38cc133e488d311885772ae6888
Contents?: true
Size: 947 Bytes
Versions: 1
Compression:
Stored size: 947 Bytes
Contents
# frozen_string_literal: true require "bundler/gem_tasks" require "rake/testtask" require "rubocop/rake_task" require_relative "lib/brew_lib" Rake::TestTask.new(:test) do |t| t.libs << "test" t.libs << "lib" t.test_files = FileList["test/**/test_*.rb"] end RuboCop::RakeTask.new def version `git describe --tags --abbrev=0`.chomp end desc "Create a new release and push [patch|minor|major], default is patch" task bump: [:test] do |_, args| part = args.to_a.fetch(0, "patch") sh "{ git add -A && git commit --quiet -m 'bump #{part}' >/dev/null && gem bump --silent --quiet --tag --push --release && gh release create #{version} --generate-notes; } || true" end task default: %i[test rubocop] desc "Show tasks in current Rakefile, to see descriptions rake -T or rake -D" task :tasks do sh "rake", "--tasks" end desc "Install new version of gem after publish to rubygems" task :instal do sh "rake", "--tasks" end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
brew_lib-0.1.10 | Rakefile |