wingrunr21 / griddler-mandrill

Mandrill adapter for Griddler
MIT License
16 stars 49 forks source link

Permissions issue? #30

Open scott opened 8 years ago

scott commented 8 years ago

I am not sure if this is related to the gem or not, but I am getting a weird thing where the permissions look like this in the /lib/griddler/mandrill directory:

-rw------- 1 root rvm 2.5K Jan 22 12:17 adapter.rb -rw-r--r-- 1 root rvm 66 Jan 22 12:17 version.rb

This causes problems, because adapter should be the same as version. In fact the strange thing is that on my local env it is in fact this way, but when I deploy on Digital Ocean using their ruby on rails one-click app, it somehow ends up like above.

Everything works fine if I execute chmod +r /usr/local/rvm/gems/ruby-2.2.1/gems/griddler-mandrill-1.1.3/lib/griddler/mandrill/adapter.rb

Any ideas?

wingrunr21 commented 8 years ago

Hey,

I was able to reproduce this. Those are not the permissions of the files in my local repo. I am not seeing this issue when the gem is installed via bundler so I'm guessing it is a rubygems issue. What version are you using?

scott commented 8 years ago

Looks like it is 2.4.6

pads commented 8 years ago

I'm getting the same issue with this environment:

-bash-4.2$ ruby -v
ruby 2.2.4p230 (2015-12-16 revision 53155) [x86_64-linux]
-bash-4.2$ gem -v
2.4.5.1
-bash-4.2$ bundler -v
Bundler version 1.9.6
-bash-4.2$ 

I'm guessing this is not an issue with this gem but I'd like to know if @scott solved this?

Vad1mo commented 7 years ago

same issue here with:

ls -la /usr/local/bundle/gems/griddler-mandrill-1.1.3/lib/griddler/mandrill/adapter.rb
-rw-------    1 root     root          2550 Apr 28 21:01 /usr/local/bundle/gems/griddler-mandrill-1.1.3/lib/griddler/mandrill/adapter.rb

/#  ruby -v
ruby 2.3.3p222 (2016-11-21 revision 56859) [x86_64-linux]
/# gem -v
2.6.10
/# bundler -v
Bundler version 1.14.5

I am using https://hub.docker.com/_/ruby/