tournament 1.1.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +15 -0
- data/Manifest.txt +241 -2
- data/README.txt +152 -12
- data/Rakefile +9 -6
- data/bin/benchmark_pool +0 -0
- data/bin/gui.rb +3 -1
- data/bin/picker +0 -0
- data/bin/pool +139 -15
- data/lib/tournament/bracket.rb +33 -50
- data/lib/tournament/entry.rb +3 -0
- data/lib/tournament/pool.rb +144 -93
- data/lib/tournament/scoring_strategy.rb +69 -0
- data/lib/tournament/webgui_installer.rb +109 -0
- data/tasks/ann.rake +19 -14
- data/tasks/bones.rake +6 -25
- data/tasks/gem.rake +46 -36
- data/tasks/git.rake +41 -0
- data/tasks/jamis.rb +589 -0
- data/tasks/notes.rake +28 -0
- data/tasks/post_load.rake +18 -11
- data/tasks/{doc.rake → rdoc.rake} +12 -9
- data/tasks/rubyforge.rake +12 -12
- data/tasks/setup.rb +121 -80
- data/tasks/spec.rake +12 -13
- data/tasks/svn.rake +15 -11
- data/tasks/test.rake +6 -6
- data/test/test_tournament.rb +8 -0
- data/test/test_webgui_installer.rb +64 -0
- data/webgui/README +256 -0
- data/webgui/Rakefile +10 -0
- data/webgui/app/controllers/admin_controller.rb +61 -0
- data/webgui/app/controllers/application.rb +25 -0
- data/webgui/app/controllers/entry_controller.rb +97 -0
- data/webgui/app/controllers/pool_controller.rb +4 -0
- data/webgui/app/controllers/reports_controller.rb +7 -0
- data/webgui/app/controllers/sessions_controller.rb +43 -0
- data/webgui/app/controllers/teams_controller.rb +75 -0
- data/webgui/app/controllers/users_controller.rb +57 -0
- data/webgui/app/helpers/admin_helper.rb +2 -0
- data/webgui/app/helpers/application_helper.rb +3 -0
- data/webgui/app/helpers/entry_helper.rb +2 -0
- data/webgui/app/helpers/pool_helper.rb +2 -0
- data/webgui/app/helpers/reports_helper.rb +2 -0
- data/webgui/app/helpers/sessions_helper.rb +2 -0
- data/webgui/app/helpers/teams_helper.rb +2 -0
- data/webgui/app/helpers/users_helper.rb +93 -0
- data/webgui/app/models/entry.rb +42 -0
- data/webgui/app/models/pool.rb +141 -0
- data/webgui/app/models/region.rb +3 -0
- data/webgui/app/models/role.rb +4 -0
- data/webgui/app/models/seeding.rb +4 -0
- data/webgui/app/models/team.rb +6 -0
- data/webgui/app/models/user.rb +98 -0
- data/webgui/app/models/user_mailer.rb +25 -0
- data/webgui/app/views/admin/bracket.html.erb +3 -0
- data/webgui/app/views/admin/entries.html.erb +25 -0
- data/webgui/app/views/admin/index.html.erb +17 -0
- data/webgui/app/views/admin/pool.html.erb +53 -0
- data/webgui/app/views/entry/index.html.erb +16 -0
- data/webgui/app/views/entry/print.erb +1 -0
- data/webgui/app/views/entry/print.html.erb +1 -0
- data/webgui/app/views/entry/show.html.erb +1 -0
- data/webgui/app/views/layouts/bracket.html.erb +37 -0
- data/webgui/app/views/layouts/default.html.erb +62 -0
- data/webgui/app/views/layouts/print.html.erb +12 -0
- data/webgui/app/views/layouts/report.html.erb +38 -0
- data/webgui/app/views/pool/index.html.erb +36 -0
- data/webgui/app/views/reports/_report.html.erb +11 -0
- data/webgui/app/views/reports/show.html.erb +12 -0
- data/webgui/app/views/sessions/new.html.erb +21 -0
- data/webgui/app/views/shared/_admins.html.erb +8 -0
- data/webgui/app/views/shared/_bracket.html.erb +1296 -0
- data/webgui/app/views/teams/choose.html.erb +57 -0
- data/webgui/app/views/user_mailer/activation.erb +3 -0
- data/webgui/app/views/user_mailer/signup_notification.erb +8 -0
- data/webgui/app/views/users/_user_bar.html.erb +8 -0
- data/webgui/app/views/users/new.html.erb +19 -0
- data/webgui/config/boot.rb +109 -0
- data/webgui/config/database.yml +22 -0
- data/webgui/config/environment.rb +78 -0
- data/webgui/config/environments/development.rb +29 -0
- data/webgui/config/environments/production.rb +24 -0
- data/webgui/config/environments/test.rb +22 -0
- data/webgui/config/initializers/inflections.rb +10 -0
- data/webgui/config/initializers/mime_types.rb +5 -0
- data/webgui/config/initializers/new_rails_defaults.rb +17 -0
- data/webgui/config/initializers/pool.rb +33 -0
- data/webgui/config/initializers/site_keys.rb +38 -0
- data/webgui/config/locales/en.yml +5 -0
- data/webgui/config/routes.rb +56 -0
- data/webgui/db/development.sqlite3 +0 -0
- data/webgui/db/migrate/20090216015836_create_entries.rb +13 -0
- data/webgui/db/migrate/20090217001611_add_tie_break_to_entry.rb +9 -0
- data/webgui/db/migrate/20090217004039_create_users.rb +23 -0
- data/webgui/db/migrate/20090217014940_relate_entry_and_user.rb +10 -0
- data/webgui/db/migrate/20090218024350_create_roles.rb +17 -0
- data/webgui/db/migrate/20090218024657_add_postition_to_roles.rb +9 -0
- data/webgui/db/migrate/20090218025240_add_admin_role.rb +10 -0
- data/webgui/db/migrate/20090225022928_create_pools.rb +16 -0
- data/webgui/db/migrate/20090225030346_associate_pool_and_entry.rb +9 -0
- data/webgui/db/migrate/20090225072358_change_pool_data_column.rb +9 -0
- data/webgui/db/migrate/20090225072849_add_completed_to_entries.rb +9 -0
- data/webgui/db/migrate/20090225074149_add_pool_id_index_to_entries.rb +9 -0
- data/webgui/db/migrate/20090225084414_add_user_id_to_pool.rb +9 -0
- data/webgui/db/migrate/20090226021913_add_active_to_pools.rb +9 -0
- data/webgui/db/migrate/20090226142240_rename_bracket_column_to_data.rb +9 -0
- data/webgui/db/migrate/20090301014710_create_teams.rb +84 -0
- data/webgui/db/migrate/20090301025902_add_more_teams.rb +16 -0
- data/webgui/db/migrate/20090301041526_create_seedings.rb +16 -0
- data/webgui/db/migrate/20090301090511_create_regions.rb +14 -0
- data/webgui/db/migrate/teams.txt +347 -0
- data/webgui/db/pool.yml +408 -0
- data/webgui/db/schema.rb +91 -0
- data/webgui/db/test.sqlite3 +0 -0
- data/webgui/doc/README_FOR_APP +5 -0
- data/webgui/lib/authenticated_system.rb +189 -0
- data/webgui/lib/authenticated_test_helper.rb +11 -0
- data/webgui/lib/form_object.rb +70 -0
- data/webgui/lib/pdf_helper.rb +47 -0
- data/webgui/lib/prince.rb +74 -0
- data/webgui/lib/saves_picks.rb +23 -0
- data/webgui/lib/tasks/admin.rake +10 -0
- data/webgui/public/404.html +30 -0
- data/webgui/public/422.html +30 -0
- data/webgui/public/500.html +33 -0
- data/webgui/public/dispatch.cgi +10 -0
- data/webgui/public/dispatch.fcgi +24 -0
- data/webgui/public/dispatch.rb +10 -0
- data/webgui/public/favicon.ico +0 -0
- data/webgui/public/images/2009FinalFour.png +0 -0
- data/webgui/public/images/rails.png +0 -0
- data/webgui/public/javascripts/application.js +2 -0
- data/webgui/public/javascripts/bracket.js +73 -0
- data/webgui/public/javascripts/controls.js +963 -0
- data/webgui/public/javascripts/dragdrop.js +973 -0
- data/webgui/public/javascripts/effects.js +1128 -0
- data/webgui/public/javascripts/prototype.js +4320 -0
- data/webgui/public/robots.txt +5 -0
- data/webgui/public/stylesheets/bracket-print.css +39 -0
- data/webgui/public/stylesheets/bracket.css +125 -0
- data/webgui/public/stylesheets/main.css +144 -0
- data/webgui/public/stylesheets/prince.css +6 -0
- data/webgui/public/stylesheets/prince_landscape.css +1 -0
- data/webgui/script/about +4 -0
- data/webgui/script/console +3 -0
- data/webgui/script/dbconsole +3 -0
- data/webgui/script/destroy +3 -0
- data/webgui/script/generate +3 -0
- data/webgui/script/performance/benchmarker +3 -0
- data/webgui/script/performance/profiler +3 -0
- data/webgui/script/performance/request +3 -0
- data/webgui/script/plugin +3 -0
- data/webgui/script/process/inspector +3 -0
- data/webgui/script/process/reaper +3 -0
- data/webgui/script/process/spawner +3 -0
- data/webgui/script/runner +3 -0
- data/webgui/script/server +3 -0
- data/webgui/test/fixtures/entries.yml +10 -0
- data/webgui/test/fixtures/pools.yml +14 -0
- data/webgui/test/fixtures/regions.yml +11 -0
- data/webgui/test/fixtures/roles.yml +11 -0
- data/webgui/test/fixtures/roles_users.yml +3 -0
- data/webgui/test/fixtures/seedings.yml +12 -0
- data/webgui/test/fixtures/teams.yml +3051 -0
- data/webgui/test/fixtures/users.yml +44 -0
- data/webgui/test/functional/admin_controller_test.rb +8 -0
- data/webgui/test/functional/entry_controller_test.rb +27 -0
- data/webgui/test/functional/pool_controller_test.rb +8 -0
- data/webgui/test/functional/reports_controller_test.rb +8 -0
- data/webgui/test/functional/sessions_controller_test.rb +82 -0
- data/webgui/test/functional/teams_controller_test.rb +216 -0
- data/webgui/test/functional/users_controller_test.rb +88 -0
- data/webgui/test/performance/browsing_test.rb +9 -0
- data/webgui/test/test_helper.rb +38 -0
- data/webgui/test/unit/entry_test.rb +8 -0
- data/webgui/test/unit/pool_test.rb +8 -0
- data/webgui/test/unit/region_test.rb +8 -0
- data/webgui/test/unit/role_test.rb +8 -0
- data/webgui/test/unit/seeding_test.rb +8 -0
- data/webgui/test/unit/team_test.rb +10 -0
- data/webgui/test/unit/user_mailer_test.rb +31 -0
- data/webgui/test/unit/user_test.rb +109 -0
- data/webgui/vendor/plugins/auto_complete/README +23 -0
- data/webgui/vendor/plugins/auto_complete/Rakefile +22 -0
- data/webgui/vendor/plugins/auto_complete/init.rb +2 -0
- data/webgui/vendor/plugins/auto_complete/lib/auto_complete.rb +47 -0
- data/webgui/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +143 -0
- data/webgui/vendor/plugins/auto_complete/test/auto_complete_test.rb +67 -0
- data/webgui/vendor/plugins/enumerations_mixin/ATTENTION +15 -0
- data/webgui/vendor/plugins/enumerations_mixin/LICENSE +20 -0
- data/webgui/vendor/plugins/enumerations_mixin/README_ENUMERATIONS +163 -0
- data/webgui/vendor/plugins/enumerations_mixin/init.rb +21 -0
- data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/acts/enumerated.rb +177 -0
- data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb +60 -0
- data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb +68 -0
- data/webgui/vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb +76 -0
- data/webgui/vendor/plugins/restful_authentication/.gitignore +21 -0
- data/webgui/vendor/plugins/restful_authentication/CHANGELOG +68 -0
- data/webgui/vendor/plugins/restful_authentication/README.textile +224 -0
- data/webgui/vendor/plugins/restful_authentication/Rakefile +32 -0
- data/webgui/vendor/plugins/restful_authentication/TODO +15 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/USAGE +1 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/authenticated_generator.rb +478 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/lib/insert_routes.rb +54 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/_model_partial.html.erb +8 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/activation.erb +3 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_system.rb +189 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_test_helper.rb +22 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/controller.rb +43 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/helper.rb +2 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/login.html.erb +16 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/mailer.rb +25 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/migration.rb +26 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model.rb +83 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_controller.rb +85 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper.rb +93 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper_spec.rb +158 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb +11 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup.html.erb +19 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup_notification.erb +8 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/site_keys.rb +38 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/access_control_spec.rb +90 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb +102 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb +139 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/users_controller_spec.rb +198 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/fixtures/users.yml +60 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/helpers/users_helper_spec.rb +141 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/models/user_spec.rb +290 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb +22 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories_helper.rb +81 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_navigation_steps.rb +49 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_resource_steps.rb +179 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_response_steps.rb +171 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/user_steps.rb +153 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/accounts.story +186 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/sessions.story +134 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/functional_test.rb +82 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb +31 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/model_functional_test.rb +93 -0
- data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/unit_test.rb +164 -0
- data/webgui/vendor/plugins/restful_authentication/init.rb +1 -0
- data/webgui/vendor/plugins/restful_authentication/install.rb +1 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authentication/by_cookie_token.rb +82 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authentication/by_password.rb +64 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authentication.rb +40 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authorization/aasm_roles.rb +63 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb +62 -0
- data/webgui/vendor/plugins/restful_authentication/lib/authorization.rb +14 -0
- data/webgui/vendor/plugins/restful_authentication/lib/trustification/email_validation.rb +20 -0
- data/webgui/vendor/plugins/restful_authentication/lib/trustification.rb +14 -0
- data/webgui/vendor/plugins/restful_authentication/notes/AccessControl.txt +2 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Authentication.txt +5 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Authorization.txt +154 -0
- data/webgui/vendor/plugins/restful_authentication/notes/RailsPlugins.txt +78 -0
- data/webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.graffle +0 -0
- data/webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.png +0 -0
- data/webgui/vendor/plugins/restful_authentication/notes/SecurityPatterns.txt +163 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Tradeoffs.txt +126 -0
- data/webgui/vendor/plugins/restful_authentication/notes/Trustification.txt +49 -0
- data/webgui/vendor/plugins/restful_authentication/rails/init.rb +3 -0
- data/webgui/vendor/plugins/restful_authentication/restful-authentication.gemspec +33 -0
- data/webgui/vendor/plugins/restful_authentication/tasks/auth.rake +33 -0
- metadata +288 -8
- data/tasks/annotations.rake +0 -22
@@ -0,0 +1,16 @@
|
|
1
|
+
class CreatePools < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :pools do |t|
|
4
|
+
t.string :name, :null => false
|
5
|
+
t.text :data
|
6
|
+
t.boolean :started, :null => false, :default => false
|
7
|
+
t.datetime :starts_at
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.down
|
14
|
+
drop_table :pools
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,84 @@
|
|
1
|
+
class CreateTeams < ActiveRecord::Migration
|
2
|
+
class Team < ActiveRecord::Base; end
|
3
|
+
def self.up
|
4
|
+
create_table :teams do |t|
|
5
|
+
t.string :name
|
6
|
+
t.string :short_name
|
7
|
+
|
8
|
+
t.timestamps
|
9
|
+
end
|
10
|
+
|
11
|
+
[
|
12
|
+
['North Carolina', 'UNC', 1],
|
13
|
+
['Mt. St. Mary\'s', 'MSM', 16],
|
14
|
+
['Indiana', 'Ind', 8],
|
15
|
+
['Arkansas', 'Ark', 9],
|
16
|
+
['Notre Dame', 'ND', 5],
|
17
|
+
['George Mason', 'GM', 12],
|
18
|
+
['Washington St.', 'WSt', 4],
|
19
|
+
['Winthrop', 'Win', 13],
|
20
|
+
['Oklahoma', 'Okl', 6],
|
21
|
+
['St. Joseph\'s', 'StJ', 11],
|
22
|
+
['Louisville', 'Lou', 3],
|
23
|
+
['Boise St.', 'BSt', 14],
|
24
|
+
['Butler', 'But', 7],
|
25
|
+
['South Alabama', 'SAl', 10],
|
26
|
+
['Tennessee', 'Ten', 2],
|
27
|
+
['American', 'Am', 15],
|
28
|
+
['Kansas', 'Kan', 1],
|
29
|
+
['Portland St.', 'PSt', 16],
|
30
|
+
['UNLV', 'ULV', 8],
|
31
|
+
['Kent St.', 'KSt', 9],
|
32
|
+
['Clemson', 'Clm', 5],
|
33
|
+
['Villanova', 'Vil', 12],
|
34
|
+
['Vanderbilt', 'Van', 4],
|
35
|
+
['Siena', 'Sie', 13],
|
36
|
+
['USC', 'USC', 6],
|
37
|
+
['Kansas St.', 'KSU', 11],
|
38
|
+
['Wisconsin', 'Wis', 3],
|
39
|
+
['CSU Fullerton', 'CSF', 14],
|
40
|
+
['Gonzaga', 'Gon', 7],
|
41
|
+
['Davidson', 'Dav', 10],
|
42
|
+
['Georgetown', 'GT', 2],
|
43
|
+
['UMBC', 'UBC', 15],
|
44
|
+
['Memphis', 'Mem', 1],
|
45
|
+
['TX Arlington', 'TxA', 16],
|
46
|
+
['Mississippi St.', 'MiS', 8],
|
47
|
+
['Oregon', 'Ore', 9],
|
48
|
+
['Michigan St.', 'MSU', 5],
|
49
|
+
['Temple', 'Tem', 12],
|
50
|
+
['Pittsburgh', 'Pit', 4],
|
51
|
+
['Oral Roberts', 'ORo', 13],
|
52
|
+
['Marquette', 'Mar', 6],
|
53
|
+
['Kentucky', 'Ken', 11],
|
54
|
+
['Stanford', 'Sta', 3],
|
55
|
+
['Cornell', 'Cor', 14],
|
56
|
+
['Miami (FL)', 'Mia', 7],
|
57
|
+
['St. Mary\'s', 'StM', 10],
|
58
|
+
['Texas', 'Tex', 2],
|
59
|
+
['Austin Peay', 'APe', 15],
|
60
|
+
['UCLA', 'ULA', 1],
|
61
|
+
['Mis. Valley St', 'MVS', 16],
|
62
|
+
['BYU', 'BYU', 8],
|
63
|
+
['Texas A&M', 'A&M', 9],
|
64
|
+
['Drake', 'Dra', 5],
|
65
|
+
['W. Kentucky', 'WKy', 12],
|
66
|
+
['Connecticut', 'Con', 4],
|
67
|
+
['San Diego', 'SD', 13],
|
68
|
+
['Purdue', 'Pur', 6],
|
69
|
+
['Baylor', 'Bay', 11],
|
70
|
+
['Xavier', 'Xav', 3],
|
71
|
+
['Georgia', 'UG', 14],
|
72
|
+
['West Virginia', 'WVa', 7],
|
73
|
+
['Arizona', 'UA', 10],
|
74
|
+
['Duke', 'Duk', 2],
|
75
|
+
['Belmont', 'Bel', 15]
|
76
|
+
].each do |name, short_name, x|
|
77
|
+
Team.create(:name => name, :short_name => short_name)
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
def self.down
|
82
|
+
drop_table :teams
|
83
|
+
end
|
84
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class AddMoreTeams < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
f = File.join(RAILS_ROOT, 'db', 'migrate', 'teams.txt')
|
4
|
+
File.open(f) do |tf|
|
5
|
+
while line = tf.gets
|
6
|
+
line.chomp!
|
7
|
+
name, short_name = line.split(', ')
|
8
|
+
Team.create(:name => name, :short_name => short_name)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.down
|
14
|
+
# Not reversible
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
class CreateSeedings < ActiveRecord::Migration
|
2
|
+
def self.up
|
3
|
+
create_table :seedings do |t|
|
4
|
+
t.integer :pool_id
|
5
|
+
t.integer :team_id
|
6
|
+
t.string :region
|
7
|
+
t.integer :seed
|
8
|
+
|
9
|
+
t.timestamps
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def self.down
|
14
|
+
drop_table :seedings
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,347 @@
|
|
1
|
+
Air Force, AF
|
2
|
+
Akron, Akr
|
3
|
+
Alabama, Ala
|
4
|
+
Alabama A&M, A&M
|
5
|
+
Alabama State, ASt
|
6
|
+
Albany, Alb
|
7
|
+
Alcorn State, Alc
|
8
|
+
American University, Am
|
9
|
+
Appalachian State, ApS
|
10
|
+
Arizona, UA
|
11
|
+
Arizona State, ASU
|
12
|
+
Arkansas, Ark
|
13
|
+
Arkansas State, AkS
|
14
|
+
Arkansas-Little Rock, ALR
|
15
|
+
Arkansas-Pine Bluff, APB
|
16
|
+
Army, Arm
|
17
|
+
Auburn, Aub
|
18
|
+
Austin Peay, APe
|
19
|
+
Ball State, BaS
|
20
|
+
Baylor, Bay
|
21
|
+
Belmont, Bel
|
22
|
+
Bethune-Cookman, BCk
|
23
|
+
Binghamton, Bin
|
24
|
+
Boise State, BSt
|
25
|
+
Boston College, BC
|
26
|
+
Boston University, BU
|
27
|
+
Bowling Green, BG
|
28
|
+
Bradley, Bra
|
29
|
+
Brigham Young, BYU
|
30
|
+
Brown, Bwn
|
31
|
+
Bryant University, Bry
|
32
|
+
Bucknell, Buk
|
33
|
+
Buffalo, Buf
|
34
|
+
Butler, But
|
35
|
+
Cal Poly, CPy
|
36
|
+
Cal State Bakersfield, CSB
|
37
|
+
Cal State Fullerton, CSF
|
38
|
+
Cal State Northridge, CSN
|
39
|
+
California, Cal
|
40
|
+
Campbell, Cmb
|
41
|
+
Canisius, Can
|
42
|
+
Centenary, Cen
|
43
|
+
Central Arkansas, CAr
|
44
|
+
Central Connecticut State, CCS
|
45
|
+
Central Michigan, CMU
|
46
|
+
Charleston, Ctn
|
47
|
+
Charleston Southern, CSo
|
48
|
+
Charlotte, Cha
|
49
|
+
Chattanooga, Cht
|
50
|
+
Chicago State, ChS
|
51
|
+
Cincinnati, Cin
|
52
|
+
Citadel, Cit
|
53
|
+
Clemson, Clm
|
54
|
+
Cleveland State, ClS
|
55
|
+
Coastal Carolina, CCa
|
56
|
+
Colgate, Cgt
|
57
|
+
Colorado, Col
|
58
|
+
Colorado State, CoS
|
59
|
+
Columbia, Cmb
|
60
|
+
Connecticut, Con
|
61
|
+
Coppin State, Cpn
|
62
|
+
Cornell, Cor
|
63
|
+
Creighton, Cgh
|
64
|
+
Dartmouth, Drt
|
65
|
+
Davidson, Dav
|
66
|
+
Dayton, Day
|
67
|
+
Delaware, Del
|
68
|
+
Delaware State, DSt
|
69
|
+
Denver, Den
|
70
|
+
DePaul, DPl
|
71
|
+
Detroit, Det
|
72
|
+
Drake, Dra
|
73
|
+
Drexel, Drx
|
74
|
+
Duke, Duk
|
75
|
+
Duquesne, Duq
|
76
|
+
East Carolina, ECa
|
77
|
+
East Tennessee State, ETS
|
78
|
+
Eastern Illinois, EIl
|
79
|
+
Eastern Kentucky, EKy
|
80
|
+
Eastern Michigan, EMU
|
81
|
+
Eastern Washington, EWa
|
82
|
+
Elon, Eln
|
83
|
+
Evansville, Evn
|
84
|
+
Fairfield, Frf
|
85
|
+
Fairleigh Dickinson, FDk
|
86
|
+
Florida, Fla
|
87
|
+
Florida A&M, FAM
|
88
|
+
Florida Atlantic, FAt
|
89
|
+
Florida Gulf Coast, FGC
|
90
|
+
Florida International, FIn
|
91
|
+
Florida State, FSU
|
92
|
+
Fordham, Fdm
|
93
|
+
Fresno State, FSt
|
94
|
+
Furman, Fur
|
95
|
+
Gardner-Webb, G-W
|
96
|
+
George Mason, GM
|
97
|
+
George Washington, GWa
|
98
|
+
Georgetown, GT
|
99
|
+
Georgia, UG
|
100
|
+
Georgia Southern, GSo
|
101
|
+
Georgia State, GSt
|
102
|
+
Georgia Tech, GTc
|
103
|
+
Gonzaga, Gon
|
104
|
+
Grambling State, GrS
|
105
|
+
Green Bay, GBy
|
106
|
+
Hampton, Ham
|
107
|
+
Hartford, Hrt
|
108
|
+
Harvard, Hvd
|
109
|
+
Hawaii, Haw
|
110
|
+
High Point, HiP
|
111
|
+
Hofstra, Hof
|
112
|
+
Holy Cross, HCr
|
113
|
+
Houston, Hou
|
114
|
+
Houston Baptist, HBa
|
115
|
+
Howard, How
|
116
|
+
Idaho, Ida
|
117
|
+
Idaho State, ISt
|
118
|
+
Illinois, Il
|
119
|
+
Illinois State, IlS
|
120
|
+
Illinois-Chicago, IlC
|
121
|
+
Indiana, Ind
|
122
|
+
Indiana State, InS
|
123
|
+
Iona, Ina
|
124
|
+
Iowa, Iwa
|
125
|
+
Iowa State, ISt
|
126
|
+
IPFW, IPF
|
127
|
+
IUPUI, IUP
|
128
|
+
Jackson State, JSt
|
129
|
+
Jacksonville, Jck
|
130
|
+
Jacksonville State, JkS
|
131
|
+
James Madison, JmM
|
132
|
+
Kansas, Kan
|
133
|
+
Kansas State, KSU
|
134
|
+
Kennesaw State, KnS
|
135
|
+
Kent State, KSt
|
136
|
+
Kentucky, Ken
|
137
|
+
La Salle, LSa
|
138
|
+
Lafayette, Laf
|
139
|
+
Lamar, Lam
|
140
|
+
Lehigh, Leh
|
141
|
+
Liberty, Lib
|
142
|
+
Lipscomb, Lip
|
143
|
+
Long Beach State, LBS
|
144
|
+
Long Island, LI
|
145
|
+
Longwood, Lgw
|
146
|
+
Louisiana Tech, LaT
|
147
|
+
Louisiana-Lafayette, LaL
|
148
|
+
Louisiana-Monroe, LaM
|
149
|
+
Louisville, Lou
|
150
|
+
Loyola (IL), LIL
|
151
|
+
Loyola (MD), LMD
|
152
|
+
Loyola Marymount, Loy
|
153
|
+
LSU, LSU
|
154
|
+
Maine, Mne
|
155
|
+
Manhattan, Man
|
156
|
+
Marist, Mst
|
157
|
+
Marquette, Mar
|
158
|
+
Marshall, Msh
|
159
|
+
Maryland, Mry
|
160
|
+
Maryland-Eastern Shore, MES
|
161
|
+
Massachusetts, Mas
|
162
|
+
McNeese State, McN
|
163
|
+
Memphis, Mem
|
164
|
+
Mercer, Mer
|
165
|
+
Miami (FL), Mia
|
166
|
+
Miami (OH), MOH
|
167
|
+
Michigan, UM
|
168
|
+
Michigan State, MSU
|
169
|
+
Middle Tennessee State, MTS
|
170
|
+
Milwaukee, Mil
|
171
|
+
Minnesota, Min
|
172
|
+
Mississippi, Mis
|
173
|
+
Mississippi State, MiS
|
174
|
+
Mississippi Valley State, MVS
|
175
|
+
Missouri, Msr
|
176
|
+
Missouri State, MsS
|
177
|
+
Monmouth, Mnm
|
178
|
+
Montana, Mon
|
179
|
+
Montana State, MoS
|
180
|
+
Morehead State, MrS
|
181
|
+
Morgan State, MgS
|
182
|
+
Mount St. Mary's, MSM
|
183
|
+
Murray State, Mur
|
184
|
+
N.J.I.T., NJI
|
185
|
+
Navy, Nvy
|
186
|
+
Nebraska, Neb
|
187
|
+
Nevada, Nev
|
188
|
+
New Hampshire, NHa
|
189
|
+
New Mexico, NMx
|
190
|
+
New Mexico State, NMS
|
191
|
+
New Orleans, NOr
|
192
|
+
Niagara, Nia
|
193
|
+
Nicholls State, Nic
|
194
|
+
Norfolk State, Nfk
|
195
|
+
North Carolina, UNC
|
196
|
+
North Carolina A&T, NC&
|
197
|
+
North Carolina Central, NCC
|
198
|
+
North Carolina State, NCS
|
199
|
+
North Carolina-Asheville, NCA
|
200
|
+
North Carolina-Wilmington, NCW
|
201
|
+
North Dakota, NDk
|
202
|
+
North Dakota State, NDS
|
203
|
+
North Florida, NFl
|
204
|
+
North Texas, NTx
|
205
|
+
Northeastern, Nea
|
206
|
+
Northern Arizona, NAr
|
207
|
+
Northern Colorado, NCo
|
208
|
+
Northern Illinois, NIl
|
209
|
+
Northern Iowa, NIo
|
210
|
+
Northwestern, NW
|
211
|
+
Northwestern State, NWS
|
212
|
+
Notre Dame, ND
|
213
|
+
Oakland, Oak
|
214
|
+
Ohio, Ohi
|
215
|
+
Ohio State, OSU
|
216
|
+
Oklahoma, Okl
|
217
|
+
Oklahoma State, OkS
|
218
|
+
Old Dominion, OD
|
219
|
+
Oral Roberts, ORo
|
220
|
+
Oregon, Ore
|
221
|
+
Oregon State, OrS
|
222
|
+
Pacific, Pac
|
223
|
+
Penn State, PSU
|
224
|
+
Pennsylvania, Pen
|
225
|
+
Pepperdine, Pep
|
226
|
+
Pittsburgh, Pit
|
227
|
+
Portland, Por
|
228
|
+
Portland State, PSt
|
229
|
+
Prairie View A&M, PV&
|
230
|
+
Presbyterian, Pby
|
231
|
+
Princeton, Pri
|
232
|
+
Providence, Pro
|
233
|
+
Purdue, Pur
|
234
|
+
Quinnipiac, Qui
|
235
|
+
Radford, Rad
|
236
|
+
Rhode Island, RI
|
237
|
+
Rice, Ric
|
238
|
+
Richmond, Rch
|
239
|
+
Rider, Rid
|
240
|
+
Robert Morris, RbM
|
241
|
+
Rutgers, R
|
242
|
+
Sacramento State, SSt
|
243
|
+
Sacred Heart, ScH
|
244
|
+
Saint Joseph's, StJ
|
245
|
+
Saint Louis, StL
|
246
|
+
Saint Mary's, StM
|
247
|
+
Sam Houston State, SHS
|
248
|
+
Samford, Sam
|
249
|
+
San Diego, SD
|
250
|
+
San Diego State, SDS
|
251
|
+
San Francisco, SF
|
252
|
+
San Jose State, SJS
|
253
|
+
Santa Clara, StC
|
254
|
+
Savannah State, Sav
|
255
|
+
Seattle, Sea
|
256
|
+
Seton Hall, Stn
|
257
|
+
Siena, Sie
|
258
|
+
SIU Edwardsville, SIU
|
259
|
+
South Alabama, SAl
|
260
|
+
South Carolina, SCa
|
261
|
+
South Carolina State, SCS
|
262
|
+
South Dakota, SDk
|
263
|
+
South Dakota State, SDS
|
264
|
+
South Florida, SFl
|
265
|
+
Southeast Missouri State, SMS
|
266
|
+
Southeastern Louisiana, SeL
|
267
|
+
Southern Illinois, SIl
|
268
|
+
Southern Methodist, SMt
|
269
|
+
Southern Miss, SMs
|
270
|
+
Southern University, Sou
|
271
|
+
Southern Utah, SUt
|
272
|
+
St. Bonaventure, StB
|
273
|
+
St. Francis (NY), SFN
|
274
|
+
St. Francis (PA), SFP
|
275
|
+
St. John's, SJn
|
276
|
+
St. Peter's, StP
|
277
|
+
Stanford, Sta
|
278
|
+
Stephen F. Austin, SFA
|
279
|
+
Stetson, Sts
|
280
|
+
Stony Brook, StB
|
281
|
+
Syracuse, Syr
|
282
|
+
TCU, TCU
|
283
|
+
Temple, Tem
|
284
|
+
Tennessee, Ten
|
285
|
+
Tennessee State, TSt
|
286
|
+
Tennessee Tech, TTc
|
287
|
+
Tennessee-Martin, TnM
|
288
|
+
Texas, Tex
|
289
|
+
Texas A&M, A&M
|
290
|
+
Texas A&M-CC, TAC
|
291
|
+
Texas Southern, TxS
|
292
|
+
Texas State, TSt
|
293
|
+
Texas Tech, TTc
|
294
|
+
Texas-Arlington, TxA
|
295
|
+
Texas-Pan American, TPA
|
296
|
+
Texas-San Antonio, TSA
|
297
|
+
Toledo, Tol
|
298
|
+
Towson, Tow
|
299
|
+
Troy, Try
|
300
|
+
Tulane, Tln
|
301
|
+
Tulsa, Tul
|
302
|
+
UAB, UAB
|
303
|
+
UC Davis, UCD
|
304
|
+
UC Irvine, UCI
|
305
|
+
UC Riverside, UCR
|
306
|
+
UC Santa Barbara, SB
|
307
|
+
UCF, UCF
|
308
|
+
UCLA, ULA
|
309
|
+
UMBC, UBC
|
310
|
+
UMKC, UMK
|
311
|
+
UNC Greensboro, UNG
|
312
|
+
UNLV, ULV
|
313
|
+
USC, USC
|
314
|
+
USC Upstate, UsU
|
315
|
+
Utah, Uta
|
316
|
+
Utah State, USt
|
317
|
+
Utah Valley, UVa
|
318
|
+
UTEP, UTP
|
319
|
+
Valparaiso, Val
|
320
|
+
Vanderbilt, Van
|
321
|
+
Vermont, Ver
|
322
|
+
Villanova, Vil
|
323
|
+
Virginia, VA
|
324
|
+
Virginia Commonwealth, VAC
|
325
|
+
Virginia Military, VAM
|
326
|
+
Virginia Tech, VAT
|
327
|
+
Wagner, Wag
|
328
|
+
Wake Forest, WkF
|
329
|
+
Washington, Was
|
330
|
+
Washington State, WSt
|
331
|
+
Weber State, Web
|
332
|
+
West Virginia, WVa
|
333
|
+
Western Carolina, WCa
|
334
|
+
Western Illinois, WIl
|
335
|
+
Western Kentucky, WKy
|
336
|
+
Western Michigan, WMi
|
337
|
+
Wichita State, WiS
|
338
|
+
William & Mary, W&M
|
339
|
+
Winston-Salem, W-S
|
340
|
+
Winthrop, Win
|
341
|
+
Wisconsin, Wis
|
342
|
+
Wofford, Wof
|
343
|
+
Wright State, WrS
|
344
|
+
Wyoming, Wy
|
345
|
+
Xavier, Xav
|
346
|
+
Yale, Yal
|
347
|
+
Youngstown State, YSt
|