Sha256: d2753caf6c87e2334897675ac0e4c469d9e0ceecadff72f13e8c7bbbada1a441

Contents?: true

Size: 637 Bytes

Versions: 570

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

570 entries across 570 versions & 1 rubygems

Version Path
pwn-0.4.700 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.699 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.698 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.697 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.696 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.695 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.694 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.693 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.692 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.691 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.690 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.689 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.688 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.687 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.686 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.685 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.684 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.683 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.682 find_latest_gem_versions_per_Gemfile.sh
pwn-0.4.681 find_latest_gem_versions_per_Gemfile.sh