Sha256: abcd695c6892ca103cebb17232085282dce89147d2a1da8270354ac2f3b4fef3
Contents?: true
Size: 643 Bytes
Versions: 25
Compression:
Stored size: 643 Bytes
Contents
# # Script to build a list of dependencies # # require 'gloo_lang/core/baseo' # require 'gloo_lang/core/obj' path = File.dirname( File.absolute_path( __FILE__ ) ) files = [] # # We want to start with these to avoid dependency errors later on. # files << File.join( path, 'gloo', 'core', 'baseo.rb' ) files << File.join( path, 'gloo', 'core', 'obj.rb' ) root = File.join( path, 'gloo', '**/*.rb' ) Dir.glob( root ).each do |ruby_file| files << ruby_file unless files.include?( ruby_file ) end # # Now that we have the first with some key dependencies # at the top, we'll require them. # files.each do |ruby_file| require ruby_file end
Version data entries
25 entries across 25 versions & 1 rubygems