Sha256: bdb388a4fabf95c53a83dc9977e7b5c75694d8d48beee91c28b1f8b26d4615e3
Contents?: true
Size: 629 Bytes
Versions: 2
Compression:
Stored size: 629 Bytes
Contents
# # Script to build a list of dependencies # require 'gloo/core/baseo' require 'gloo/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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
gloo-0.8.0 | lib/dependencies.rb |
gloo-0.7.7 | lib/dependencies.rb |