An open API service indexing awesome lists of open source software.

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

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