thoughtbot / shoulda-context

Shoulda Context makes it easy to write understandable and maintainable tests under Minitest and Test::Unit within Rails projects or plain Ruby projects.
MIT License
239 stars 58 forks source link

Permissions error in 1.1.4 #31

Closed edmundhighcock closed 11 years ago

edmundhighcock commented 11 years ago

Dear Developers,

When I install this gem using sudo on Mac OS X, there appears to be a permissions error which prevents the files being read. As you can see from the lines below, the permissions on shoulda/context differ from the permissions on shoulda/version (in the shoulda gem).

$ ls -l /macports/lib/ruby1.9/gems/1.9.1/gems/shoulda-context-1.1.4/lib/shoulda/context.rb -rw----r-- 1 root admin 960 14 Aug 10:01 /macports/lib/ruby1.9/gems/1.9.1/gems/shoulda-context-1.1.4/lib/shoulda/context.rb

$ ls -l /macports/lib/ruby1.9/gems/1.9.1/gems/shoulda-3.5.0/lib/shoulda/version.rb -rw-r--r-- 1 root admin 39 14 Aug 08:44 /macports/lib/ruby1.9/gems/1.9.1/gems/shoulda-3.5.0/lib/shoulda/version.rb

This causes a LoadError when using the gem. I have not encountered this problem in other gems in Mac OS X. I also do not encounter it when installing on Debian.

I am not the only person who has encountered this:

https://teamtreehouse.com/forum/cannot-load-such-file-shouldacontext-loaderror-2

Thanks in advance for your help,

Edmund

PS: Versions:

$ gem -v 1.8.23

$ ruby -v ruby 1.9.3p448 (2013-06-27 revision 41675) [x86_64-darwin12]

travisjeffery commented 11 years ago

I just pushed 1.1.5, try that.

edmundhighcock commented 11 years ago

That is working, thanks very much for the quick response!

All my software requires shoulda: perhaps at some point the requirements for shoulda could be altered so that it requires shoulda-context 1.1.5 or later. At the moment I am adding a specific requirement for shoulda-context >= 1.1.5.

Thanks again for your help,

Edmund