pepijn / omni_kassa

Easier Rabobank OmniKassa payments
MIT License
9 stars 7 forks source link

Gem::Package::PathError: installing into parent path /Users/pepijn/Code/omni_kassa/Gemfile is not allowed #5

Closed tombruijn closed 10 years ago

tombruijn commented 10 years ago

I just tried to install this gem in a Rails 4.1.1 project using bundler under Ruby 2.1.2 on OSX 10.9: gem "omni_kassa", "~> 1.4" => bundle install

and got the following error:

Gem::Package::PathError: installing into parent path /Users/pepijn/Code/omni_kassa/Gemfile of /Users/tom/.gem/ruby/2.1.2/gems/omni_kassa-1.4.2 is not allowed
An error occurred while installing omni_kassa (1.4.2), and Bundler cannot continue.
Make sure that `gem install omni_kassa -v '1.4.2'` succeeds before bundling.

/Users/pepijn/Code/omni_kassa/Gemfile seems to be a hardcoded path, but it is specified no where in the gem code. I've tried installing it with ruby-1.9.3-p545 and ruby-2.0.0-p451 as well, no luck.

It a bit of an odd problem. That would mean almost no one would be able to install it. Colleagues of mine can't install it either so, it seems to be the case? I've tried it using bundler and just with gem install omni_kassa, but neither method works.

Only thing I can imagine is that when releasing the gem it somehow pushed the full local paths of @pepijn rather than relative paths.

I cloned the repo and pointed to the local version: gem "omni_kassa", path: "/Users/tom/projects/omni_kassa", then it works fine, but that's no real solution.

pepijn commented 10 years ago

Wow, that is really weird. I see the absolute paths in the gem metadata too... Thanks for reporting, the fix is on its way :-)

pepijn commented 10 years ago

Fixed! Check out v1.4.4

Thanks again.

tombruijn commented 10 years ago

Thanks for the quick fix!