ENVironment Variables in your RubyMotion Project - ParkinT/RubyMotion_Life GitHub Wiki
ENV Vars in [compiled] RubyMotion Project
This is a question that has come up more than once on the RubyMotion Google Group list. Rod Wilhelmy presented a nice solution here.
The trick involves entries in the Rakefile to load ENV variables into the app's plist.
app.info_plist['ID'] = ENV['ID']
app.info_plist['SECRET'] = ENV['SECRET']
Then access them in your code through the mainBundle:
id = NSBundle.mainBundle.objectForInfoDictionaryKey('ID')