I have a tiny, plain (i.e. non-Rails) Ruby project that I'm trying to get to work with the addressable
gem. Here's what happens:
$ ruby -r rubygems sign.rb
sign.rb:5:in `require': cannot load such file -- addressable (LoadError)
from sign.rb:5:in `<main>'
This is the Gemfile
:
source "http://rubygems.org"
gem "addressable", "~> 2.3.2"
This is sign.rb
:
#!/usr/bin/env ruby
require "rubygems"
require "bundler/setup"
require "addressable"
That's all there is to it. Why doesn't it want to use the gem?