Sha256: 72c9351121943b09c0db7cbd08683ab0adbe178747cbcee71fe0b24c455de61a
Contents?: true
Size: 1.3 KB
Versions: 4
Compression:
Stored size: 1.3 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' BW.require 'lib/bubble-wrap/version.rb' BW.require 'motion/util/deprecated.rb' end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
bubble-wrap-1.7.0 | lib/bubble-wrap/loader.rb |
bubble-wrap-1.6.0 | lib/bubble-wrap/loader.rb |
bubble-wrap-1.6.0.rc1 | lib/bubble-wrap/loader.rb |
bubble-wrap-1.5.0 | lib/bubble-wrap/loader.rb |