Sha256: c36a3b02476bf28f45ce4d0d28dfbb75fc65339aadb4d1402f22512742eb3b35

Contents?: true

Size: 710 Bytes

Versions: 24

Compression:

Stored size: 710 Bytes

Contents

require 'sugarcube'

exclude = [
  'sugarcube-all.rb',
  'sugarcube-common.rb',
  'sugarcube-classic.rb',
  'sugarcube-legacy.rb',
  'sugarcube-appkit.rb',  # renamed in 3.0.0 to 'sugarcube-ui'
  'sugarcube-uikit.rb',   # renamed in 3.0.0 to 'sugarcube-ui'
]

if SugarCube.ios?
  exclude += [
  ]
elsif SugarCube.osx?
  exclude += [
    'sugarcube-568.rb',
    'sugarcube-gestures.rb',
    'sugarcube-modal.rb',
  ]
elsif SugarCube.android?
  exclude += [
  ]
end

dirname = File.dirname(__FILE__)
Dir.glob(File.join(dirname, '*.rb')).each do |file|
  filename = File.basename(file)
  unless exclude.include? filename
    begin
      require file
    rescue SugarCube::PlatformException => e
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
sugarcube-3.0.4 lib/sugarcube-all.rb
sugarcube-3.0.3 lib/sugarcube-all.rb
sugarcube-3.0.2 lib/sugarcube-all.rb
sugarcube-3.0.1 lib/sugarcube-all.rb