kastiglione/motion-objc-runtime — pull request #2 by kibiz0r (2012-08-18 20:44:58+00:00)
Title: Clear RUBYOPT when running gen_bridge_metadata so people can use Bundler

Similar to this issue: https://github.com/HipByte/RubyMotion/pull/11

`#{gen_bridge_metadata} #{opts} #{header} > #{BRIDGESUPPORT_FILE}`

needs to be

`RUBYOPT='' #{gen_bridge_metadata} #{opts} #{header} > #{BRIDGESUPPORT_FILE}`

Otherwise, I get

/Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:90:in `materialize': Could not find rake-0.9.2.2 in any of the sources (Bundler::GemNotFound)
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `map!'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/spec_set.rb:83:in `materialize'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/definition.rb:127:in `specs'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/definition.rb:172:in `specs_for'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/definition.rb:161:in `requested_specs'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/environment.rb:23:in `requested_specs'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/runtime.rb:11:in `setup'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler.rb:107:in `setup'
from /Users/kibiyama/.rvm/gems/ruby-1.9.3-p194@global/gems/bundler-1.1.5/lib/bundler/setup.rb:17