upgradinate_script.rb
helper = UpgradinateFileHelper.new 'OLD NESS', 'NEW-NESS'
helper.upgradinate_files [
"/path/to/project/Gemfile"
]
Gemfile
# NEW-NESS gem 'awesome_thing_to_put_in'
gem 'deprecated_badness' # OLD NESS
Usage
ruby upgradinate_script.rb
NOTE:
- You may need to update grep to use '--exclude-dir'
- Make sure upgradinate_script.rb is executable
# Mac OSX
brew install xz #required for installing grep through homebrew
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/grep.rb