OpenCageData / ruby-opencage-geocoder

Ruby client for the OpenCage geocoding API
https://opencagedata.com/tutorials/geocode-in-ruby
MIT License
14 stars 11 forks source link

The gem does not include all the gems that requires once being installed #3

Closed xrx closed 6 years ago

xrx commented 9 years ago

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.

mtmail commented 6 years ago

Closing. PR was merged ages ago.