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-4.0.0 lib/sugarcube-all.rb
sugarcube-3.5.0 lib/sugarcube-all.rb
sugarcube-3.4.2 lib/sugarcube-all.rb
sugarcube-3.4.1 lib/sugarcube-all.rb
sugarcube-3.4.0 lib/sugarcube-all.rb
sugarcube-3.3.7 lib/sugarcube-all.rb
sugarcube-3.3.6 lib/sugarcube-all.rb
sugarcube-3.3.5 lib/sugarcube-all.rb
sugarcube-3.3.4 lib/sugarcube-all.rb
sugarcube-3.3.3 lib/sugarcube-all.rb
sugarcube-3.3.2 lib/sugarcube-all.rb
sugarcube-3.3.1 lib/sugarcube-all.rb
sugarcube-3.3.0 lib/sugarcube-all.rb
sugarcube-3.2.0 lib/sugarcube-all.rb
sugarcube-3.1.1 lib/sugarcube-all.rb
sugarcube-3.1.0 lib/sugarcube-all.rb
sugarcube-3.0.8 lib/sugarcube-all.rb
sugarcube-3.0.7 lib/sugarcube-all.rb
sugarcube-3.0.6 lib/sugarcube-all.rb
sugarcube-3.0.5 lib/sugarcube-all.rb