Permalink
Browse files

Initial commit - basic system skeleton.

  • Loading branch information...
0 parents commit 29067c724bfacdfae11027c5f7d9d3d1573ed21b @fredwu committed May 23, 2011
Showing with 2,144 additions and 0 deletions.
  1. +8 −0 .gitignore
  2. +1 −0 .rspec
  3. +1 −0 .rvmrc
  4. +37 −0 Gemfile
  5. +273 −0 Gemfile.lock
  6. +16 −0 README.md
  7. +7 −0 Rakefile
  8. +3 −0 app/assets/javascripts/angels.js.coffee
  9. +9 −0 app/assets/javascripts/application.js
  10. +3 −0 app/assets/javascripts/startups.js.coffee
  11. +3 −0 app/assets/javascripts/users.js.coffee
  12. +5 −0 app/assets/stylesheets/angels.css.scss
  13. +7 −0 app/assets/stylesheets/application.css
  14. +5 −0 app/assets/stylesheets/startups.css.scss
  15. +5 −0 app/assets/stylesheets/users.css.scss
  16. +3 −0 app/controllers/angels_controller.rb
  17. +3 −0 app/controllers/application_controller.rb
  18. +3 −0 app/controllers/startups_controller.rb
  19. +3 −0 app/controllers/users_controller.rb
  20. +2 −0 app/helpers/angels_helper.rb
  21. +2 −0 app/helpers/application_helper.rb
  22. +2 −0 app/helpers/startups_helper.rb
  23. +2 −0 app/helpers/users_helper.rb
  24. 0 app/mailers/.gitkeep
  25. 0 app/models/.gitkeep
  26. +28 −0 app/models/ability.rb
  27. +5 −0 app/models/angel.rb
  28. +5 −0 app/models/startup.rb
  29. +41 −0 app/models/user.rb
  30. +2 −0 app/models/user_follower.rb
  31. +49 −0 app/uploaders/logo_uploader.rb
  32. +15 −0 app/views/layouts/application.html.slim
  33. +4 −0 config.ru
  34. +54 −0 config/application.rb
  35. +6 −0 config/boot.rb
  36. +8 −0 config/cucumber.yml
  37. +20 −0 config/database.example.yml
  38. +5 −0 config/environment.rb
  39. +26 −0 config/environments/development.rb
  40. +54 −0 config/environments/production.rb
  41. +41 −0 config/environments/test.rb
  42. +7 −0 config/initializers/backtrace_silencers.rb
  43. +194 −0 config/initializers/devise.rb
  44. +10 −0 config/initializers/inflections.rb
  45. +5 −0 config/initializers/mime_types.rb
  46. +3 −0 config/initializers/rails_config.rb
  47. +7 −0 config/initializers/secret_token.rb
  48. +8 −0 config/initializers/session_store.rb
  49. +93 −0 config/initializers/simple_form.rb
  50. +12 −0 config/initializers/wrap_parameters.rb
  51. +50 −0 config/locales/devise.en.yml
  52. +5 −0 config/locales/en.yml
  53. +24 −0 config/locales/simple_form.en.yml
  54. +68 −0 config/routes.rb
  55. +8 −0 config/settings.yml
  56. +26 −0 db/migrate/20110523095103_devise_create_users.rb
  57. +13 −0 db/migrate/20110523095729_create_user_followers.rb
  58. +13 −0 db/migrate/20110523114239_create_startups.rb
  59. +13 −0 db/migrate/20110523114309_create_angels.rb
  60. +79 −0 db/schema.rb
  61. +7 −0 db/seeds.rb
  62. +100 −0 features/step_definitions/pickle_steps.rb
  63. +211 −0 features/step_definitions/web_steps.rb
  64. +39 −0 features/support/env.rb
  65. +2 −0 features/support/machinist.rb
  66. +33 −0 features/support/paths.rb
  67. +23 −0 features/support/pickle.rb
  68. +39 −0 features/support/selectors.rb
  69. 0 lib/tasks/.gitkeep
  70. +57 −0 lib/tasks/cucumber.rake
  71. +10 −0 lib/templates/slim/scaffold/_form.html.slim
  72. 0 log/.gitkeep
  73. +5 −0 public/robots.txt
  74. +10 −0 script/cucumber
  75. +6 −0 script/rails
  76. +5 −0 spec/controllers/angels_controller_spec.rb
  77. +5 −0 spec/controllers/startups_controller_spec.rb
  78. +5 −0 spec/controllers/users_controller_spec.rb
  79. +15 −0 spec/helpers/angels_helper_spec.rb
  80. +15 −0 spec/helpers/startups_helper_spec.rb
  81. +15 −0 spec/helpers/users_helper_spec.rb
  82. +5 −0 spec/models/angel_spec.rb
  83. +5 −0 spec/models/startup_spec.rb
  84. +17 −0 spec/models/user_follower_spec.rb
  85. +74 −0 spec/models/user_spec.rb
  86. +27 −0 spec/spec_helper.rb
  87. +7 −0 spec/support/blueprints.rb
  88. +3 −0 spec/support/devise.rb
  89. 0 vendor/assets/stylesheets/.gitkeep
  90. 0 vendor/plugins/.gitkeep
@@ -0,0 +1,8 @@
+.DS_Store
+.bundle
+db/*.sqlite3
+log/*.log
+tmp/
+.sass-cache/
+config/database.yml
+
1 .rspec
@@ -0,0 +1 @@
+--colour
1 .rvmrc
@@ -0,0 +1 @@
+rvm ruby-1.9.2@angel_nest --create
37 Gemfile
@@ -0,0 +1,37 @@
+source 'http://rubygems.org'
+
+gem 'rails', '~> 3.1.0.rc1'
+gem 'mysql2'
+
+# core function gems
+gem 'devise', '~> 1.3.0'
+gem 'omniauth', '~> 0.2.0'
+gem 'cancan', '~> 1.6.0'
+gem 'inherited_resources', '~> 1.2.0'
+gem 'simple_form', '~> 1.4.0'
+gem 'rails_config'
+
+# asset gems
+gem 'slim-rails'
+gem 'sass'
+gem 'coffee-script'
+gem 'uglifier'
+gem 'jquery-rails'
+gem 'mini_magick'
+gem 'carrierwave'
+
+group :development, :test do
+ gem 'cucumber-rails'
+ gem 'capybara'
+ gem 'rspec-rails', '>= 2.6.1.beta1'
+ gem 'machinist', '>= 2.0.0.beta2'
+ gem 'pickle'
+ gem 'ffaker'
+ gem 'delorean'
+ gem 'database_cleaner'
+ gem 'launchy'
+end
+
+group :test do
+ gem 'turn', :require => false
+end
@@ -0,0 +1,273 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.1.0.rc1)
+ actionpack (= 3.1.0.rc1)
+ mail (~> 2.3.0)
+ actionpack (3.1.0.rc1)
+ activemodel (= 3.1.0.rc1)
+ activesupport (= 3.1.0.rc1)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6.0beta1)
+ rack (~> 1.3.0.beta2)
+ rack-cache (~> 1.0.1)
+ rack-mount (~> 0.8.1)
+ rack-test (~> 0.6.0)
+ sprockets (~> 2.0.0.beta.5)
+ tzinfo (~> 0.3.27)
+ activemodel (3.1.0.rc1)
+ activesupport (= 3.1.0.rc1)
+ bcrypt-ruby (~> 2.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6.0beta1)
+ activerecord (3.1.0.rc1)
+ activemodel (= 3.1.0.rc1)
+ activesupport (= 3.1.0.rc1)
+ arel (~> 2.1.1)
+ tzinfo (~> 0.3.27)
+ activeresource (3.1.0.rc1)
+ activemodel (= 3.1.0.rc1)
+ activesupport (= 3.1.0.rc1)
+ activesupport (3.1.0.rc1)
+ multi_json (~> 1.0)
+ addressable (2.2.4)
+ ansi (1.2.5)
+ arel (2.1.1)
+ bcrypt-ruby (2.1.4)
+ builder (3.0.0)
+ cancan (1.6.5)
+ capybara (0.4.1.2)
+ celerity (>= 0.7.9)
+ culerity (>= 0.2.4)
+ mime-types (>= 1.16)
+ nokogiri (>= 1.3.3)
+ rack (>= 1.0.0)
+ rack-test (>= 0.5.4)
+ selenium-webdriver (>= 0.0.27)
+ xpath (~> 0.1.3)
+ carrierwave (0.5.4)
+ activesupport (~> 3.0)
+ celerity (0.8.9)
+ childprocess (0.1.9)
+ ffi (~> 1.0.6)
+ chronic (0.3.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.1)
+ configuration (1.2.0)
+ cucumber (0.10.3)
+ builder (>= 2.1.2)
+ diff-lcs (>= 1.1.2)
+ gherkin (>= 2.3.8)
+ json (>= 1.4.6)
+ term-ansicolor (>= 1.0.5)
+ cucumber-rails (0.4.1)
+ cucumber (>= 0.10.1)
+ nokogiri (>= 1.4.4)
+ rack-test (>= 0.5.7)
+ culerity (0.2.15)
+ database_cleaner (0.6.7)
+ delorean (1.0.0)
+ chronic
+ devise (1.3.4)
+ bcrypt-ruby (~> 2.1.2)
+ orm_adapter (~> 0.0.3)
+ warden (~> 1.0.3)
+ diff-lcs (1.1.2)
+ erubis (2.7.0)
+ execjs (1.0.0)
+ multi_json (~> 1.0)
+ faraday (0.6.1)
+ addressable (~> 2.2.4)
+ multipart-post (~> 1.1.0)
+ rack (< 2, >= 1.1.0)
+ ffaker (1.7.0)
+ ffi (1.0.9)
+ gherkin (2.3.8)
+ json (>= 1.4.6)
+ has_scope (0.5.0)
+ hike (1.0.0)
+ i18n (0.6.0)
+ inherited_resources (1.2.2)
+ has_scope (~> 0.5.0)
+ responders (~> 0.6.0)
+ jquery-rails (1.0.7)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ json (1.5.1)
+ json_pure (1.5.1)
+ launchy (0.4.0)
+ configuration (>= 0.0.5)
+ rake (>= 0.8.1)
+ machinist (2.0.0.beta2)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ mini_magick (3.2.1)
+ subexec (~> 0.0.4)
+ multi_json (1.0.3)
+ multi_xml (0.2.2)
+ multipart-post (1.1.1)
+ mysql2 (0.3.2)
+ net-ldap (0.2.2)
+ nokogiri (1.4.4)
+ oa-basic (0.2.6)
+ oa-core (= 0.2.6)
+ rest-client (~> 1.6.0)
+ oa-core (0.2.6)
+ oa-enterprise (0.2.6)
+ addressable (= 2.2.4)
+ net-ldap (~> 0.2.2)
+ nokogiri (~> 1.4.2)
+ oa-core (= 0.2.6)
+ pyu-ruby-sasl (~> 0.0.3.1)
+ rubyntlm (~> 0.1.1)
+ oa-more (0.2.6)
+ multi_json (~> 1.0.0)
+ oa-core (= 0.2.6)
+ rest-client (~> 1.6.0)
+ oa-oauth (0.2.6)
+ faraday (~> 0.6.1)
+ multi_json (~> 1.0.0)
+ multi_xml (~> 0.2.2)
+ oa-core (= 0.2.6)
+ oauth (~> 0.4.0)
+ oauth2 (~> 0.4.1)
+ oa-openid (0.2.6)
+ oa-core (= 0.2.6)
+ rack-openid (~> 1.3.1)
+ ruby-openid-apps-discovery (~> 1.2.0)
+ oauth (0.4.4)
+ oauth2 (0.4.1)
+ faraday (~> 0.6.1)
+ multi_json (>= 0.0.5)
+ omniauth (0.2.6)
+ oa-basic (= 0.2.6)
+ oa-core (= 0.2.6)
+ oa-enterprise (= 0.2.6)
+ oa-more (= 0.2.6)
+ oa-oauth (= 0.2.6)
+ oa-openid (= 0.2.6)
+ orm_adapter (0.0.5)
+ pickle (0.4.7)
+ cucumber (>= 0.8)
+ rake
+ polyglot (0.3.1)
+ pyu-ruby-sasl (0.0.3.2)
+ rack (1.3.0)
+ rack-cache (1.0.2)
+ rack (>= 0.4)
+ rack-mount (0.8.1)
+ 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.0)
+ rack (>= 1.0)
+ rails (3.1.0.rc1)
+ actionmailer (= 3.1.0.rc1)
+ actionpack (= 3.1.0.rc1)
+ activerecord (= 3.1.0.rc1)
+ activeresource (= 3.1.0.rc1)
+ activesupport (= 3.1.0.rc1)
+ bundler (~> 1.0)
+ railties (= 3.1.0.rc1)
+ rails_config (0.2.3)
+ activesupport (~> 3.0)
+ railties (3.1.0.rc1)
+ actionpack (= 3.1.0.rc1)
+ activesupport (= 3.1.0.rc1)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ thor (~> 0.14.6)
+ rake (0.9.0)
+ responders (0.6.4)
+ rest-client (1.6.1)
+ mime-types (>= 1.16)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.2)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+ rspec-rails (2.6.1.beta1)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.6.0)
+ ruby-openid (2.1.8)
+ ruby-openid-apps-discovery (1.2.0)
+ ruby-openid (>= 2.1.7)
+ rubyntlm (0.1.1)
+ rubyzip (0.9.4)
+ sass (3.1.1)
+ selenium-webdriver (0.2.0)
+ childprocess (>= 0.1.7)
+ ffi (>= 1.0.7)
+ json_pure
+ rubyzip
+ simple_form (1.4.0)
+ slim (0.9.4)
+ temple (~> 0.3.0)
+ tilt (~> 1.2)
+ slim-rails (0.2.1)
+ slim (>= 0.9.2)
+ sprockets (2.0.0.beta.8)
+ hike (~> 1.0)
+ rack (~> 1.0)
+ tilt (!= 1.3.0, ~> 1.1)
+ subexec (0.0.4)
+ temple (0.3.0)
+ term-ansicolor (1.0.5)
+ thor (0.14.6)
+ tilt (1.3.1)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ turn (0.8.2)
+ ansi (>= 1.2.2)
+ tzinfo (0.3.27)
+ uglifier (0.5.4)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ warden (1.0.4)
+ rack (>= 1.0)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ cancan (~> 1.6.0)
+ capybara
+ carrierwave
+ coffee-script
+ cucumber-rails
+ database_cleaner
+ delorean
+ devise (~> 1.3.0)
+ ffaker
+ inherited_resources (~> 1.2.0)
+ jquery-rails
+ launchy
+ machinist (>= 2.0.0.beta2)
+ mini_magick
+ mysql2
+ omniauth (~> 0.2.0)
+ pickle
+ rails (~> 3.1.0.rc1)
+ rails_config
+ rspec-rails (>= 2.6.1.beta1)
+ sass
+ simple_form (~> 1.4.0)
+ slim-rails
+ turn
+ uglifier
@@ -0,0 +1,16 @@
+# Angel Nest
+
+## Stack
+
+- ruby 1.9.2
+- rails 3.1
+
+## Setup Instructions
+
+- `gem install bundler`
+- `bundle install`
+
+## Run Test Suites
+
+- `rake spec` for integration and unit tests
+- `rake cucumber` for acceptance tests
@@ -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__)
+
+AngelNest::Application.load_tasks
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,9 @@
+// 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_tree .
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,3 @@
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
@@ -0,0 +1,5 @@
+/*
+ Place all the styles related to the matching controller here.
+ They will automatically be included in application.css.
+ You can use Sass (SCSS) here: http://sass-lang.com/
+*/
@@ -0,0 +1,7 @@
+/*
+ * This is a manifest file that'll automatically include all the stylesheets available in this directory
+ * and any sub-directories. You're free to add application-wide styles to this file and they'll appear at
+ * the top of the compiled file, but it's generally better to create a new file per style scope.
+ *= require_self
+ *= require_tree .
+*/
@@ -0,0 +1,5 @@
+/*
+ Place all the styles related to the matching controller here.
+ They will automatically be included in application.css.
+ You can use Sass (SCSS) here: http://sass-lang.com/
+*/
@@ -0,0 +1,5 @@
+/*
+ Place all the styles related to the matching controller here.
+ They will automatically be included in application.css.
+ You can use Sass (SCSS) here: http://sass-lang.com/
+*/
Oops, something went wrong.

0 comments on commit 29067c7

Please sign in to comment.