Skip to content

SixArm/sixarm-ruby-gemforge

Repository files navigation

SixArm.com → Ruby →
Gem tools for building our own gems

Introduction

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.

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

About

SixArm.com → Ruby → GemForge scripts for building and publishing our own gems

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published