Permalink
Browse files

First commit

  • Loading branch information...
0 parents commit 34fb64ad4b3fbd86492d993a58ea630420ce6061 @adarsh committed Feb 13, 2012
Showing with 1,637 additions and 0 deletions.
  1. +5 −0 .gitignore
  2. +1 −0 .rspec
  3. +49 −0 Gemfile
  4. +186 −0 Gemfile.lock
  5. +38 −0 Guardfile
  6. +261 −0 README
  7. +7 −0 Rakefile
  8. BIN app/assets/images/rails.png
  9. +9 −0 app/assets/javascripts/application.js
  10. +7 −0 app/assets/stylesheets/application.css
  11. +3 −0 app/controllers/application_controller.rb
  12. +2 −0 app/helpers/application_helper.rb
  13. 0 app/mailers/.gitkeep
  14. 0 app/models/.gitkeep
  15. +14 −0 app/views/layouts/application.html.erb
  16. +6 −0 bin/codebreaker
  17. +4 −0 config.ru
  18. +48 −0 config/application.rb
  19. +6 −0 config/boot.rb
  20. +8 −0 config/cucumber.yml
  21. +28 −0 config/database.yml
  22. +5 −0 config/environment.rb
  23. +30 −0 config/environments/development.rb
  24. +60 −0 config/environments/production.rb
  25. +39 −0 config/environments/test.rb
  26. +7 −0 config/initializers/backtrace_silencers.rb
  27. +10 −0 config/initializers/inflections.rb
  28. +5 −0 config/initializers/mime_types.rb
  29. +7 −0 config/initializers/secret_token.rb
  30. +8 −0 config/initializers/session_store.rb
  31. +14 −0 config/initializers/wrap_parameters.rb
  32. +5 −0 config/locales/en.yml
  33. +58 −0 config/routes.rb
  34. +7 −0 db/seeds.rb
  35. +2 −0 doc/README_FOR_APP
  36. +10 −0 features/codebreaker_starts_game.feature
  37. +43 −0 features/codebreaker_submits_guess.feature
  38. +26 −0 features/step_definitions/codebreaker_steps.rb
  39. +103 −0 features/support/env.rb
  40. 0 lib/assets/.gitkeep
  41. +1 −0 lib/codebreaker.rb
  42. +12 −0 lib/codebreaker/game.rb
  43. 0 lib/tasks/.gitkeep
  44. +65 −0 lib/tasks/cucumber.rake
  45. 0 log/.gitkeep
  46. +26 −0 public/404.html
  47. +26 −0 public/422.html
  48. +26 −0 public/500.html
  49. 0 public/favicon.ico
  50. +241 −0 public/index.html
  51. +5 −0 public/robots.txt
  52. +10 −0 script/cucumber
  53. +6 −0 script/rails
  54. +20 −0 spec/codebreaker/game_spec.rb
  55. +78 −0 spec/spec_helper.rb
  56. 0 vendor/assets/stylesheets/.gitkeep
  57. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,5 @@
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
@@ -0,0 +1 @@
+--colour
@@ -0,0 +1,49 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.1'
+
+# Bundle edge Rails instead:
+# gem 'rails', :git => 'git://github.com/rails/rails.git'
+
+gem 'sqlite3'
+
+
+# Gems used only for assets and not required
+# in production environments by default.
+group :assets do
+ gem 'sass-rails', '~> 3.1.4'
+ gem 'coffee-rails', '~> 3.1.1'
+ gem 'uglifier', '>= 1.0.3'
+end
+
+gem 'jquery-rails'
+
+gem 'rspec'
+gem 'rspec-rails'
+gem 'cucumber-rails'
+gem "guard-rspec", ">= 0.4.3"
+gem "guard-cucumber", ">= 0.6.1"
+gem 'guard-spork'
+gem 'libnotify', :group => :development
+gem 'rb-inotify', :group => :development
+gem 'database_cleaner'
+#gem 'rb-fchange'
+#gem 'rb-fsevent'
+
+# To use ActiveModel has_secure_password
+# gem 'bcrypt-ruby', '~> 3.0.0'
+
+# Use unicorn as the web server
+# gem 'unicorn'
+
+# Deploy with Capistrano
+# gem 'capistrano'
+
+# To use debugger
+# gem 'ruby-debug19', :require => 'ruby-debug'
+
+group :test, :development do
+ # Pretty printed test output
+ #gem 'turn', :require => false
+
+end
@@ -0,0 +1,186 @@
+GEM
+ remote: http://rubygems.org/
+ 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.2)
+ 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)
+ arel (2.2.1)
+ builder (3.0.0)
+ capybara (1.1.2)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (~> 2.0)
+ xpath (~> 0.1.4)
+ childprocess (0.2.3)
+ ffi (~> 1.0.6)
+ 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.2.0)
+ cucumber (1.1.4)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (~> 2.7.1)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.6)
+ cucumber-rails (1.2.1)
+ capybara (>= 1.1.2)
+ cucumber (>= 1.1.3)
+ nokogiri (>= 1.5.0)
+ database_cleaner (0.7.0)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ execjs (1.2.13)
+ multi_json (~> 1.0)
+ ffi (1.0.11)
+ gherkin (2.7.1)
+ json (>= 1.4.6)
+ guard (0.9.1)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-cucumber (0.7.4)
+ cucumber (>= 0.10)
+ guard (>= 0.8.3)
+ guard-rspec (0.5.9)
+ guard (>= 0.8.4)
+ guard-spork (0.4.1)
+ guard (>= 0.8.4)
+ spork (>= 0.8.4)
+ hike (1.2.1)
+ i18n (0.6.0)
+ jquery-rails (1.0.19)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json (1.6.4)
+ libnotify (0.6.0)
+ ffi (~> 1.0.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.4)
+ nokogiri (1.5.0)
+ polyglot (0.3.3)
+ rack (1.3.6)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-mount (0.8.3)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 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)
+ rake (0.9.2.2)
+ rb-inotify (0.8.8)
+ ffi (>= 0.5.0)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.7.0)
+ rspec-core (~> 2.7.0)
+ rspec-expectations (~> 2.7.0)
+ rspec-mocks (~> 2.7.0)
+ rspec-core (2.7.1)
+ rspec-expectations (2.7.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.7.0)
+ rspec-rails (2.7.0)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.7.0)
+ rubyzip (0.9.5)
+ sass (3.1.12)
+ sass-rails (3.1.5)
+ actionpack (~> 3.1.0)
+ railties (~> 3.1.0)
+ sass (~> 3.1.10)
+ tilt (~> 1.3.2)
+ selenium-webdriver (2.15.0)
+ childprocess (>= 0.2.1)
+ ffi (~> 1.0.9)
+ multi_json (~> 1.0.4)
+ rubyzip
+ spork (0.9.0.rc9)
+ sprockets (2.0.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.5)
+ term-ansicolor (1.0.7)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.31)
+ uglifier (1.2.1)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ coffee-rails (~> 3.1.1)
+ cucumber-rails
+ database_cleaner
+ guard-cucumber (>= 0.6.1)
+ guard-rspec (>= 0.4.3)
+ guard-spork
+ jquery-rails
+ libnotify
+ rails (= 3.1.1)
+ rb-inotify
+ rspec
+ rspec-rails
+ sass-rails (~> 3.1.4)
+ sqlite3
+ uglifier (>= 1.0.3)
@@ -0,0 +1,38 @@
+# A sample Guardfile
+# More info at https://github.com/guard/guard#readme
+
+#guard 'spork', :cucumber_env => { 'RAILS_ENV' => 'test' }, :rspec_env => { 'RAILS_ENV' => 'test' } do
+# watch('config/application.rb')
+# watch('config/environment.rb')
+# watch(%r{^config/environments/.+\.rb$})
+# watch(%r{^config/initializers/.+\.rb$})
+# watch('Gemfile')
+# watch('Gemfile.lock')
+# watch('spec/spec_helper.rb') { :rspec }
+# watch(%r{features/support/}) { :cucumber }
+#end
+
+guard 'cucumber' do
+ watch(%r{^features/.+\.feature$})
+ watch(%r{^features/support/.+$}) { 'features' }
+ watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
+end
+
+guard 'rspec', :version => 2 do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ # Rails example
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^app/(.*)(\.erb|\.haml)$}) { |m| "spec/#{m[1]}#{m[2]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/acceptance/#{m[1]}_spec.rb"] }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch('spec/spec_helper.rb') { "spec" }
+ watch('config/routes.rb') { "spec/routing" }
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
+ # Capybara request specs
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
+end
Oops, something went wrong.

0 comments on commit 34fb64a

Please sign in to comment.