tournament 1.1.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (264) hide show
  1. data/History.txt +15 -0
  2. data/Manifest.txt +241 -2
  3. data/README.txt +152 -12
  4. data/Rakefile +9 -6
  5. data/bin/benchmark_pool +0 -0
  6. data/bin/gui.rb +3 -1
  7. data/bin/picker +0 -0
  8. data/bin/pool +139 -15
  9. data/lib/tournament/bracket.rb +33 -50
  10. data/lib/tournament/entry.rb +3 -0
  11. data/lib/tournament/pool.rb +144 -93
  12. data/lib/tournament/scoring_strategy.rb +69 -0
  13. data/lib/tournament/webgui_installer.rb +109 -0
  14. data/tasks/ann.rake +19 -14
  15. data/tasks/bones.rake +6 -25
  16. data/tasks/gem.rake +46 -36
  17. data/tasks/git.rake +41 -0
  18. data/tasks/jamis.rb +589 -0
  19. data/tasks/notes.rake +28 -0
  20. data/tasks/post_load.rake +18 -11
  21. data/tasks/{doc.rake → rdoc.rake} +12 -9
  22. data/tasks/rubyforge.rake +12 -12
  23. data/tasks/setup.rb +121 -80
  24. data/tasks/spec.rake +12 -13
  25. data/tasks/svn.rake +15 -11
  26. data/tasks/test.rake +6 -6
  27. data/test/test_tournament.rb +8 -0
  28. data/test/test_webgui_installer.rb +64 -0
  29. data/webgui/README +256 -0
  30. data/webgui/Rakefile +10 -0
  31. data/webgui/app/controllers/admin_controller.rb +61 -0
  32. data/webgui/app/controllers/application.rb +25 -0
  33. data/webgui/app/controllers/entry_controller.rb +97 -0
  34. data/webgui/app/controllers/pool_controller.rb +4 -0
  35. data/webgui/app/controllers/reports_controller.rb +7 -0
  36. data/webgui/app/controllers/sessions_controller.rb +43 -0
  37. data/webgui/app/controllers/teams_controller.rb +75 -0
  38. data/webgui/app/controllers/users_controller.rb +57 -0
  39. data/webgui/app/helpers/admin_helper.rb +2 -0
  40. data/webgui/app/helpers/application_helper.rb +3 -0
  41. data/webgui/app/helpers/entry_helper.rb +2 -0
  42. data/webgui/app/helpers/pool_helper.rb +2 -0
  43. data/webgui/app/helpers/reports_helper.rb +2 -0
  44. data/webgui/app/helpers/sessions_helper.rb +2 -0
  45. data/webgui/app/helpers/teams_helper.rb +2 -0
  46. data/webgui/app/helpers/users_helper.rb +93 -0
  47. data/webgui/app/models/entry.rb +42 -0
  48. data/webgui/app/models/pool.rb +141 -0
  49. data/webgui/app/models/region.rb +3 -0
  50. data/webgui/app/models/role.rb +4 -0
  51. data/webgui/app/models/seeding.rb +4 -0
  52. data/webgui/app/models/team.rb +6 -0
  53. data/webgui/app/models/user.rb +98 -0
  54. data/webgui/app/models/user_mailer.rb +25 -0
  55. data/webgui/app/views/admin/bracket.html.erb +3 -0
  56. data/webgui/app/views/admin/entries.html.erb +25 -0
  57. data/webgui/app/views/admin/index.html.erb +17 -0
  58. data/webgui/app/views/admin/pool.html.erb +53 -0
  59. data/webgui/app/views/entry/index.html.erb +16 -0
  60. data/webgui/app/views/entry/print.erb +1 -0
  61. data/webgui/app/views/entry/print.html.erb +1 -0
  62. data/webgui/app/views/entry/show.html.erb +1 -0
  63. data/webgui/app/views/layouts/bracket.html.erb +37 -0
  64. data/webgui/app/views/layouts/default.html.erb +62 -0
  65. data/webgui/app/views/layouts/print.html.erb +12 -0
  66. data/webgui/app/views/layouts/report.html.erb +38 -0
  67. data/webgui/app/views/pool/index.html.erb +36 -0
  68. data/webgui/app/views/reports/_report.html.erb +11 -0
  69. data/webgui/app/views/reports/show.html.erb +12 -0
  70. data/webgui/app/views/sessions/new.html.erb +21 -0
  71. data/webgui/app/views/shared/_admins.html.erb +8 -0
  72. data/webgui/app/views/shared/_bracket.html.erb +1296 -0
  73. data/webgui/app/views/teams/choose.html.erb +57 -0
  74. data/webgui/app/views/user_mailer/activation.erb +3 -0
  75. data/webgui/app/views/user_mailer/signup_notification.erb +8 -0
  76. data/webgui/app/views/users/_user_bar.html.erb +8 -0
  77. data/webgui/app/views/users/new.html.erb +19 -0
  78. data/webgui/config/boot.rb +109 -0
  79. data/webgui/config/database.yml +22 -0
  80. data/webgui/config/environment.rb +78 -0
  81. data/webgui/config/environments/development.rb +29 -0
  82. data/webgui/config/environments/production.rb +24 -0
  83. data/webgui/config/environments/test.rb +22 -0
  84. data/webgui/config/initializers/inflections.rb +10 -0
  85. data/webgui/config/initializers/mime_types.rb +5 -0
  86. data/webgui/config/initializers/new_rails_defaults.rb +17 -0
  87. data/webgui/config/initializers/pool.rb +33 -0
  88. data/webgui/config/initializers/site_keys.rb +38 -0
  89. data/webgui/config/locales/en.yml +5 -0
  90. data/webgui/config/routes.rb +56 -0
  91. data/webgui/db/development.sqlite3 +0 -0
  92. data/webgui/db/migrate/20090216015836_create_entries.rb +13 -0
  93. data/webgui/db/migrate/20090217001611_add_tie_break_to_entry.rb +9 -0
  94. data/webgui/db/migrate/20090217004039_create_users.rb +23 -0
  95. data/webgui/db/migrate/20090217014940_relate_entry_and_user.rb +10 -0
  96. data/webgui/db/migrate/20090218024350_create_roles.rb +17 -0
  97. data/webgui/db/migrate/20090218024657_add_postition_to_roles.rb +9 -0
  98. data/webgui/db/migrate/20090218025240_add_admin_role.rb +10 -0
  99. data/webgui/db/migrate/20090225022928_create_pools.rb +16 -0
  100. data/webgui/db/migrate/20090225030346_associate_pool_and_entry.rb +9 -0
  101. data/webgui/db/migrate/20090225072358_change_pool_data_column.rb +9 -0
  102. data/webgui/db/migrate/20090225072849_add_completed_to_entries.rb +9 -0
  103. data/webgui/db/migrate/20090225074149_add_pool_id_index_to_entries.rb +9 -0
  104. data/webgui/db/migrate/20090225084414_add_user_id_to_pool.rb +9 -0
  105. data/webgui/db/migrate/20090226021913_add_active_to_pools.rb +9 -0
  106. data/webgui/db/migrate/20090226142240_rename_bracket_column_to_data.rb +9 -0
  107. data/webgui/db/migrate/20090301014710_create_teams.rb +84 -0
  108. data/webgui/db/migrate/20090301025902_add_more_teams.rb +16 -0
  109. data/webgui/db/migrate/20090301041526_create_seedings.rb +16 -0
  110. data/webgui/db/migrate/20090301090511_create_regions.rb +14 -0
  111. data/webgui/db/migrate/teams.txt +347 -0
  112. data/webgui/db/pool.yml +408 -0
  113. data/webgui/db/schema.rb +91 -0
  114. data/webgui/db/test.sqlite3 +0 -0
  115. data/webgui/doc/README_FOR_APP +5 -0
  116. data/webgui/lib/authenticated_system.rb +189 -0
  117. data/webgui/lib/authenticated_test_helper.rb +11 -0
  118. data/webgui/lib/form_object.rb +70 -0
  119. data/webgui/lib/pdf_helper.rb +47 -0
  120. data/webgui/lib/prince.rb +74 -0
  121. data/webgui/lib/saves_picks.rb +23 -0
  122. data/webgui/lib/tasks/admin.rake +10 -0
  123. data/webgui/public/404.html +30 -0
  124. data/webgui/public/422.html +30 -0
  125. data/webgui/public/500.html +33 -0
  126. data/webgui/public/dispatch.cgi +10 -0
  127. data/webgui/public/dispatch.fcgi +24 -0
  128. data/webgui/public/dispatch.rb +10 -0
  129. data/webgui/public/favicon.ico +0 -0
  130. data/webgui/public/images/2009FinalFour.png +0 -0
  131. data/webgui/public/images/rails.png +0 -0
  132. data/webgui/public/javascripts/application.js +2 -0
  133. data/webgui/public/javascripts/bracket.js +73 -0
  134. data/webgui/public/javascripts/controls.js +963 -0
  135. data/webgui/public/javascripts/dragdrop.js +973 -0
  136. data/webgui/public/javascripts/effects.js +1128 -0
  137. data/webgui/public/javascripts/prototype.js +4320 -0
  138. data/webgui/public/robots.txt +5 -0
  139. data/webgui/public/stylesheets/bracket-print.css +39 -0
  140. data/webgui/public/stylesheets/bracket.css +125 -0
  141. data/webgui/public/stylesheets/main.css +144 -0
  142. data/webgui/public/stylesheets/prince.css +6 -0
  143. data/webgui/public/stylesheets/prince_landscape.css +1 -0
  144. data/webgui/script/about +4 -0
  145. data/webgui/script/console +3 -0
  146. data/webgui/script/dbconsole +3 -0
  147. data/webgui/script/destroy +3 -0
  148. data/webgui/script/generate +3 -0
  149. data/webgui/script/performance/benchmarker +3 -0
  150. data/webgui/script/performance/profiler +3 -0
  151. data/webgui/script/performance/request +3 -0
  152. data/webgui/script/plugin +3 -0
  153. data/webgui/script/process/inspector +3 -0
  154. data/webgui/script/process/reaper +3 -0
  155. data/webgui/script/process/spawner +3 -0
  156. data/webgui/script/runner +3 -0
  157. data/webgui/script/server +3 -0
  158. data/webgui/test/fixtures/entries.yml +10 -0
  159. data/webgui/test/fixtures/pools.yml +14 -0
  160. data/webgui/test/fixtures/regions.yml +11 -0
  161. data/webgui/test/fixtures/roles.yml +11 -0
  162. data/webgui/test/fixtures/roles_users.yml +3 -0
  163. data/webgui/test/fixtures/seedings.yml +12 -0
  164. data/webgui/test/fixtures/teams.yml +3051 -0
  165. data/webgui/test/fixtures/users.yml +44 -0
  166. data/webgui/test/functional/admin_controller_test.rb +8 -0
  167. data/webgui/test/functional/entry_controller_test.rb +27 -0
  168. data/webgui/test/functional/pool_controller_test.rb +8 -0
  169. data/webgui/test/functional/reports_controller_test.rb +8 -0
  170. data/webgui/test/functional/sessions_controller_test.rb +82 -0
  171. data/webgui/test/functional/teams_controller_test.rb +216 -0
  172. data/webgui/test/functional/users_controller_test.rb +88 -0
  173. data/webgui/test/performance/browsing_test.rb +9 -0
  174. data/webgui/test/test_helper.rb +38 -0
  175. data/webgui/test/unit/entry_test.rb +8 -0
  176. data/webgui/test/unit/pool_test.rb +8 -0
  177. data/webgui/test/unit/region_test.rb +8 -0
  178. data/webgui/test/unit/role_test.rb +8 -0
  179. data/webgui/test/unit/seeding_test.rb +8 -0
  180. data/webgui/test/unit/team_test.rb +10 -0
  181. data/webgui/test/unit/user_mailer_test.rb +31 -0
  182. data/webgui/test/unit/user_test.rb +109 -0
  183. data/webgui/vendor/plugins/auto_complete/README +23 -0
  184. data/webgui/vendor/plugins/auto_complete/Rakefile +22 -0
  185. data/webgui/vendor/plugins/auto_complete/init.rb +2 -0
  186. data/webgui/vendor/plugins/auto_complete/lib/auto_complete.rb +47 -0
  187. data/webgui/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb +143 -0
  188. data/webgui/vendor/plugins/auto_complete/test/auto_complete_test.rb +67 -0
  189. data/webgui/vendor/plugins/enumerations_mixin/ATTENTION +15 -0
  190. data/webgui/vendor/plugins/enumerations_mixin/LICENSE +20 -0
  191. data/webgui/vendor/plugins/enumerations_mixin/README_ENUMERATIONS +163 -0
  192. data/webgui/vendor/plugins/enumerations_mixin/init.rb +21 -0
  193. data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/acts/enumerated.rb +177 -0
  194. data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb +60 -0
  195. data/webgui/vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb +68 -0
  196. data/webgui/vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb +76 -0
  197. data/webgui/vendor/plugins/restful_authentication/.gitignore +21 -0
  198. data/webgui/vendor/plugins/restful_authentication/CHANGELOG +68 -0
  199. data/webgui/vendor/plugins/restful_authentication/README.textile +224 -0
  200. data/webgui/vendor/plugins/restful_authentication/Rakefile +32 -0
  201. data/webgui/vendor/plugins/restful_authentication/TODO +15 -0
  202. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/USAGE +1 -0
  203. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/authenticated_generator.rb +478 -0
  204. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/lib/insert_routes.rb +54 -0
  205. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/_model_partial.html.erb +8 -0
  206. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/activation.erb +3 -0
  207. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_system.rb +189 -0
  208. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_test_helper.rb +22 -0
  209. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/controller.rb +43 -0
  210. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/helper.rb +2 -0
  211. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/login.html.erb +16 -0
  212. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/mailer.rb +25 -0
  213. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/migration.rb +26 -0
  214. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model.rb +83 -0
  215. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_controller.rb +85 -0
  216. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper.rb +93 -0
  217. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper_spec.rb +158 -0
  218. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb +11 -0
  219. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup.html.erb +19 -0
  220. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup_notification.erb +8 -0
  221. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/site_keys.rb +38 -0
  222. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/access_control_spec.rb +90 -0
  223. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb +102 -0
  224. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb +139 -0
  225. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/users_controller_spec.rb +198 -0
  226. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/fixtures/users.yml +60 -0
  227. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/helpers/users_helper_spec.rb +141 -0
  228. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/models/user_spec.rb +290 -0
  229. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb +22 -0
  230. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories_helper.rb +81 -0
  231. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_navigation_steps.rb +49 -0
  232. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_resource_steps.rb +179 -0
  233. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_response_steps.rb +171 -0
  234. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/user_steps.rb +153 -0
  235. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/accounts.story +186 -0
  236. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/sessions.story +134 -0
  237. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/functional_test.rb +82 -0
  238. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb +31 -0
  239. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/model_functional_test.rb +93 -0
  240. data/webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/unit_test.rb +164 -0
  241. data/webgui/vendor/plugins/restful_authentication/init.rb +1 -0
  242. data/webgui/vendor/plugins/restful_authentication/install.rb +1 -0
  243. data/webgui/vendor/plugins/restful_authentication/lib/authentication/by_cookie_token.rb +82 -0
  244. data/webgui/vendor/plugins/restful_authentication/lib/authentication/by_password.rb +64 -0
  245. data/webgui/vendor/plugins/restful_authentication/lib/authentication.rb +40 -0
  246. data/webgui/vendor/plugins/restful_authentication/lib/authorization/aasm_roles.rb +63 -0
  247. data/webgui/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb +62 -0
  248. data/webgui/vendor/plugins/restful_authentication/lib/authorization.rb +14 -0
  249. data/webgui/vendor/plugins/restful_authentication/lib/trustification/email_validation.rb +20 -0
  250. data/webgui/vendor/plugins/restful_authentication/lib/trustification.rb +14 -0
  251. data/webgui/vendor/plugins/restful_authentication/notes/AccessControl.txt +2 -0
  252. data/webgui/vendor/plugins/restful_authentication/notes/Authentication.txt +5 -0
  253. data/webgui/vendor/plugins/restful_authentication/notes/Authorization.txt +154 -0
  254. data/webgui/vendor/plugins/restful_authentication/notes/RailsPlugins.txt +78 -0
  255. data/webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.graffle +0 -0
  256. data/webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.png +0 -0
  257. data/webgui/vendor/plugins/restful_authentication/notes/SecurityPatterns.txt +163 -0
  258. data/webgui/vendor/plugins/restful_authentication/notes/Tradeoffs.txt +126 -0
  259. data/webgui/vendor/plugins/restful_authentication/notes/Trustification.txt +49 -0
  260. data/webgui/vendor/plugins/restful_authentication/rails/init.rb +3 -0
  261. data/webgui/vendor/plugins/restful_authentication/restful-authentication.gemspec +33 -0
  262. data/webgui/vendor/plugins/restful_authentication/tasks/auth.rake +33 -0
  263. metadata +288 -8
  264. data/tasks/annotations.rake +0 -22
@@ -0,0 +1,33 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{restful-authentication}
5
+ s.version = "1.1.1"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["RailsJedi", "Rick Olson"]
9
+ s.date = %q{2008-07-04}
10
+ s.description = %q{This widely-used plugin provides a foundation for securely managing user.}
11
+ s.email = %q{railsjedi@gmail.com}
12
+ s.extra_rdoc_files = ["README.textile"]
13
+ s.files = ["CHANGELOG", "README.textile", "Rakefile", "TODO", "generators/authenticated/authenticated_generator.rb", "generators/authenticated/lib/insert_routes.rb", "generators/authenticated/templates/_model_partial.html.erb", "generators/authenticated/templates/activation.erb", "generators/authenticated/templates/authenticated_system.rb", "generators/authenticated/templates/authenticated_test_helper.rb", "generators/authenticated/templates/controller.rb", "generators/authenticated/templates/helper.rb", "generators/authenticated/templates/login.html.erb", "generators/authenticated/templates/mailer.rb", "generators/authenticated/templates/migration.rb", "generators/authenticated/templates/model.rb", "generators/authenticated/templates/model_controller.rb", "generators/authenticated/templates/model_helper.rb", "generators/authenticated/templates/model_helper_spec.rb", "generators/authenticated/templates/observer.rb", "generators/authenticated/templates/signup.html.erb", "generators/authenticated/templates/signup_notification.erb", "generators/authenticated/templates/site_keys.rb", "generators/authenticated/templates/spec/controllers/access_control_spec.rb", "generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb", "generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb", "generators/authenticated/templates/spec/controllers/users_controller_spec.rb", "generators/authenticated/templates/spec/fixtures/users.yml", "generators/authenticated/templates/spec/helpers/users_helper_spec.rb", "generators/authenticated/templates/spec/models/user_spec.rb", "generators/authenticated/templates/stories/rest_auth_stories.rb", "generators/authenticated/templates/stories/rest_auth_stories_helper.rb", "generators/authenticated/templates/stories/steps/ra_navigation_steps.rb", "generators/authenticated/templates/stories/steps/ra_resource_steps.rb", "generators/authenticated/templates/stories/steps/ra_response_steps.rb", "generators/authenticated/templates/stories/steps/user_steps.rb", "generators/authenticated/templates/stories/users/accounts.story", "generators/authenticated/templates/stories/users/sessions.story", "generators/authenticated/templates/test/functional_test.rb", "generators/authenticated/templates/test/mailer_test.rb", "generators/authenticated/templates/test/model_functional_test.rb", "generators/authenticated/templates/test/unit_test.rb", "generators/authenticated/USAGE", "init.rb", "lib/authentication/by_cookie_token.rb", "lib/authentication/by_password.rb", "lib/authentication.rb", "lib/authorization/aasm_roles.rb", "lib/authorization/stateful_roles.rb", "lib/authorization.rb", "lib/trustification/email_validation.rb", "lib/trustification.rb", "rails/init.rb"]
14
+ s.has_rdoc = true
15
+ s.homepage = %q{http://github.com/technoweenie/restful-authentication}
16
+ s.rdoc_options = ["--main", "README.textile"]
17
+ s.require_paths = ["lib"]
18
+ s.rubygems_version = %q{1.3.0}
19
+ s.summary = %q{Generates code for user login and authentication}
20
+
21
+ if s.respond_to? :specification_version then
22
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
23
+ s.specification_version = 2
24
+
25
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
26
+ s.add_runtime_dependency(%q<rails>, ["~> 2.1.0"])
27
+ else
28
+ s.add_dependency(%q<rails>, ["~> 2.1.0"])
29
+ end
30
+ else
31
+ s.add_dependency(%q<rails>, ["~> 2.1.0"])
32
+ end
33
+ end
@@ -0,0 +1,33 @@
1
+ require 'digest/sha1'
2
+ require 'erb'
3
+
4
+ def site_keys_file
5
+ File.join("config", "initializers", "site_keys.rb")
6
+ end
7
+
8
+ def secure_digest(*args)
9
+ Digest::SHA1.hexdigest(args.flatten.join('--'))
10
+ end
11
+
12
+ def make_token
13
+ secure_digest(Time.now, (1..10).map{ rand.to_s })
14
+ end
15
+
16
+ def make_site_keys_rb
17
+ site_key = secure_digest(Time.now, (1..10).map{ rand.to_s })
18
+ site_key_erb = <<-EOF
19
+ # key of 40 chars length
20
+ REST_AUTH_SITE_KEY = '#{site_key}'
21
+ REST_AUTH_DIGEST_STRETCHES = 10
22
+ EOF
23
+ end
24
+
25
+ namespace :auth do
26
+ namespace :gen do
27
+ desc "Generates config/initializers/site_keys.rb"
28
+ task :site_key do
29
+ file = ENV['file'] || site_keys_file
30
+ File.open(file, "w"){|f| f.write(make_site_keys_rb)}
31
+ end
32
+ end
33
+ end
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: 1.1.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Douglas A. Seifert
@@ -9,19 +9,50 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-03-30 00:00:00 -07:00
12
+ date: 2009-03-11 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: main
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ">="
21
22
  - !ruby/object:Gem::Version
22
- version: 2.8.0
23
+ version: 2.8.3
23
24
  version:
24
- description: Small library and command line program for managing a NCAA basketball tournament pool.
25
+ - !ruby/object:Gem::Dependency
26
+ name: rake
27
+ type: :runtime
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 0.8.3
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: rails
37
+ type: :runtime
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 2.2.2
44
+ version:
45
+ - !ruby/object:Gem::Dependency
46
+ name: sqlite3-ruby
47
+ type: :runtime
48
+ version_requirement:
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: 1.2.4
54
+ version:
55
+ description: Small library, command line program and Rails web GUI for managing a NCAA basketball tournament pool.
25
56
  email: doug+rubyforge@dseifert.net
26
57
  executables:
27
58
  - benchmark_pool
@@ -36,6 +67,15 @@ extra_rdoc_files:
36
67
  - bin/benchmark_pool
37
68
  - bin/picker
38
69
  - bin/pool
70
+ - webgui/db/migrate/teams.txt
71
+ - webgui/public/robots.txt
72
+ - webgui/vendor/plugins/restful_authentication/notes/AccessControl.txt
73
+ - webgui/vendor/plugins/restful_authentication/notes/Authentication.txt
74
+ - webgui/vendor/plugins/restful_authentication/notes/Authorization.txt
75
+ - webgui/vendor/plugins/restful_authentication/notes/RailsPlugins.txt
76
+ - webgui/vendor/plugins/restful_authentication/notes/SecurityPatterns.txt
77
+ - webgui/vendor/plugins/restful_authentication/notes/Tradeoffs.txt
78
+ - webgui/vendor/plugins/restful_authentication/notes/Trustification.txt
39
79
  files:
40
80
  - History.txt
41
81
  - Manifest.txt
@@ -49,23 +89,262 @@ files:
49
89
  - lib/tournament/bracket.rb
50
90
  - lib/tournament/entry.rb
51
91
  - lib/tournament/pool.rb
92
+ - lib/tournament/scoring_strategy.rb
52
93
  - lib/tournament/team.rb
94
+ - lib/tournament/webgui_installer.rb
53
95
  - spec/spec_helper.rb
54
96
  - spec/tournament_spec.rb
55
97
  - static/shoes-icon.png
56
98
  - tasks/ann.rake
57
- - tasks/annotations.rake
58
99
  - tasks/bones.rake
59
- - tasks/doc.rake
60
100
  - tasks/gem.rake
101
+ - tasks/git.rake
102
+ - tasks/jamis.rb
61
103
  - tasks/manifest.rake
104
+ - tasks/notes.rake
62
105
  - tasks/post_load.rake
106
+ - tasks/rdoc.rake
63
107
  - tasks/rubyforge.rake
64
108
  - tasks/setup.rb
65
109
  - tasks/spec.rake
66
110
  - tasks/svn.rake
67
111
  - tasks/test.rake
68
112
  - test/test_tournament.rb
113
+ - test/test_webgui_installer.rb
114
+ - webgui/README
115
+ - webgui/Rakefile
116
+ - webgui/app/controllers/admin_controller.rb
117
+ - webgui/app/controllers/application.rb
118
+ - webgui/app/controllers/entry_controller.rb
119
+ - webgui/app/controllers/pool_controller.rb
120
+ - webgui/app/controllers/reports_controller.rb
121
+ - webgui/app/controllers/sessions_controller.rb
122
+ - webgui/app/controllers/teams_controller.rb
123
+ - webgui/app/controllers/users_controller.rb
124
+ - webgui/app/helpers/admin_helper.rb
125
+ - webgui/app/helpers/application_helper.rb
126
+ - webgui/app/helpers/entry_helper.rb
127
+ - webgui/app/helpers/pool_helper.rb
128
+ - webgui/app/helpers/reports_helper.rb
129
+ - webgui/app/helpers/sessions_helper.rb
130
+ - webgui/app/helpers/teams_helper.rb
131
+ - webgui/app/helpers/users_helper.rb
132
+ - webgui/app/models/entry.rb
133
+ - webgui/app/models/pool.rb
134
+ - webgui/app/models/region.rb
135
+ - webgui/app/models/role.rb
136
+ - webgui/app/models/seeding.rb
137
+ - webgui/app/models/team.rb
138
+ - webgui/app/models/user.rb
139
+ - webgui/app/models/user_mailer.rb
140
+ - webgui/app/views/admin/bracket.html.erb
141
+ - webgui/app/views/admin/entries.html.erb
142
+ - webgui/app/views/admin/index.html.erb
143
+ - webgui/app/views/admin/pool.html.erb
144
+ - webgui/app/views/entry/index.html.erb
145
+ - webgui/app/views/entry/print.erb
146
+ - webgui/app/views/entry/print.html.erb
147
+ - webgui/app/views/entry/show.html.erb
148
+ - webgui/app/views/layouts/bracket.html.erb
149
+ - webgui/app/views/layouts/default.html.erb
150
+ - webgui/app/views/layouts/print.html.erb
151
+ - webgui/app/views/layouts/report.html.erb
152
+ - webgui/app/views/pool/index.html.erb
153
+ - webgui/app/views/reports/_report.html.erb
154
+ - webgui/app/views/reports/show.html.erb
155
+ - webgui/app/views/sessions/new.html.erb
156
+ - webgui/app/views/shared/_admins.html.erb
157
+ - webgui/app/views/shared/_bracket.html.erb
158
+ - webgui/app/views/teams/choose.html.erb
159
+ - webgui/app/views/user_mailer/activation.erb
160
+ - webgui/app/views/user_mailer/signup_notification.erb
161
+ - webgui/app/views/users/_user_bar.html.erb
162
+ - webgui/app/views/users/new.html.erb
163
+ - webgui/config/boot.rb
164
+ - webgui/config/database.yml
165
+ - webgui/config/environment.rb
166
+ - webgui/config/environments/development.rb
167
+ - webgui/config/environments/production.rb
168
+ - webgui/config/environments/test.rb
169
+ - webgui/config/initializers/inflections.rb
170
+ - webgui/config/initializers/mime_types.rb
171
+ - webgui/config/initializers/new_rails_defaults.rb
172
+ - webgui/config/initializers/pool.rb
173
+ - webgui/config/initializers/site_keys.rb
174
+ - webgui/config/locales/en.yml
175
+ - webgui/config/routes.rb
176
+ - webgui/db/development.sqlite3
177
+ - webgui/db/migrate/20090216015836_create_entries.rb
178
+ - webgui/db/migrate/20090217001611_add_tie_break_to_entry.rb
179
+ - webgui/db/migrate/20090217004039_create_users.rb
180
+ - webgui/db/migrate/20090217014940_relate_entry_and_user.rb
181
+ - webgui/db/migrate/20090218024350_create_roles.rb
182
+ - webgui/db/migrate/20090218024657_add_postition_to_roles.rb
183
+ - webgui/db/migrate/20090218025240_add_admin_role.rb
184
+ - webgui/db/migrate/20090225022928_create_pools.rb
185
+ - webgui/db/migrate/20090225030346_associate_pool_and_entry.rb
186
+ - webgui/db/migrate/20090225072358_change_pool_data_column.rb
187
+ - webgui/db/migrate/20090225072849_add_completed_to_entries.rb
188
+ - webgui/db/migrate/20090225074149_add_pool_id_index_to_entries.rb
189
+ - webgui/db/migrate/20090225084414_add_user_id_to_pool.rb
190
+ - webgui/db/migrate/20090226021913_add_active_to_pools.rb
191
+ - webgui/db/migrate/20090226142240_rename_bracket_column_to_data.rb
192
+ - webgui/db/migrate/20090301014710_create_teams.rb
193
+ - webgui/db/migrate/20090301025902_add_more_teams.rb
194
+ - webgui/db/migrate/20090301041526_create_seedings.rb
195
+ - webgui/db/migrate/20090301090511_create_regions.rb
196
+ - webgui/db/migrate/teams.txt
197
+ - webgui/db/pool.yml
198
+ - webgui/db/schema.rb
199
+ - webgui/db/test.sqlite3
200
+ - webgui/doc/README_FOR_APP
201
+ - webgui/lib/authenticated_system.rb
202
+ - webgui/lib/authenticated_test_helper.rb
203
+ - webgui/lib/form_object.rb
204
+ - webgui/lib/pdf_helper.rb
205
+ - webgui/lib/prince.rb
206
+ - webgui/lib/saves_picks.rb
207
+ - webgui/lib/tasks/admin.rake
208
+ - webgui/public/404.html
209
+ - webgui/public/422.html
210
+ - webgui/public/500.html
211
+ - webgui/public/dispatch.cgi
212
+ - webgui/public/dispatch.fcgi
213
+ - webgui/public/dispatch.rb
214
+ - webgui/public/favicon.ico
215
+ - webgui/public/images/2009FinalFour.png
216
+ - webgui/public/images/rails.png
217
+ - webgui/public/javascripts/application.js
218
+ - webgui/public/javascripts/bracket.js
219
+ - webgui/public/javascripts/controls.js
220
+ - webgui/public/javascripts/dragdrop.js
221
+ - webgui/public/javascripts/effects.js
222
+ - webgui/public/javascripts/prototype.js
223
+ - webgui/public/robots.txt
224
+ - webgui/public/stylesheets/bracket-print.css
225
+ - webgui/public/stylesheets/bracket.css
226
+ - webgui/public/stylesheets/main.css
227
+ - webgui/public/stylesheets/prince.css
228
+ - webgui/public/stylesheets/prince_landscape.css
229
+ - webgui/script/about
230
+ - webgui/script/console
231
+ - webgui/script/dbconsole
232
+ - webgui/script/destroy
233
+ - webgui/script/generate
234
+ - webgui/script/performance/benchmarker
235
+ - webgui/script/performance/profiler
236
+ - webgui/script/performance/request
237
+ - webgui/script/plugin
238
+ - webgui/script/process/inspector
239
+ - webgui/script/process/reaper
240
+ - webgui/script/process/spawner
241
+ - webgui/script/runner
242
+ - webgui/script/server
243
+ - webgui/test/fixtures/entries.yml
244
+ - webgui/test/fixtures/pools.yml
245
+ - webgui/test/fixtures/regions.yml
246
+ - webgui/test/fixtures/roles.yml
247
+ - webgui/test/fixtures/roles_users.yml
248
+ - webgui/test/fixtures/seedings.yml
249
+ - webgui/test/fixtures/teams.yml
250
+ - webgui/test/fixtures/users.yml
251
+ - webgui/test/functional/admin_controller_test.rb
252
+ - webgui/test/functional/entry_controller_test.rb
253
+ - webgui/test/functional/pool_controller_test.rb
254
+ - webgui/test/functional/reports_controller_test.rb
255
+ - webgui/test/functional/sessions_controller_test.rb
256
+ - webgui/test/functional/teams_controller_test.rb
257
+ - webgui/test/functional/users_controller_test.rb
258
+ - webgui/test/performance/browsing_test.rb
259
+ - webgui/test/test_helper.rb
260
+ - webgui/test/unit/entry_test.rb
261
+ - webgui/test/unit/pool_test.rb
262
+ - webgui/test/unit/region_test.rb
263
+ - webgui/test/unit/role_test.rb
264
+ - webgui/test/unit/seeding_test.rb
265
+ - webgui/test/unit/team_test.rb
266
+ - webgui/test/unit/user_mailer_test.rb
267
+ - webgui/test/unit/user_test.rb
268
+ - webgui/vendor/plugins/auto_complete/README
269
+ - webgui/vendor/plugins/auto_complete/Rakefile
270
+ - webgui/vendor/plugins/auto_complete/init.rb
271
+ - webgui/vendor/plugins/auto_complete/lib/auto_complete.rb
272
+ - webgui/vendor/plugins/auto_complete/lib/auto_complete_macros_helper.rb
273
+ - webgui/vendor/plugins/auto_complete/test/auto_complete_test.rb
274
+ - webgui/vendor/plugins/enumerations_mixin/ATTENTION
275
+ - webgui/vendor/plugins/enumerations_mixin/LICENSE
276
+ - webgui/vendor/plugins/enumerations_mixin/README_ENUMERATIONS
277
+ - webgui/vendor/plugins/enumerations_mixin/init.rb
278
+ - webgui/vendor/plugins/enumerations_mixin/lib/active_record/acts/enumerated.rb
279
+ - webgui/vendor/plugins/enumerations_mixin/lib/active_record/aggregations/has_enumerated.rb
280
+ - webgui/vendor/plugins/enumerations_mixin/lib/active_record/virtual_enumerations.rb
281
+ - webgui/vendor/plugins/enumerations_mixin/virtual_enumerations_sample.rb
282
+ - webgui/vendor/plugins/restful_authentication/.gitignore
283
+ - webgui/vendor/plugins/restful_authentication/CHANGELOG
284
+ - webgui/vendor/plugins/restful_authentication/README.textile
285
+ - webgui/vendor/plugins/restful_authentication/Rakefile
286
+ - webgui/vendor/plugins/restful_authentication/TODO
287
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/USAGE
288
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/authenticated_generator.rb
289
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/lib/insert_routes.rb
290
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/_model_partial.html.erb
291
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/activation.erb
292
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_system.rb
293
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/authenticated_test_helper.rb
294
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/controller.rb
295
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/helper.rb
296
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/login.html.erb
297
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/mailer.rb
298
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/migration.rb
299
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model.rb
300
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_controller.rb
301
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper.rb
302
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/model_helper_spec.rb
303
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/observer.rb
304
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup.html.erb
305
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/signup_notification.erb
306
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/site_keys.rb
307
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/access_control_spec.rb
308
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/authenticated_system_spec.rb
309
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/sessions_controller_spec.rb
310
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/controllers/users_controller_spec.rb
311
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/fixtures/users.yml
312
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/helpers/users_helper_spec.rb
313
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/spec/models/user_spec.rb
314
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories.rb
315
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/rest_auth_stories_helper.rb
316
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_navigation_steps.rb
317
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_resource_steps.rb
318
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/ra_response_steps.rb
319
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/steps/user_steps.rb
320
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/accounts.story
321
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/stories/users/sessions.story
322
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/functional_test.rb
323
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/mailer_test.rb
324
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/model_functional_test.rb
325
+ - webgui/vendor/plugins/restful_authentication/generators/authenticated/templates/test/unit_test.rb
326
+ - webgui/vendor/plugins/restful_authentication/init.rb
327
+ - webgui/vendor/plugins/restful_authentication/install.rb
328
+ - webgui/vendor/plugins/restful_authentication/lib/authentication.rb
329
+ - webgui/vendor/plugins/restful_authentication/lib/authentication/by_cookie_token.rb
330
+ - webgui/vendor/plugins/restful_authentication/lib/authentication/by_password.rb
331
+ - webgui/vendor/plugins/restful_authentication/lib/authorization.rb
332
+ - webgui/vendor/plugins/restful_authentication/lib/authorization/aasm_roles.rb
333
+ - webgui/vendor/plugins/restful_authentication/lib/authorization/stateful_roles.rb
334
+ - webgui/vendor/plugins/restful_authentication/lib/trustification.rb
335
+ - webgui/vendor/plugins/restful_authentication/lib/trustification/email_validation.rb
336
+ - webgui/vendor/plugins/restful_authentication/notes/AccessControl.txt
337
+ - webgui/vendor/plugins/restful_authentication/notes/Authentication.txt
338
+ - webgui/vendor/plugins/restful_authentication/notes/Authorization.txt
339
+ - webgui/vendor/plugins/restful_authentication/notes/RailsPlugins.txt
340
+ - webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.graffle
341
+ - webgui/vendor/plugins/restful_authentication/notes/SecurityFramework.png
342
+ - webgui/vendor/plugins/restful_authentication/notes/SecurityPatterns.txt
343
+ - webgui/vendor/plugins/restful_authentication/notes/Tradeoffs.txt
344
+ - webgui/vendor/plugins/restful_authentication/notes/Trustification.txt
345
+ - webgui/vendor/plugins/restful_authentication/rails/init.rb
346
+ - webgui/vendor/plugins/restful_authentication/restful-authentication.gemspec
347
+ - webgui/vendor/plugins/restful_authentication/tasks/auth.rake
69
348
  has_rdoc: true
70
349
  homepage: http://www.dseifert.net/code/tournament
71
350
  post_install_message:
@@ -91,9 +370,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
370
  requirements: []
92
371
 
93
372
  rubyforge_project: tournament
94
- rubygems_version: 1.0.1
373
+ rubygems_version: 1.3.1
95
374
  signing_key:
96
375
  specification_version: 2
97
- summary: Small library and command line program for managing a NCAA basketball tournament pool
376
+ summary: Small library, command line program and Rails web GUI for managing a NCAA basketball tournament pool
98
377
  test_files:
99
378
  - test/test_tournament.rb
379
+ - test/test_webgui_installer.rb
@@ -1,22 +0,0 @@
1
- # $Id$
2
-
3
- if HAVE_BONES
4
-
5
- desc "Enumerate all annotations"
6
- task :notes do
7
- Bones::AnnotationExtractor.enumerate(
8
- PROJ, PROJ.annotation_tags.join('|'), :tag => true)
9
- end
10
-
11
- namespace :notes do
12
- PROJ.annotation_tags.each do |tag|
13
- desc "Enumerate all #{tag} annotations"
14
- task tag.downcase.to_sym do
15
- Bones::AnnotationExtractor.enumerate(PROJ, tag)
16
- end
17
- end
18
- end
19
-
20
- end # if HAVE_BONES
21
-
22
- # EOF