# HG changeset patch # User Meredith Howard # Date 1703662740 21600 # Node ID f767f8cd6a9fedbff675011a6e60d02741108edf # Parent ace6b39b2ba721bd344a6257099a9f9e939ea18f add asciidoctor and timetrap stubs diff --git a/.lib/stubs/asciidoctor b/.lib/stubs/asciidoctor new file mode 100755 --- /dev/null +++ b/.lib/stubs/asciidoctor @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu + +install_it() { + [ -w "$(gem env gemdir)" ] || + opt="--user-install" + + gem install -q ${opt:-} asciidoctor + asdf reshim ruby || : +} + +. ~/.lib/sh/stubexec.sh diff --git a/.lib/stubs/timetrap b/.lib/stubs/timetrap new file mode 100755 --- /dev/null +++ b/.lib/stubs/timetrap @@ -0,0 +1,12 @@ +#!/bin/sh +set -eu + +install_it() { + [ -w "$(gem env gemdir)" ] || + opt="--user-install" + + gem install -q ${opt:-} timetrap + asdf reshim ruby || : +} + +. ~/.lib/sh/stubexec.sh