Skip to content
This repository has been archived by the owner on Sep 18, 2021. It is now read-only.

twitter-text-1.5.0 permission is 640 #81

Closed
hsbt opened this issue Jan 12, 2013 · 2 comments
Closed

twitter-text-1.5.0 permission is 640 #81

hsbt opened this issue Jan 12, 2013 · 2 comments

Comments

@hsbt
Copy link

hsbt commented Jan 12, 2013

twitter-text-1.5.0 is not allowed to read for other owner. it's following situation.

% gem install twitter-text
% gem unpack twitter-text
% cd twitter-text-1.5.0/lib
% ls -l
drwxr-xr-x 10 hsbt wheel 340  1 12 22:01 twitter-text
-rw-r-----  1 hsbt wheel 564  1 12 22:01 twitter-text.rb
% ls -l twitter-text
-rw-r----- 1 hsbt wheel 22215  1 12 22:01 autolink.rb
-rw-r----- 1 hsbt wheel   447  1 12 22:01 deprecation.rb
-rw-r----- 1 hsbt wheel 12488  1 12 22:01 extractor.rb
-rw-r----- 1 hsbt wheel  2784  1 12 22:01 hit_highlighter.rb
-rw-r----- 1 hsbt wheel 17123  1 12 22:01 regex.rb
-rw-r----- 1 hsbt wheel  1941  1 12 22:01 rewriter.rb
-rw-r----- 1 hsbt wheel   916  1 12 22:01 unicode.rb
-rw-r----- 1 hsbt wheel  4614  1 12 22:01 validation.rb

For example, application user installed twitter-text, but apache2 user used twitter-text. it happend LoadError.

Please adding to other users reading permission and bump version 1.5.1.

Thanks.

@jlxw
Copy link

jlxw commented Feb 13, 2013

Yes the gem is only readable by the owner of the file so if the ruby process is not root or user that installed the gem, the gem will not load. This needs to be fixed by the person pushing the gem to rubygems, permission needs to be changes to world-readable and gem re-pushed.

The workaround I am using is to use the github version of the gem in my Gemfile:

gem 'twitter-text', github: 'twitter/twitter-text-rb'

@hsbt
Copy link
Author

hsbt commented Mar 3, 2013

I confirmed to solved this issue on twitter-text-1.6.0, Thank you so much :octocat:

@hsbt hsbt closed this as completed Mar 3, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants