Permalink
Browse files

explicitly load source files and make seperator os independent

  • Loading branch information...
1 parent 2e97dc2 commit 22036713c917afdd276e0d48ae3285d5dba2d07f @larskuhnt larskuhnt committed Jan 19, 2011
Showing with 42 additions and 5 deletions.
  1. +5 −2 lib/saulabs/gauss.rb
  2. +37 −3 lib/saulabs/trueskill.rb
@@ -1,4 +1,7 @@
# -*- encoding : utf-8 -*-
-Dir.glob("#{File.dirname(__FILE__)}/gauss/**/*.rb").each do |src|
- require src
+%w(
+ distribution
+ truncated_correction
+).each do |name|
+ require File.expand_path(File.join(File.dirname(__FILE__), "gauss", "#{name}.rb"))
end
@@ -1,8 +1,42 @@
# -*- encoding : utf-8 -*-
require 'pp'
-require "#{File.dirname(__FILE__)}/gauss.rb"
+require File.expand_path(File.join(File.dirname(__FILE__), "gauss.rb"))
-Dir.glob("#{File.dirname(__FILE__)}/trueskill/**/*.rb").sort.each do |src|
- require src
+%w(
+ base greater_than
+ likelihood
+ prior
+ weighted_sum
+ within
+).each do |name|
+ require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "factors", "#{name}.rb"))
+end
+
+%w(
+ base
+ iterated_team_performances
+ performances_to_team_performances
+ prior_to_skills
+ skills_to_performances
+ team_difference_comparision
+ team_performance_differences
+).each do |name|
+ require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "layers", "#{name}.rb"))
+end
+
+%w(
+ base
+ loop
+ sequence
+ step
+).each do |name|
+ require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "schedules", "#{name}.rb"))
+end
+
+%w(
+ rating
+ factor_graph
+).each do |name|
+ require File.expand_path(File.join(File.dirname(__FILE__), "trueskill", "#{name}.rb"))
end

0 comments on commit 2203671

Please sign in to comment.