This commit is contained in:
Executable
+5
@@ -0,0 +1,5 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
bundle install --quiet "$@"
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Usage: script/console
|
||||
# Starts an IRB console with this library loaded.
|
||||
|
||||
gemspec="$(ls *.gemspec | head -1)"
|
||||
|
||||
exec bundle exec irb -r "${gemspec%.*}"
|
||||
|
||||
Executable
+8
@@ -0,0 +1,8 @@
|
||||
#!/usr/bin/env bash
|
||||
# Usage: script/gem
|
||||
# Updates the gemspec and builds a new gem in the pkg directory.
|
||||
|
||||
mkdir -p pkg
|
||||
gem build *.gemspec
|
||||
mv *.gem pkg
|
||||
|
||||
Executable
+16
@@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
# Usage: script/release
|
||||
# Build the package, tag a commit, push it to origin, and then release the
|
||||
# package publicly.
|
||||
|
||||
set -e
|
||||
|
||||
version="$(script/package | grep Version: | awk '{print $2}')"
|
||||
[ -n "$version" ] || exit 1
|
||||
|
||||
git commit --allow-empty -a -m "Release $version"
|
||||
git tag "v$version"
|
||||
git push origin
|
||||
git push origin "v$version"
|
||||
gem push pkg/*-${version}.gem
|
||||
|
||||
Executable
+6
@@ -0,0 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Usage: script/test
|
||||
# Runs the library's test suite.
|
||||
|
||||
script/bootstrap
|
||||
bundle exec rake test
|
||||
Reference in New Issue
Block a user