Sha256: 61d77983835557995e8bcc4e60872425f29b9502a0c5d8a5987e2b8aaf56f76c

Contents?: true

Size: 658 Bytes

Versions: 10

Compression:

Stored size: 658 Bytes

Contents

def kookaburra_require_glob(path_glob)
  Dir.glob(path_glob).each do |file|
    require file
  end
end

def kookaburra_require_all_relative_to(base_path, *relative_path_array)
  path = File.join(base_path, *relative_path_array.flatten)
  kookaburra_require_glob File.join(path, '*.rb')
end

# Require specific paths from the bottom up.  Hooray for dependency graphs!
base = File.dirname(__FILE__)
kookaburra_require_all_relative_to base, %w[kookaburra ui_driver mixins]
kookaburra_require_all_relative_to base, %w[kookaburra ui_driver]
kookaburra_require_all_relative_to base, %w[kookaburra test_data]
kookaburra_require_all_relative_to base, %w[kookaburra]

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
kookaburra-0.5.1 lib/requires.rb
kookaburra-0.5.0 lib/requires.rb
kookaburra-0.4.0 lib/requires.rb
kookaburra-0.3.1 lib/requires.rb
kookaburra-0.3.0 lib/requires.rb
kookaburra-0.2.0 lib/requires.rb
kookaburra-0.1.1 lib/requires.rb
kookaburra-0.1.0 lib/requires.rb
kookaburra-0.0.3 lib/requires.rb
kookaburra-0.0.2 lib/requires.rb