tournament 3.0.1 → 3.0.2

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.0.2 / 2009-03-11
2
+ * Fix bug caused by change in semantics of Array#to_s in ruby 1.9.1
3
+
1
4
  == 3.0.1 / 2009-03-10
2
5
  * Fix bug with relative_url_root in pool initializer.
3
6
  * git housekeeping, add .gitignore
data/README.rdoc CHANGED
@@ -1,7 +1,8 @@
1
1
  tournament
2
2
  by Douglas A. Seifert (doug+rubyforge at dseifert dot net)
3
3
  http://www.dseifert.net/code/tournament
4
- http://tournament.rubyforge.org/
4
+ http://github.org/seifertd/tournament
5
+ http://rubygems.org/gems/tournament
5
6
 
6
7
  == DESCRIPTION:
7
8
 
@@ -307,13 +308,13 @@ from played to unknown outcome.
307
308
 
308
309
  == REQUIREMENTS:
309
310
 
310
- * main (2.8.0)
311
+ * main (4.2.0)
311
312
 
312
313
  == WEB GUI REQUIREMENTS:
313
314
 
314
- * rails (2.2.2)
315
- * rake (0.8.3)
316
- * sqlite3-ruby (1.2.4)
315
+ * rails (2.3.5)
316
+ * rake (0.8.7)
317
+ * sqlite3-ruby (1.2.5)
317
318
 
318
319
  == SHOES GUI REQUIREMENTS:
319
320
 
data/lib/tournament.rb CHANGED
@@ -7,7 +7,7 @@ unless defined? Tournament
7
7
  module Tournament
8
8
 
9
9
  # :stopdoc:
10
- VERSION = '3.0.1'
10
+ VERSION = '3.0.2'
11
11
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
12
12
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
13
13
  # :startdoc:
@@ -10,14 +10,15 @@ class TeamsController < ApplicationController
10
10
  region_hash = params[:region0] || params[:region1] || params[:region2] || params[:region3]
11
11
  name_like = region_hash[:seedings][0][:name]
12
12
  @teams_like = Team.find(:all, :conditions => ['name like ?', "#{name_like}%"], :order => 'name asc')
13
- render :inline => "<%= content_tag(:ul, @teams_like.map{|t| content_tag(:li, h(t.name), :short => t.short_name)}) %>"
13
+ logger.debug("auto_complte_for_team_name got teams: #{@teams_like.inspect}")
14
+ render :inline => "<%= content_tag(:ul, @teams_like.map{|t| content_tag(:li, h(t.name), :short => t.short_name)}.join(' ')) %>"
14
15
  end
15
16
 
16
17
  def auto_complete_for_short_name
17
18
  region_hash = params[:region0] || params[:region1] || params[:region2] || params[:region3]
18
19
  name_like = region_hash[:seedings][0][:short_name]
19
20
  @teams_like = Team.find(:all, :conditions => ['short_name like ?', "#{name_like}%"], :order => 'short_name asc')
20
- render :inline => "<%= content_tag(:ul, @teams_like.map{|t| content_tag(:li, h(t.short_name), :name => t.name)}) %>"
21
+ render :inline => "<%= content_tag(:ul, @teams_like.map{|t| content_tag(:li, h(t.short_name), :name => t.name)}.join(' ')) %>"
21
22
  end
22
23
 
23
24
  def change
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 3
7
7
  - 0
8
- - 1
9
- version: 3.0.1
8
+ - 2
9
+ version: 3.0.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Douglas A. Seifert