carlhuda/bundler — pull request #2215 by banyan (2012-12-17 16:57:34+00:00)
Title: fix to not generate unnecessary dir

I have found the bug my own PR (https://github.com/carlhuda/bundler/pull/2201).
It creates `foo-rails/lib/foo-rails` empty directory which doesn't need anymore.

This PR fixes from:
```
foo-rails
├── Gemfile
├── LICENSE.txt
├── README.md
├── Rakefile
├── foo-rails.gemspec
├── lib
│ ├── foo
│ │ ├── rails
│ │ │ └── version.rb
│ │ └── rails.rb
│ └── foo-rails
└── spec
├── foo
│ └── rails_spec.rb
└── spec_helper.rb
```

to:
```
foo-rails
├── Gemfile
├── LICENSE.txt
├── README.md
├── Rakefile
├── foo-rails.gemspec
├── lib
│ └── foo
│ ├── rails
│ │ └── version.rb
│ └── rails.rb
└── spec
├── foo
│ └── rails_spec.rb
└── spec_helper.rb
```

it works with not namespaced library as well:
```
foo_rails
├── Gemfile
├── LICENSE.txt
├── README.md
├── Rakefile
├── foo_rails.gemspec
├── lib
│ ├── foo_rails
│ │ └── version.rb
│ └── foo_rails.rb
└── spec
├── foo_rails_spec.rb
└── spec_helper.rb
```