-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6145aae
commit a965578
Showing
5 changed files
with
37 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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%.*}" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
# Usage: script/test | ||
# Runs the library's test suite. | ||
|
||
bundle exec rake test |