Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pox_paginate-0.1.1 on rubygems.org is messed up #2

Open
tfe opened this issue Sep 27, 2010 · 7 comments
Open

pox_paginate-0.1.1 on rubygems.org is messed up #2

tfe opened this issue Sep 27, 2010 · 7 comments

Comments

@tfe
Copy link

tfe commented Sep 27, 2010

Just has a bunch of empty files where active_support, active_resource, etc. should be. Did it get messed up in packaging?

@achamian
Copy link
Member

@tfe Does active_support.rb look like http://gist.github.com/600464 ?

@tfe
Copy link
Author

tfe commented Sep 28, 2010

Just looked into it more thoroughly. It seems like it is a permissions issue that causes the files to appear blank for me. When I download the .gem itself from gemcutter and extract it, the files are there. On the installed version of the gem, however, no users have access. Fixing this lets me see the file contents.

HOWEVER, I don't think it's just me. I had a friend try it on their machine and had the exact same behavior. We're both running OS X 10.6 though.

@kaiwren
Copy link
Member

kaiwren commented Oct 10, 2010

That's really odd - I'm running 10.6 myself and I'm able to see all the files. Are you able to see this file under the active_resource directory (just to make sure we're on the same page):
~/.rvm/gems/ruby-1.8.7-p174@pox/gems/pox_paginate-0.1.1/lib/pox_paginate λ ls active_resource ruby-1.8.7-p174@pox
xml_format.rb*

I'm able to see the file and cat its contents too.

@petervandenabeele
Copy link

The problem I found is that:

  • when executing a SYSTEM install (not RVM) file permission in the 0.1.1 gem are incorrect:
    :/opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/pox_paginate-0.1.1/lib/pox_paginate$ ls -ltotal 36
    drwxr-xr-x 2 root root 4096 2011-06-15 17:59 active_resource
    -rwx------ 1 root root  214 2011-06-15 17:59 active_resource.rb
    drwxr-xr-x 2 root root 4096 2011-06-15 17:59 active_support
    -rwx------ 1 root root  245 2011-06-15 17:59 active_support.rb
    -rwx------ 1 root root   81 2011-06-15 17:59 remote_collection.rb
    drwxr-xr-x 2 root root 4096 2011-06-15 17:59 will_paginate
    -rwx------ 1 root root  227 2011-06-15 17:59 will_paginate.rb
    drwxr-xr-x 2 root root 4096 2011-06-15 17:59 xml_mini
    -rwx------ 1 root root  810 2011-06-15 17:59 xml_mini.rb
    
  • when colleagues do an install in rvm, this does not hurt, since the
    owner of the file is the user himzelf, so the problem is masked
  • I fixed it locally with:
    cd  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/pox_paginate-0.1.1
    sudo find . -type d -exec chmod a+rx {} \;
    sudo find . -type f -exec chmod a+r {} \;
    

@achamian
Copy link
Member

I'll try to bundle the gem again to see if it solves the problem, though last time it didn't help.

@petervandenabeele
Copy link

Thanks.

I need to correct my previous posting of 2011-06-16.
Before the { and } in the 'find' command a back slash is needed,
but this probably got eaten by the comment module.

Trying again:

cd  /opt/ruby-enterprise-1.8.7-2010.01/lib/ruby/gems/1.8/gems/pox_paginate-0.1.1
sudo find . -type d -exec chmod a+rx \{\} \;
sudo find . -type f -exec chmod a+r \{\} \;

@achamian
Copy link
Member

@petervandenabeele I have released a new gem version 0.2.3 which works with rails 3.0.x.

I'll look into rails 2.3.x branch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants