2 module RequirePathsBuilder
3 def write_require_paths_file_if_needed(spec = @spec, gem_home = @gem_home)
4 return if spec.require_paths == ["lib"] && (spec.bindir.nil? || spec.bindir == "bin")
5 file_name = File.join(gem_home, 'gems', "#{@spec.full_name}", ".require_paths")
7 File.open(file_name, "w") do |file|
8 spec.require_paths.each do |path|
11 file.puts spec.bindir if spec.bindir