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

Support for rubygems 2.2 directory structure #36

Closed
jacknagel opened this issue Apr 18, 2014 · 2 comments
Closed

Support for rubygems 2.2 directory structure #36

jacknagel opened this issue Apr 18, 2014 · 2 comments

Comments

@jacknagel
Copy link

Rubygems 2.2 can share a local gem repository among ruby versions, i.e. instead of something like ruby/2.1.0/gems, one would just have gems, with compiled extensions kept separately and organized by ABI version.

As a more concrete example, on an older project that was created prior to rubygems 2.2, I have:

$ ls -l .bundle
total 8
-rw-r--r--  1 jacknagel  staff   36 Apr 18 09:44 config
drwxr-xr-x  3 jacknagel  staff  102 Mar 18 16:02 ruby

ls -l .bundle/ruby/2.1.0
total 0
drwxr-xr-x  22 jacknagel  staff   748 Apr 16 13:01 bin
drwxr-xr-x  92 jacknagel  staff  3128 Apr 16 12:04 build_info
drwxr-xr-x   3 jacknagel  staff   102 Apr 16 12:56 bundler
drwxr-xr-x  67 jacknagel  staff  2278 Apr 16 12:56 cache
drwxr-xr-x   2 jacknagel  staff    68 Mar 18 16:03 doc
drwxr-xr-x   3 jacknagel  staff   102 Mar 18 16:03 extensions
drwxr-xr-x  66 jacknagel  staff  2244 Apr 16 12:04 gems
drwxr-xr-x  66 jacknagel  staff  2244 Apr 16 12:04 specifications

on a brand new project with rubygems 2.2 installed, I have:

$ ls -l .bundle
total 8
drwxr-xr-x   7 jacknagel  staff  238 Apr 18 10:02 bin
drwxr-xr-x  10 jacknagel  staff  340 Apr 18 10:02 build_info
drwxr-xr-x  10 jacknagel  staff  340 Apr 18 10:02 cache
-rw-r--r--   1 jacknagel  staff   36 Apr 18 10:02 config
drwxr-xr-x   2 jacknagel  staff   68 Apr 18 10:02 doc
drwxr-xr-x   3 jacknagel  staff  102 Apr 18 10:02 extensions
drwxr-xr-x  10 jacknagel  staff  340 Apr 18 10:02 gems
drwxr-xr-x  10 jacknagel  staff  340 Apr 18 10:02 specifications

This doesn't play nicely with vim-bundler's assumptions about the gem repository layout, and as such 'path' isn't set up correctly, etc.

@tpope
Copy link
Owner

tpope commented Apr 18, 2014

At the very least I need info on the structure of compiled gems as well.

@jacknagel
Copy link
Author

Having looked into it further, I think the rubygems 2.2 thing is a red herring. I now think this is a bug in bundler, so I've filed an issue there: rubygems/bundler#2987

Sorry for the noise.

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

2 participants