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.5.235 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.234 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.233 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.232 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.231 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.230 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.229 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.228 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.227 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.226 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.225 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.224 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.223 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.222 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.221 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.220 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.219 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.217 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.216 find_latest_gem_versions_per_Gemfile.sh
pwn-0.5.215 find_latest_gem_versions_per_Gemfile.sh