https://github.com/sixarm/sixarm-ruby-gemforge
SixArm.com → Ruby → GemForge scripts for building and publishing our own gems
https://github.com/sixarm/sixarm-ruby-gemforge
gem gemforge ruby
Last synced: about 2 months ago
JSON representation
SixArm.com → Ruby → GemForge scripts for building and publishing our own gems
- Host: GitHub
- URL: https://github.com/sixarm/sixarm-ruby-gemforge
- Owner: SixArm
- License: other
- Created: 2011-01-12T10:48:52.000Z (over 15 years ago)
- Default Branch: main
- Last Pushed: 2023-09-15T19:24:58.000Z (almost 3 years ago)
- Last Synced: 2025-02-06T00:27:07.655Z (over 1 year ago)
- Topics: gem, gemforge, ruby
- Language: Shell
- Homepage: http://sixarm.com
- Size: 150 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGES.md
- Contributing: CONTRIBUTING.md
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
- Codeowners: CODEOWNERS
Awesome Lists containing this project
README
# SixArm.com → Ruby →
Gem tools for building our own gems
* Doc:
* Gem:
* Repo:
## Introduction
These require scripts in sixarm_ruby_gem_scripts.
You can customize these however you like for your own systems.
For docs go to
Want to help? We're happy to get pull requests.
## Examples
To find directories that contain typical gemspec files:
find */*gemspec -exec dirname {} \;
To change into each directory, then run a command, such as echo:
find */*gemspec -exec dirname {} \; |
while read dir; do
pushd $dir > /dev/null
echo "=== $dir ==="
popd > /dev/null
done
To update each directory:
find */*gemspec -exec dirname {} \; |
while read dir; do
pushd $dir > /dev/null
echo "=== $dir ==="
git pull --rebase=preserve
git push
popd > /dev/null
done
To update the README and publish it:
find */*gemspec -exec dirname {} \; |
while read dir; do
pushd $dir > /dev/null
git pull --rebase=preserve
gemforge-update-readme
git add README.md
git commit -m "Update README"
git push
echo "The script is in $dir"
popd > /dev/null
done
## Archive examples
To fix permissions:
for x in .bundle .git .github coverage doc lib test; do
find $x -type d -exec chmod 755 {} \;
find $x -type f -exec chmod 644 {} \;
done
g a .bundle .git .github coverage doc lib test
g cm "Fix permissions" .bundle .git .github coverage doc lib test
To drop Coveralls:
x=".coveralls.yml"; g rm -rf $x; rm -rf $x; g a $x
x="bin/stubs/coveralls"; g rm -rf $x; rm -rf $x; g a $x
x="bin/coveralls"; g rm -rf $x; rm -rf $x; g a $x
gsed -i '/.*coveralls.*/d' *gemspec; g a *gemspec
g cm "Drop Coveralls" .coveralls.yml bin/stubs/coveralls bin/coveralls *gemspec