Skip to content

Commit

Permalink
explicitly load source files and make seperator os independent
Browse files Browse the repository at this point in the history
  • Loading branch information
larskuhnt committed Jan 19, 2011
1 parent 2e97dc2 commit 2203671
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 5 deletions.
7 changes: 5 additions & 2 deletions lib/saulabs/gauss.rb
@@ -1,4 +1,7 @@
# -*- encoding : utf-8 -*- # -*- encoding : utf-8 -*-
Dir.glob("#{File.dirname(__FILE__)}/gauss/**/*.rb").each do |src| %w(
require src distribution
truncated_correction
).each do |name|
require File.expand_path(File.join(File.dirname(__FILE__), "gauss", "#{name}.rb"))
end end
40 changes: 37 additions & 3 deletions lib/saulabs/trueskill.rb
@@ -1,8 +1,42 @@
# -*- encoding : utf-8 -*- # -*- encoding : utf-8 -*-
require 'pp' 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| %w(
require src 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 end

0 comments on commit 2203671

Please sign in to comment.