A title for your blog

Ruby version in Bundler

One of the things I always forget to do when I do a Ruby upgrade is update the Ruby version in the Gemfile. Here’s a one liner that means I’ll never have to worry about it again. Put this at the top of your Gemfile.

ruby File.read(".ruby-version").strip

#ruby #snippets