Permalink
Browse files

initial commit

  • Loading branch information...
0 parents commit f7fc9c6c94c588e8cc5665a7e781294b7bd6b517 @johnrees committed Oct 16, 2012
Showing with 4,615 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +32 −0 Gemfile
  3. +239 −0 Gemfile.lock
  4. +5 −0 README.markdown
  5. +7 −0 Rakefile
  6. BIN app/assets/images/apple-touch-icon-114x114.png
  7. BIN app/assets/images/apple-touch-icon-72x72.png
  8. BIN app/assets/images/apple-touch-icon.png
  9. BIN app/assets/images/apple-touch-icon.psd
  10. BIN app/assets/images/apple-touch-startup.png
  11. BIN app/assets/images/apple-touch-startup.psd
  12. BIN app/assets/images/artwork.jpg
  13. BIN app/assets/images/banner.jpg
  14. BIN app/assets/images/chosen-sprite.png
  15. BIN app/assets/images/favicon.png
  16. BIN app/assets/images/logo.png
  17. BIN app/assets/images/logo.psd
  18. BIN app/assets/images/soundcloud.png
  19. +13 −0 app/assets/javascripts/application.js
  20. +241 −0 app/assets/javascripts/competition.js.coffee
  21. +91 −0 app/assets/javascripts/record.js.coffee
  22. +9 −0 app/assets/stylesheets/application.css
  23. +198 −0 app/assets/stylesheets/competition.css.scss
  24. +145 −0 app/assets/stylesheets/theme.css.scss
  25. +15 −0 app/controllers/application_controller.rb
  26. +6 −0 app/controllers/comments_controller.rb
  27. +51 −0 app/controllers/competitions_controller.rb
  28. +19 −0 app/controllers/sessions_controller.rb
  29. +63 −0 app/controllers/tracks_controller.rb
  30. +9 −0 app/controllers/votes_controller.rb
  31. +9 −0 app/helpers/application_helper.rb
  32. +2 −0 app/helpers/comments_helper.rb
  33. +2 −0 app/helpers/competitions_helper.rb
  34. +2 −0 app/helpers/sessions_helper.rb
  35. +2 −0 app/helpers/tracks_helper.rb
  36. +2 −0 app/helpers/votes_helper.rb
  37. 0 app/mailers/.gitkeep
  38. 0 app/models/.gitkeep
  39. +12 −0 app/models/competition.rb
  40. +54 −0 app/models/track.rb
  41. +64 −0 app/models/user.rb
  42. +15 −0 app/models/vote.rb
  43. +16 −0 app/views/application/_about.html.haml
  44. +11 −0 app/views/application/_footer.html.haml
  45. +15 −0 app/views/application/_header.html.haml
  46. +10 −0 app/views/application/_player.html.haml
  47. +13 −0 app/views/application/_record.html.haml
  48. +4 −0 app/views/application/_stats.html.haml
  49. +9 −0 app/views/application/_vote.html.haml
  50. +12 −0 app/views/comments/_comment.html.haml
  51. +5 −0 app/views/comments/_form.html.haml
  52. +59 −0 app/views/competitions/_form.html.haml
  53. +4 −0 app/views/competitions/edit.html.haml
  54. +65 −0 app/views/competitions/show.html.haml
  55. +9 −0 app/views/kaminari/_first_page.html.haml
  56. +8 −0 app/views/kaminari/_gap.html.haml
  57. +9 −0 app/views/kaminari/_last_page.html.haml
  58. +9 −0 app/views/kaminari/_next_page.html.haml
  59. +10 −0 app/views/kaminari/_page.html.haml
  60. +18 −0 app/views/kaminari/_paginator.html.haml
  61. +9 −0 app/views/kaminari/_prev_page.html.haml
  62. +35 −0 app/views/layouts/application.html.haml
  63. +18 −0 app/views/tracks/_form.html.haml
  64. +6 −0 app/views/tracks/_track.html.haml
  65. +7 −0 app/views/tracks/index.html.haml
  66. +62 −0 app/views/tracks/new.html.haml
  67. +103 −0 app/views/tracks/show.html.haml
  68. +4 −0 config.ru
  69. +50 −0 config/application.rb
  70. +6 −0 config/boot.rb
  71. +25 −0 config/database.yml
  72. +5 −0 config/environment.rb
  73. +30 −0 config/environments/development.rb
  74. +61 −0 config/environments/production.rb
  75. +39 −0 config/environments/test.rb
  76. +7 −0 config/initializers/backtrace_silencers.rb
  77. +10 −0 config/initializers/inflections.rb
  78. +5 −0 config/initializers/mime_types.rb
  79. +3 −0 config/initializers/omniauth.rb
  80. +3 −0 config/initializers/rails_config.rb
  81. +7 −0 config/initializers/secret_token.rb
  82. +8 −0 config/initializers/session_store.rb
  83. +12 −0 config/initializers/wrap_parameters.rb
  84. +10 −0 config/locales/en.yml
  85. +24 −0 config/routes.rb
  86. 0 config/settings.local.yml
  87. +2 −0 config/settings/development.local.yml
  88. +2 −0 config/settings/production.local.yml
  89. 0 config/settings/settings.local.yml
  90. +2 −0 config/settings/test.local.yml
  91. +14 −0 db/migrate/20110703180028_create_tracks.rb
  92. +17 −0 db/migrate/20110711000024_create_users.rb
  93. +17 −0 db/migrate/20110711160319_thumbs_up_migration.rb
  94. +5 −0 db/migrate/20110714171332_add_secret_token_to_tracks.rb
  95. +19 −0 db/migrate/20110723235412_create_competitions.rb
  96. +5 −0 db/migrate/20110724062650_add_competition_id_to_tracks.rb
  97. +5 −0 db/migrate/20110724062800_add_tracks_count_to_competition.rb
  98. +9 −0 db/migrate/20110725005048_remove_key_from_competitions.rb
  99. +6 −0 db/migrate/20110725005824_add_rules_and_download_to_competitions.rb
  100. +11 −0 db/migrate/20110725020002_change_group_in_competitions.rb
  101. +9 −0 db/migrate/20110904173830_remove_secret_from_users.rb
  102. +5 −0 db/migrate/20111110031023_add_recording_to_competition.rb
  103. +75 −0 db/schema.rb
  104. +25 −0 db/seeds.rb
  105. +2 −0 doc/README_FOR_APP
  106. 0 lib/tasks/.gitkeep
  107. +53 −0 lib/tasks/import.rake
  108. 0 log/.gitkeep
  109. +26 −0 public/404.html
  110. +26 −0 public/422.html
  111. +26 −0 public/500.html
  112. 0 public/favicon.ico
  113. +5 −0 public/robots.txt
  114. +427 −0 public/stylesheets/competition.css.css
  115. +105 −0 public/stylesheets/theme.css.css
  116. BIN public/swfs/soundmanager2.swf
  117. BIN public/swfs/soundmanager2_debug.swf
  118. BIN public/swfs/soundmanager2_flash9.swf
  119. BIN public/swfs/soundmanager2_flash9_debug.swf
  120. +6 −0 script/rails
  121. 0 test/fixtures/.gitkeep
  122. +25 −0 test/fixtures/competitions.yml
  123. +17 −0 test/fixtures/tracks.yml
  124. +23 −0 test/fixtures/users.yml
  125. 0 test/functional/.gitkeep
  126. +9 −0 test/functional/comments_controller_test.rb
  127. +49 −0 test/functional/competitions_controller_test.rb
  128. +19 −0 test/functional/sessions_controller_test.rb
  129. +49 −0 test/functional/tracks_controller_test.rb
  130. +14 −0 test/functional/votes_controller_test.rb
  131. 0 test/integration/.gitkeep
  132. +12 −0 test/performance/browsing_test.rb
  133. +13 −0 test/test_helper.rb
  134. 0 test/unit/.gitkeep
  135. +7 −0 test/unit/competition_test.rb
  136. +4 −0 test/unit/helpers/comments_helper_test.rb
  137. +4 −0 test/unit/helpers/competitions_helper_test.rb
  138. +4 −0 test/unit/helpers/sessions_helper_test.rb
  139. +4 −0 test/unit/helpers/tracks_helper_test.rb
  140. +4 −0 test/unit/helpers/votes_helper_test.rb
  141. +7 −0 test/unit/track_test.rb
  142. +7 −0 test/unit/user_test.rb
  143. +9 −0 vendor/assets/javascripts/chosen.jquery.min.js
  144. +147 −0 vendor/assets/javascripts/jquery.timeago.js
  145. +486 −0 vendor/assets/javascripts/jquery.tmpl.js
  146. +75 −0 vendor/assets/javascripts/soundmanager2.js
  147. 0 vendor/assets/stylesheets/.gitkeep
  148. +334 −0 vendor/assets/stylesheets/chosen.css.erb
  149. +242 −0 vendor/assets/stylesheets/skeleton.css
  150. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,5 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
32 Gemfile
@@ -0,0 +1,32 @@
+source 'http://rubygems.org'
+
+gem 'rails', :github => "rails/rails", :branch => '3-1-stable'
+
+group :assets do
+ gem 'coffee-rails', "~> 3.1.0"
+ gem 'uglifier'
+ gem 'compass'
+end
+
+gem 'sass-rails', "~> 3.1.0"
+gem 'jquery-rails'
+gem 'haml'
+gem 'omniauth', :git => "git://github.com/intridea/omniauth.git", :branch => '0-3-stable'
+gem 'thumbs_up', :git => "git://github.com/leemartin/thumbs_up.git"
+gem 'redcarpet'
+gem 'rails_config'
+gem 'kaminari'
+gem 'soundcloud', "~> 0.2.9"
+
+group :test do
+ gem 'turn', :require => false
+end
+
+group :development do
+ gem 'sqlite3'
+end
+
+group :production do
+ gem 'pg'
+ gem 'dalli'
+end
@@ -0,0 +1,239 @@
+GIT
+ remote: git://github.com/intridea/omniauth.git
+ revision: d1e5b8a66c41f395df01763bc08186f0f0c2c1c7
+ branch: 0-3-stable
+ specs:
+ oa-basic (0.3.2)
+ oa-core (= 0.3.2)
+ rest-client (~> 1.6.0)
+ oa-core (0.3.2)
+ oa-enterprise (0.3.2)
+ XMLCanonicalizer (~> 1.0.1)
+ addressable (~> 2.2.6)
+ net-ldap (~> 0.2.2)
+ nokogiri (~> 1.5.0)
+ oa-core (= 0.3.2)
+ pyu-ruby-sasl (~> 0.0.3.1)
+ rubyntlm (~> 0.1.1)
+ uuid
+ oa-more (0.3.2)
+ multi_json (~> 1.0.0)
+ oa-core (= 0.3.2)
+ rest-client (~> 1.6.0)
+ oa-oauth (0.3.2)
+ faraday (~> 0.7.3)
+ multi_json (~> 1.0.0)
+ multi_xml (~> 0.4.0)
+ oa-core (= 0.3.2)
+ oauth (~> 0.4.0)
+ oauth2 (~> 0.5.0)
+ oa-openid (0.3.2)
+ oa-core (= 0.3.2)
+ rack-openid (~> 1.3.1)
+ ruby-openid-apps-discovery (~> 1.2.0)
+ omniauth (0.3.2)
+ oa-basic (= 0.3.2)
+ oa-core (= 0.3.2)
+ oa-enterprise (= 0.3.2)
+ oa-more (= 0.3.2)
+ oa-oauth (= 0.3.2)
+ oa-openid (= 0.3.2)
+
+GIT
+ remote: git://github.com/leemartin/thumbs_up.git
+ revision: 1066ff7341fd2793192adc959388a4563d63f7d3
+ specs:
+ thumbs_up (0.4.3)
+ activerecord
+
+GIT
+ remote: git://github.com/rails/rails.git
+ revision: 12df79c201651555457c2ac114e410de37431c34
+ branch: 3-1-stable
+ specs:
+ actionmailer (3.1.1)
+ actionpack (= 3.1.1)
+ mail (~> 2.3.0)
+ actionpack (3.1.1)
+ activemodel (= 3.1.1)
+ activesupport (= 3.1.1)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.5)
+ rack-cache (~> 1.1)
+ rack-mount (~> 0.8.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.0.2)
+ activemodel (3.1.1)
+ activesupport (= 3.1.1)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.1)
+ activemodel (= 3.1.1)
+ activesupport (= 3.1.1)
+ arel (~> 2.2.1)
+ tzinfo (~> 0.3.29)
+ activeresource (3.1.1)
+ activemodel (= 3.1.1)
+ activesupport (= 3.1.1)
+ activesupport (3.1.1)
+ multi_json (~> 1.0)
+ rails (3.1.1)
+ actionmailer (= 3.1.1)
+ actionpack (= 3.1.1)
+ activerecord (= 3.1.1)
+ activeresource (= 3.1.1)
+ activesupport (= 3.1.1)
+ bundler (~> 1.0)
+ railties (= 3.1.1)
+ railties (3.1.1)
+ actionpack (= 3.1.1)
+ activesupport (= 3.1.1)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ XMLCanonicalizer (1.0.1)
+ log4r (>= 1.0.4)
+ addressable (2.2.6)
+ ansi (1.4.0)
+ arel (2.2.1)
+ builder (3.0.0)
+ chunky_png (1.2.5)
+ coffee-rails (3.1.1)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.1.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.2)
+ compass (0.11.5)
+ chunky_png (~> 1.2)
+ fssm (>= 0.2.7)
+ sass (~> 3.1)
+ crack (0.1.8)
+ dalli (1.1.3)
+ erubis (2.7.0)
+ execjs (1.2.9)
+ multi_json (~> 1.0)
+ faraday (0.7.5)
+ addressable (~> 2.2.6)
+ multipart-post (~> 1.1.3)
+ rack (>= 1.1.0, < 2)
+ fssm (0.2.7)
+ haml (3.1.3)
+ hashie (1.2.0)
+ hike (1.2.1)
+ httmultiparty (0.3.6)
+ httparty (>= 0.7.3)
+ multipart-post
+ httparty (0.7.8)
+ crack (= 0.1.8)
+ i18n (0.6.0)
+ jquery-rails (1.0.16)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json (1.6.1)
+ kaminari (0.12.4)
+ rails (>= 3.0.0)
+ log4r (1.1.9)
+ macaddr (1.5.0)
+ systemu (>= 2.4.0)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ multi_json (1.0.3)
+ multi_xml (0.4.1)
+ multipart-post (1.1.3)
+ net-ldap (0.2.2)
+ nokogiri (1.5.0)
+ oauth (0.4.5)
+ oauth2 (0.5.1)
+ faraday (~> 0.7.4)
+ multi_json (~> 1.0.3)
+ pg (0.11.0)
+ polyglot (0.3.3)
+ pyu-ruby-sasl (0.0.3.3)
+ rack (1.3.5)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-mount (0.8.3)
+ rack (>= 1.0.0)
+ rack-openid (1.3.1)
+ rack (>= 1.1.0)
+ ruby-openid (>= 2.1.8)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails_config (0.2.5)
+ activesupport (>= 3.0)
+ rake (0.9.2.2)
+ rdoc (3.11)
+ json (~> 1.4)
+ redcarpet (1.17.2)
+ rest-client (1.6.7)
+ mime-types (>= 1.16)
+ ruby-openid (2.1.8)
+ ruby-openid-apps-discovery (1.2.0)
+ ruby-openid (>= 2.1.7)
+ rubyntlm (0.1.1)
+ sass (3.1.10)
+ sass-rails (3.1.4)
+ actionpack (~> 3.1.0)
+ railties (~> 3.1.0)
+ sass (>= 3.1.4)
+ sprockets (~> 2.0.0)
+ tilt (~> 1.3.2)
+ soundcloud (0.2.9)
+ hashie
+ httmultiparty (~> 0.3.0)
+ httparty (~> 0.7.3)
+ sprockets (2.0.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.4)
+ systemu (2.4.1)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ turn (0.8.3)
+ ansi
+ tzinfo (0.3.31)
+ uglifier (1.0.4)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ uuid (2.3.4)
+ macaddr (~> 1.0)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.1.0)
+ compass
+ dalli
+ haml
+ jquery-rails
+ kaminari
+ omniauth!
+ pg
+ rails!
+ rails_config
+ redcarpet
+ sass-rails (~> 3.1.0)
+ soundcloud (~> 0.2.9)
+ sqlite3
+ thumbs_up!
+ turn
+ uglifier
@@ -0,0 +1,5 @@
+### Competition
+
+Host a contest, powered by [SoundCloud](http://soundcloud.com).
+
+SoundCloud-Competition is Copyright (c) 2010 Lee Martin and SoundCloud, released under the MIT License.
@@ -0,0 +1,7 @@
+#!/usr/bin/env rake
+# Add your own tasks in files placed in lib/tasks ending in .rake,
+# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
+
+require File.expand_path('../config/application', __FILE__)
+
+SoundCloudCompetition::Application.load_tasks
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@@ -0,0 +1,13 @@
+// This is a manifest file that'll be compiled into including all the files listed below.
+// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
+// be included in the compiled file accessible from http://example.com/assets/application.js
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+//= require jquery
+//= require jquery_ujs
+//= require chosen.jquery.min
+//= require soundmanager2
+//= require jquery.timeago
+//= require jquery.tmpl
+//= require_tree .
Oops, something went wrong.

0 comments on commit f7fc9c6

Please sign in to comment.