Sha256: bd6f245d9379f867cb2f11b5a2b9bcbd5ad9d2d7a7d8714d0fffde22e97ded17

Contents?: true

Size: 757 Bytes

Versions: 4

Compression:

Stored size: 757 Bytes

Contents

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

  'sugarcube-568.rb',
  'sugarcube-anonymous.rb',
  'sugarcube-attributedstring.rb',
  'sugarcube-awesome.rb',
  'sugarcube-gestures.rb',
  'sugarcube-pipes.rb',
  'sugarcube-repl.rb',
  'sugarcube-unholy.rb',
]

if App.template == :ios
  exclude += [
    'sugarcube-appkit.rb',
  ]
elsif App.template == :osx
  exclude += [
    '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-classic.rb
sugarcube-2.0.2 lib/sugarcube-classic.rb
sugarcube-2.0.1 lib/sugarcube-classic.rb
sugarcube-2.0.0 lib/sugarcube-classic.rb