Sha256: d2753caf6c87e2334897675ac0e4c469d9e0ceecadff72f13e8c7bbbada1a441

Contents?: true

Size: 637 Bytes

Versions: 571

Compression:

Stored size: 637 Bytes

Contents

#!/bin/bash --login
export rvmsudo_secure_path=1
rvmsudo gem update --system

cat Gemfile | awk '{print $2}' | grep -E "^'.+$" | grep -v -e rubygems.org | while read gem; do 
  this_gem=`echo $gem | sed "s/'//g" | sed 's/\,//g'`
  latest_version=`gem search -r $this_gem | grep -E "^${this_gem}\s.+$" | awk '{print $2}' | sed 's/(//g' | sed 's/)//g' | sed 's/,//g'`
  echo "${this_gem} => $latest_version"
  if [[ $this_gem == 'bundler' ]]; then
    sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '>=${latest_version}'/g" Gemfile
  else
    sed -i "s/^gem '${this_gem}'.*$/gem '${this_gem}', '${latest_version}'/g" Gemfile
  fi
done

Version data entries

571 entries across 571 versions & 1 rubygems

Version Path
pwn-0.4.681 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.680 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.679 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.678 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.677 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.676 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.675 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.673 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.672 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.671 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.670 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.669 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.668 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.667 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.666 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.665 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.664 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.663 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.662 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.661 find_latest_gem_versions_per_Gemfile.sh