-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Bundler fails if polyglot is loaded before it #287
Comments
This bug was introduced in closing #270 |
John's right: if I do 'bundle exec "cucumber"' it runs without a hitch. Running ruby 1.9.1p376, compiled from source. |
On the docs site, at http://gembundler.com/rails3.html, it says:
Running cucumber without That said, I'm fixing Bundler so it will still function even after polyglot has made Kernel#require public. |
Check for env.rb via ENV_LOADED instead of respond_to?(:require) The rubygem 'polyglot', which is depended on by Cucumber via Treetop, This commit implements a workaround for that particular issue, with Closed by 3e796f8 |
The rubygem 'polyglot', which is depended on by Cucumber via Treetop, redefines the Kernel#require method, making it public instead of private. This is pretty horrible. Libraries should not break the behaviour of the stdlib. :( This commit implements a workaround for that particular issue, with a test that does the same thing polyglot does. Closes rubygems#287
When running from cucumber eg rake cucumber you the stack trace at the bottom
This occurs because polyglot is being loaded by cucumber before budler is loaded
this started with the following commit
http://github.com/carlhuda/bundler/commit/0753a247d516346c8a0804915267f9fa93d692db#L0R95
The problem is polyglot defines a require on Object so the if returns false
A quick hack is to use
The text was updated successfully, but these errors were encountered: