Be explicit in what we accept as options
Fix typo in rake task description

Closes #1595.
PERFORMANCE: bundle exec shouldn't run Bundler.setup just setting the right rubyopts options is enough

This makes bundle exec rake environment of this
https://gist.github.com/d61b87f53277efd6079e Gemfile, 17% faster
Merge pull request #1598 from spastorino/1-1-stable

bundle exec shouldn't run Bundler.setup just setting the correct rubyopts options is enough
Use the same ruby to run subprocesses as is running rake.

For implementations like Rubinius that can run from a source directory without
installing and which do not overwrite gem binary wrappers in system
directories, it is possible to invoke the Rakefile with eg 'rbx -S rake spec'
while the system Ruby is on PATH as 'ruby' and 'gem'. This results in the
system Ruby running the rake subprocesses instead of Rubinius as intended.

These changes use Gem.ruby, which returns the path to the Ruby implementation
running rake and use -S to search for the gem bin wrapper on PATH. Rubinius
prepends distinguished directories when processing -S so that gems installed
into Rubinius are found first.

The explicit requiring of rubygems may be controversial. Evan said it was ok
but the rest of the changes stand on their own if it's desirable to remove the
require.
Fix typo in installer error message
Merge pull request #1630 from invisiblefunnel/master

Typo fix in installer error message
Merge pull request #1625 from brixen/ruby-independent

Use the same ruby to run subprocesses as is running rake.
Add Bundler::GemHelper.gemspec.

This method provides a way to access the Gem::Specification object
generated from the gemspec file from within a Rakefile generated by
`bundle gem'.

You can keep DRY by using it to pull in attributes like `test_files',
`extra_rdoc_files' and `extensions' for building tasks like `test',
`rdoc' and `compile', respectively.
Add specs for Bundler::GemHelper#install and Bundler::GemHelper.gemspec.
Reduce invocation of `git ls-files`.

This also removes shell brace expasion which is a ksh/bash extension
that does not work with POSIX sh.
Merge pull request #1637 from knu/gemspec_from_rakefile

Add Bundler::GemHelper.gemspec.
Avoid passing RUBYOPT changes in with_clean_env block.

Restoring the original ENV generally restored the RUBYOPT changes, but certain
use cases leak through. This commit ensures that the ENV is truely clean by
always checking for RUBYOPT changes and zapping them if they do exist.

This commit fixes #1604 (second attempt)
Add simple cache to Bundler.load_gemspec

In some projects, for example those with 10s of local gemspecs, use of
`git ls-files` for spec.files, or specs requiring significant source
to get at a spec.version; this change to cache load_gemspec results in
notable performance gains.

The cache also avoids loading these same gemspecs repeatedly with
different LOAD_PATH values.
Merge pull request #1638 from knu/fix_brace_expansion

Reduce invocation of `git ls-files` and remove ksh/bash-ism.
Fixed deprecation warnings in `bundle viz`

Newer versions of ruby-graphviz also warn about nil options.
So I decided to clear out the :label option if it's nil.
fix warning of variable shadowing
Merge pull request #1658 from koraktor/fix-viz-deprecation-notices

Fixed deprecation warnings in `bundle viz`
Merge pull request #1660 from vijaydev/fix_path_warn

Fixes warning of variable shadowing
Added graceful handling of Gemfile syntax errors

See issue #1527 for the initial request.