Commit f891dd2
authored
Fix bundler vendoring/caching (sinatra#2144)
When using Bundler's bundle package to vendor/cache gems,
sinatra-contrib and rack-protection gemspecs failed with:
No such file or directory @ rb_sysopen - /path/to/vendor/cache/VERSION
Both gemspecs read the version from a parent VERSION file using
../VERSION. When Bundler copies gems to vendor/cache, the parent
directory structure doesn't exist, so ../VERSION points to a
non-existent file.1 parent 9e5c4ec commit f891dd2
2 files changed
Lines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
| 8 | + | |
9 | 9 | | |
10 | 10 | | |
11 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
4 | 6 | | |
5 | 7 | | |
6 | 8 | | |
| |||
0 commit comments