# ===-- lib/ninja.rb -------------------------------------*- mode: Ruby -*-=== #
#
#                            _____ _       _
#                           |   | |_|___  |_|___
#                           | | | | |   | | | .'|
#                           |_|___|_|_|_|_| |__,|
#                                       |___|
#
#        This file is distributed under the terms described in LICENSE.
#
# ===----------------------------------------------------------------------=== #

module Ninja
  require_relative 'ninja/version'
  require_relative 'ninja/delegator'
  require_relative 'ninja/variable'
  require_relative 'ninja/rule'
  require_relative 'ninja/build'
  require_relative 'ninja/file'
end

# ===-- lib/ninja.rb -------------------------------------*- mode: Ruby -*-=== #
#
#                            _____ _       _
#                           |   | |_|___  |_|___
#                           | | | | |   | | | .'|
#                           |_|___|_|_|_|_| |__,|
#                                       |___|
#
#        This file is distributed under the terms described in LICENSE.
#
# ===----------------------------------------------------------------------=== #

module Ninja
  require 'ninja/version'
  require 'ninja/delegator'
  require 'ninja/variable'
  require 'ninja/rule'
  require 'ninja/build'
  require 'ninja/file'
end

--- 
+++ 
@@ -11,10 +11,10 @@
 # ===----------------------------------------------------------------------=== #
 
 module Ninja
-  require 'ninja/version'
-  require 'ninja/delegator'
-  require 'ninja/variable'
-  require 'ninja/rule'
-  require 'ninja/build'
-  require 'ninja/file'
+  require_relative 'ninja/version'
+  require_relative 'ninja/delegator'
+  require_relative 'ninja/variable'
+  require_relative 'ninja/rule'
+  require_relative 'ninja/build'
+  require_relative 'ninja/file'
 end
Use `require_relative` instead of `require`.

Prevent conflicts, and more importantly, not be dependent on search path.
