tournament 3.3.0 → 3.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/History.txt CHANGED
@@ -1,3 +1,6 @@
1
+ == 3.3.1 / 2009-03-16
2
+ * Emergency bug fix.
3
+
1
4
  == 3.3.0 / 2009-03-16
2
5
  * Final 2010 bracket.
3
6
  * Fix permissions issue making tournament bracket seem editable to all.
data/lib/tournament.rb CHANGED
@@ -7,7 +7,7 @@ unless defined? Tournament
7
7
  module Tournament
8
8
 
9
9
  # :stopdoc:
10
- VERSION = '3.3.0'
10
+ VERSION = '3.3.1'
11
11
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
12
12
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
13
13
  # :startdoc:
@@ -46,8 +46,8 @@
46
46
  s2 = 0 - (e2.tie_breaker - pool.tournament_entry.tie_breaker).abs
47
47
  end
48
48
  if s1 == s2
49
- s1 = e1.max_score
50
- s2 = e2.max_score
49
+ s1 = e1.picks.maximum_score(pool.tournament_entry.picks, pool.scoring_strategy)
50
+ s2 = e2.picks.maximum_score(pool.tournament_entry.picks, pool.scoring_strategy)
51
51
  end
52
52
  s2 <=> s1
53
53
  end.inject(nil) do |last_entry, entry|
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 3
8
- - 0
9
- version: 3.3.0
8
+ - 1
9
+ version: 3.3.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Douglas A. Seifert