Project

aufgaben

0.0
No release in over 3 years
Low commit activity in last 3 years
Aufgaben provides a collection of practical Rake tasks for automation.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Development

 Project Readme

Gem Version

Aufgaben

The collection of useful Rake tasks.

Installation

Add this line to your Gemfile:

gem "aufgaben", require: false

Usage

Releasing

Put the following code to your Rakefile:

require "aufgaben/release"
Aufgaben::Release.new

The default settings:

Aufgaben::Release.new do |t|
  t.default_branch = "main"
  t.dry_run = false
  t.changelog = "CHANGELOG.md"
  t.files = []
  t.new_version = nil # from the CLI argument
end

The following is a customization example:

Aufgaben::Release.new(:my_release_task_name, depends: [:test]) do |t|
  t.default_branch = "development"
  t.changelog = "changes.md"
  t.files = FileList["lib/version.rb", "lib/**/ver.rb"]
end

And then execute:

$ rake release'[1.2.3]'

Or in dry-run mode:

$ rake release'[1.2.3]' DRY_RUN=1

By default, the release task is executed in interactive mode. If you want to disable the interactive mode, run as follow:

$ rake release'[1.2.3]' NONINTERACTIVE=1

Bumping up Ruby

Configure your Rakefile as follows:

require "aufgaben/bump/ruby"
Aufgaben::Bump::Ruby.new do |t|
  t.files << "my-ruby-version-file" # defaults to [".ruby-version", "Dockerfile"]
end

And then execute:

$ rake bump:ruby'[2.6.5]' [DRY_RUN=1]

Also, you can customize the task name or dependencies as follows:

require "aufgaben/bump/ruby"
Aufgaben::Bump::Ruby.new(:ruby_files, :update, dependes: [:test])
# Invoke the `test` task before
$ rake update:ruby_files'[2.7.2]'

Bumping up Node.js

Configure your Rakefile as follows:

require "aufgaben/bump/nodejs"
Aufgaben::Bump::Nodejs.new do |t|
  t.files << "Dockerfile.production" # defaults to ["Dockerfile"]
  t.version_files << "nodejs-version.txt" # defaults to [".node-version", ".nvmrc"]
end

And then execute:

$ rake bump:nodejs'[12.16.1]' [DRY_RUN=1]

Development

To set up:

bin/setup

To run an interactive prompt:

bin/console

To release:

Run manually on the Release workflow.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/ybiquitous/aufgaben.