Sha256: 54c8747a71720e5bc10a43c2b6f003165c0a1a281cf520833005aae617ed1514
Contents?: true
Size: 1.22 KB
Versions: 3
Compression:
Stored size: 1.22 KB
Contents
unless defined?(Motion::Project::Config) raise "This file must be required within a RubyMotion project Rakefile." end unless defined?(BubbleWrap::LOADER_PRESENT) require 'bubble-wrap/version' unless defined?(VERSION) if Gem::Version.new(Motion::Version) < Gem::Version.new(BubbleWrap::MIN_MOTION_VERSION) raise "BubbleWrap #{BubbleWrap::VERSION} requires at least RubyMotion #{BubbleWrap::MIN_MOTION_VERSION}" end require 'bubble-wrap/ext' require 'bubble-wrap/requirement' module BubbleWrap LOADER_PRESENT=true module_function def root File.expand_path('../../../', __FILE__) end def require(file_spec, &block) Requirement.scan(caller.first, file_spec, &block) end def require_ios(requirement = nil, &callback) if !Motion::Project::App.osx? callback.call else puts "bubble-wrap/#{requirement} requires iOS to use." if requirement end end def require_osx(requirement = nil, &callback) if Motion::Project::App.osx? callback.call else puts "bubble-wrap/#{requirement} requires OS X to use." if requirement end end end BW = BubbleWrap unless defined?(BW) BW.require 'motion/shortcut.rb' end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
bubble-wrap-1.4.0 | lib/bubble-wrap/loader.rb |
bubble-wrap-1.3.0 | lib/bubble-wrap/loader.rb |
bubble-wrap-1.3.0.osx | lib/bubble-wrap/loader.rb |