grosser/parallel — Issue #30: Permission denied reading VERSION file, when not using RVM
Author: ami-navon
Created: 2012-03-06 09:09:19+00:00
State: open

When installing the gem NOT using rvm, via:
$ sudo gem install parallel

Then the following file has read permissions only for root user:

* /usr/local/lib/ruby/gems/1.9.1/gems/parallel-0.5.15/lib/../VERSION

As a result 'require "parallel"' fails
The completed stack trace is:

/usr/local/lib/ruby/gems/1.9.1/gems/parallel-0.5.15/lib/parallel.rb:5:in `read': Permission denied - /usr/local/lib/ruby/gems/1.9.1/gems/parallel-0.5.15/lib/../VERSION (Errno::EACCES)
from /usr/local/lib/ruby/gems/1.9.1/gems/parallel-0.5.15/lib/parallel.rb:5:in `'
from /usr/local/lib/ruby/gems/1.9.1/gems/parallel-0.5.15/lib/parallel.rb:4:in `'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:68:in `block (2 levels) in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:66:in `block in require'
from /usr/local/lib/ruby/gems/1.9.1/gems/bundler-1.0.21/lib/bundler/runtime.rb:55:in `each'

The permission of the VERSION file in this case is:

$ ls -la /usr/local/lib/ruby/gems/1.9.1/gems/parallel-0.5.15/lib/../VERSION

-rw------- 1 root root 7 Mar 4 14:06 VERSION

I'd appreciate your assistance in fixing this and bumping the gem version.
Thanks,