rubymotion-community / BubbleWrap

Cocoa wrappers and helpers for RubyMotion (Ruby for iOS and OS X) - Making Cocoa APIs more Ruby like, one API at a time. Fork away and send your pull requests
Other
1.18k stars 208 forks source link

location class / loading error #423

Closed logicminds closed 9 years ago

logicminds commented 9 years ago

RM 2.35 BW = (using latest from master)

Gemfile

gem 'bubble-wrap', :git => 'https://github.com/rubymotion/BubbleWrap.git'

Continue to get errors that the location class is not found:

BW::Location.enabled? 
 => #<NameError: uninitialized constant BubbleWrap::Location>

What would cause this to not load?

markrickert commented 9 years ago

try requiring the location module:

gem 'bubble-wrap', :git => 'https://github.com/rubymotion/BubbleWrap.git', :require => ['bubble-wrap/location']

and make sure you have this in your rakefile:

begin
  require 'bundler'
  Bundler.require
rescue LoadError
end

Feel free to reopen the issue if that doesn't fix your problem.