twitter/twitter-text-rb — Issue #16: No read access to gem installing via sudo
Author: brightchimp
Created: 2011-11-16 20:09:59+00:00
State: open

Installing this gem via sudo give root user read access to the files.

Install gem:

sudo gem install 'twitter-text' --version 1.4.13

Start irb

require 'rubygems'
require 'twitter-text'
=> LoadError: no such file to load -- twitter-text

All files in /usr/lib/ruby/gems/1.8/gems/twitter-text-1.4.13/lib permissions of 660 (rw-rw----). I needed to manually add read permissions for non-root users to all files in the lib directory.