Sha256: e499ddeb2ee31a9738bcbeccbc5c9f675e5df105815fc696d03b27fb8998c85b

Contents?: true

Size: 592 Bytes

Versions: 4

Compression:

Stored size: 592 Bytes

Contents

require 'sugarcube'

exclude = [
  'sugarcube-all.rb',
  'sugarcube-common.rb',
  'sugarcube-classic.rb',
  'sugarcube-legacy.rb',
  'sugarcube-uicolor.rb',
  'sugarcube-uiimage.rb',
]

if App.template == :ios
  exclude += [
    'sugarcube-appkit.rb',
  ]
elsif App.template == :osx
  exclude += [
    'sugarcube-568.rb',
    'sugarcube-gestures.rb',
    'sugarcube-modal.rb',
    'sugarcube-uikit.rb',
  ]
end

dirname = File.dirname(__FILE__)
Dir.glob(File.join(dirname, '*.rb')).each do |file|
  filename = File.basename(file)
  unless exclude.include? filename
    require file
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
sugarcube-2.1.0 lib/sugarcube-all.rb
sugarcube-2.0.2 lib/sugarcube-all.rb
sugarcube-2.0.1 lib/sugarcube-all.rb
sugarcube-2.0.0 lib/sugarcube-all.rb