Show Ruby/Gem version in repository on GitHub organization
Murahashi [Matt] Kenichi
Posted on December 10, 2019
TL;DR
Clone repositories and check them on your local machine.
shallow clone into ~/tmp/packsaddle20191210
mkdir -p ~/tmp/packsaddle20191210
cd ~/tmp/packsaddle20191210
github-repos -org packsaddle -z | xargs -0 -P4 -I {} git clone {} --depth 1
https://github.com/sanemat/go-githubrepos
Git clone repositories in a GitHub organization
check Ruby version
for dir in */; do (cd $dir; git grep -n -E "^[ ]{3}ruby 2" -- Gemfile.lock| tr -s '\n' '\0' | xargs -0 -I {} printf "$(basename $(pwd))/{}\n") done
// or
for dir in */; do (cd $dir; grep -nH -E "^[ ]{3}ruby 2.*$" -- Gemfile.lock| tr -s '\n' '\0' | xargs -0 -I {} printf "$(basename $(pwd))/{}\n") done
check gem version, e.g. rails
for dir in */; do (cd $dir; git grep -n -E "^[ ]{4}rails " -- Gemfile.lock| tr -s '\n' '\0' | xargs -0 -I {} printf "$(basename $(pwd))/{}\n") done
// or
for dir in */; do (cd $dir; grep -nH -E "^[ ]{4}rails .*$" -- Gemfile.lock| tr -s '\n' '\0' | xargs -0 -I {} printf "$(basename $(pwd))/{}\n") done
For example
ruby-cron_for_github-app/Gemfile.lock:14: rake (0.9.2.2)
ruby-saddler/Gemfile.lock:24: rake (13.0.1)
💖 💪 🙅 🚩
Murahashi [Matt] Kenichi
Posted on December 10, 2019
Join Our Newsletter. No Spam, Only the good stuff.
Sign up to receive the latest update from our blog.