tournament 2.3.0 → 2.4.0
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 +3 -0
- data/Manifest.txt +2 -0
- data/Rakefile +1 -1
- data/lib/tournament/pool.rb +51 -31
- data/lib/tournament/possibility.rb +19 -0
- data/webgui/app/controllers/admin_controller.rb +2 -1
- data/webgui/app/controllers/entry_controller.rb +8 -3
- data/webgui/app/controllers/reports_controller.rb +54 -0
- data/webgui/app/models/pool.rb +6 -0
- data/webgui/app/views/admin/recap.html.erb +1 -0
- data/webgui/app/views/pool/index.html.erb +8 -4
- data/webgui/app/views/reports/_leader.html.erb +2 -1
- data/webgui/app/views/reports/_possibility.html.erb +45 -0
- data/webgui/app/views/reports/_report.html.erb +2 -2
- data/webgui/app/views/reports/show.html.erb +6 -0
- data/webgui/app/views/shared/_bracket.html.erb +7 -5
- data/webgui/config/routes.rb +1 -0
- data/webgui/db/development.sqlite3 +0 -0
- data/webgui/db/pool.yml +5756 -399
- data/webgui/db/test.sqlite3 +0 -0
- data/webgui/public/stylesheets/bracket.css +5 -5
- data/webgui/test/functional/admin_controller_test.rb +2 -2
- metadata +4 -2
data/webgui/db/test.sqlite3
CHANGED
Binary file
|
@@ -44,7 +44,7 @@ TABLE.bracket TD.odd
|
|
44
44
|
TABLE.bracket TD.oddChampion
|
45
45
|
{
|
46
46
|
BORDER-BOTTOM: black 3px double;
|
47
|
-
font: bold
|
47
|
+
font: bold 12px "arial";
|
48
48
|
text-align: center;
|
49
49
|
}
|
50
50
|
|
@@ -94,7 +94,7 @@ TABLE.bracket TD.middleRight
|
|
94
94
|
|
95
95
|
.teamname
|
96
96
|
{
|
97
|
-
font-size :
|
97
|
+
font-size : 12px;
|
98
98
|
font-family : Arial, Helvetica, sans-serif;
|
99
99
|
font-weight : bold;
|
100
100
|
cursor: pointer;
|
@@ -102,7 +102,7 @@ TABLE.bracket TD.middleRight
|
|
102
102
|
|
103
103
|
.missedpick
|
104
104
|
{
|
105
|
-
font-size :
|
105
|
+
font-size : 12px;
|
106
106
|
font-family : Arial, Helvetica, sans-serif;
|
107
107
|
font-weight : bold;
|
108
108
|
text-decoration : line-through;
|
@@ -111,7 +111,7 @@ TABLE.bracket TD.middleRight
|
|
111
111
|
|
112
112
|
.correctpick
|
113
113
|
{
|
114
|
-
font-size :
|
114
|
+
font-size : 12px;
|
115
115
|
font-family : Arial, Helvetica, sans-serif;
|
116
116
|
font-weight : bold;
|
117
117
|
color : green;
|
@@ -119,7 +119,7 @@ TABLE.bracket TD.middleRight
|
|
119
119
|
|
120
120
|
.pendingpick
|
121
121
|
{
|
122
|
-
font-size :
|
122
|
+
font-size : 12px;
|
123
123
|
font-family : Arial, Helvetica, sans-serif;
|
124
124
|
color : gray;
|
125
125
|
}
|
@@ -6,12 +6,12 @@ class AdminControllerTest < ActionController::TestCase
|
|
6
6
|
# Replace this with your real tests.
|
7
7
|
test "send recap" do
|
8
8
|
login_as :admin
|
9
|
-
post(:recap, {:subject => 'subject', :content => 'content'})
|
9
|
+
post(:recap, {:subject => 'subject', :content => 'content', :id => 2})
|
10
10
|
assert_response :success
|
11
11
|
assert_equal 1, ActionMailer::Base.deliveries.size, "There should have been an email sent."
|
12
12
|
mail = ActionMailer::Base.deliveries.first
|
13
13
|
assert_equal [ADMIN_EMAIL], mail.to
|
14
|
-
recips =
|
14
|
+
recips = Pool.find(2).entrants.map{|u| u.email}
|
15
15
|
assert_equal recips, mail.bcc
|
16
16
|
assert_equal "[#{TOURNAMENT_TITLE}] subject", mail.subject
|
17
17
|
assert_match /content/, mail.body
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tournament
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Douglas A. Seifert
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-23 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -89,6 +89,7 @@ files:
|
|
89
89
|
- lib/tournament/bracket.rb
|
90
90
|
- lib/tournament/entry.rb
|
91
91
|
- lib/tournament/pool.rb
|
92
|
+
- lib/tournament/possibility.rb
|
92
93
|
- lib/tournament/scoring_strategy.rb
|
93
94
|
- lib/tournament/team.rb
|
94
95
|
- lib/tournament/webgui_installer.rb
|
@@ -152,6 +153,7 @@ files:
|
|
152
153
|
- webgui/app/views/layouts/report.html.erb
|
153
154
|
- webgui/app/views/pool/index.html.erb
|
154
155
|
- webgui/app/views/reports/_leader.html.erb
|
156
|
+
- webgui/app/views/reports/_possibility.html.erb
|
155
157
|
- webgui/app/views/reports/_report.html.erb
|
156
158
|
- webgui/app/views/reports/show.html.erb
|
157
159
|
- webgui/app/views/sessions/new.html.erb
|