Sha256: 2069de0f5b93126dd9f094605e94759a972cb5c02b40ba447fa7372598deac1f

Contents?: true

Size: 684 Bytes

Versions: 23

Compression:

Stored size: 684 Bytes

Contents

require 'sugarcube'

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

  'sugarcube-anonymous.rb',
  'sugarcube-awesome.rb',
  'sugarcube-pipes.rb',
  'sugarcube-unholy.rb',
]

if SugarCube.ios?
  exclude += [
    'sugarcube-appkit.rb',
  ]
elsif SugarCube.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

23 entries across 23 versions & 1 rubygems

Version Path
sugarcube-2.3.0 lib/sugarcube-common.rb
sugarcube-2.2.0 lib/sugarcube-common.rb
sugarcube-2.1.5 lib/sugarcube-common.rb