rubyworks/library — Issue #1: requiring library via library
Author: trans
Created: 2012-01-10 21:09:46+00:00
State: open

This is a bit esoteric but, if one is working on Library project itself such that is it is in the RUBYLIBS paths, requiring library again can cause a stack overflow.

Example of issue:

```
$ gem install library
$ export RUBYOPT="-rubylibs"
$ export RUBYLIBS="~/workspace/library/"
$ irb
$ require 'library'
```

The reason is b/c the first RUBYOPT require is getting it form the gem, but the second is getting it from the workspace project.