Run into this issue while try to test the gem and the service in a couple of projects:
~/open-cage-test/vendor/ruby/2.1.0/gems/opencage-geocoder-0.1.0/lib/opencage/geocoder.rb:1:in `require_relative': cannot load such file -- ~/open-cage-test/vendor/ruby/2.1.0/gems/opencage-geocoder-0.1.0/lib/opencage/geocoder/location (LoadError)
from ~/open-cage-test/vendor/ruby/2.1.0/gems/opencage-geocoder-0.1.0/lib/opencage/geocoder.rb:1:in `<top (required)>'
from hi.rb:2:in `require'
from hi.rb:2:in `<main>'
I followed the usage instructions from the readme. I had gem 'opencage-geocoder' in the Gemfile && i require it like this require 'opencage/geocoder'
I also found out that if you tell bundle to install the gem with the :github, :path option the gem works correctly and you don't run into this problem.
Run into this issue while try to test the gem and the service in a couple of projects:
I followed the usage instructions from the readme. I had
gem 'opencage-geocoder'
in theGemfile
&& i require it like thisrequire 'opencage/geocoder'
I also found out that if you tell bundle to install the gem with the
:github
,:path
option the gem works correctly and you don't run into this problem.