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