- Doc: http://sixarm.com/sixarm_ruby_gemforge
- Gem: http://rubygems.org/gems/sixarm_ruby_
- Repo: http://github.com/sixarm/sixarm_ruby_gemforge
These require scripts in sixarm_ruby_gem_scripts.
You can customize these however you like for your own systems.
For docs go to http://sixarm.com/sixarm_ruby_gemforge
Want to help? We're happy to get pull requests.
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
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