Search code examples
ruby-on-railsrubygemsunpackvendor

Unpacked gem in vendor/gems not in a versioned directory


I unpacked a gem into my vendor/gems directory and tried to run my Rails app.

I got this message:

Unpacked gem in vendor/gems not in a versioned directory

I don't understand this error and judging by the Google search results for this error there are not many people who have experienced this problem.

Could this mean I also need to vendor Rails to use vendor/gems?


Solution

  • You don't need to vendor Rails to use vendor gems.

    Normally gems unpack to a directory called something like vendor/gems/some_gem-1.2.3. Check that all your vendored gem directories follow this pattern (i.e. GEM_NAME-VERSION).