Skip to content

Commit 1463d88

Browse files
deivid-rodriguezchadlwilson
authored andcommitted
Fix error requiring bundler/shared_helpers
Currently warbler is unusable from jruby 9.2 during to this require failing (not sure to which extent though, but at least one spec is failing and there's an open issue about this). If we stop monkeypatching bundler, we don't need to require it, and thus the error disappears. Since doing that doesn't make any tests fail, I will assume the problems caused by not monkeypatching bundler are less important than the problems caused by doing it. So, I'm removing the code to fix the issue and get specs green.
1 parent 7f3423d commit 1463d88

1 file changed

Lines changed: 0 additions & 15 deletions

File tree

lib/warbler/templates/bundler.erb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,3 @@ ENV['BUNDLE_WITHOUT'] = '<%= config.bundle_without.join(':') %>'
22
<% if config.bundler[:frozen] -%>
33
ENV['BUNDLE_FROZEN'] = '1'
44
<% end -%>
5-
6-
module Bundler
7-
module Patch
8-
def clean_load_path
9-
# nothing to be done for embedded JRuby
10-
end
11-
end
12-
module SharedHelpers
13-
def included(bundler)
14-
bundler.send :include, Patch
15-
end
16-
end
17-
end
18-
19-
require 'bundler/shared_helpers'

0 commit comments

Comments
 (0)