Permalink
Browse files

initial commit - all tests green

  • Loading branch information...
0 parents commit 4ef84a50f9ce030450d86084750bfdaa5161dd7f @jasnow committed Jul 16, 2011
Showing with 3,631 additions and 0 deletions.
  1. +1 −0 .gemrc
  2. +6 −0 .gitignore
  3. +2 −0 .rspec
  4. +34 −0 Gemfile
  5. +151 −0 Gemfile.lock
  6. +261 −0 README
  7. +5 −0 README.markdown
  8. +7 −0 Rakefile
  9. BIN app/assets/images/rails.png
  10. +9 −0 app/assets/javascripts/application.js
  11. +7 −0 app/assets/stylesheets/application.css
  12. +4 −0 app/controllers/application_controller.rb
  13. +26 −0 app/controllers/microposts_controller.rb
  14. +22 −0 app/controllers/pages_controller.rb
  15. +17 −0 app/controllers/relationships_controller.rb
  16. +24 −0 app/controllers/sessions_controller.rb
  17. +96 −0 app/controllers/users_controller.rb
  18. +53 −0 app/helpers/application_helper.rb
  19. +15 −0 app/helpers/microposts_helper.rb
  20. +2 −0 app/helpers/pages_helper.rb
  21. +61 −0 app/helpers/sessions_helper.rb
  22. +8 −0 app/helpers/users_helper.rb
  23. 0 app/mailers/.gitkeep
  24. 0 app/models/.gitkeep
  25. +38 −0 app/models/micropost.rb
  26. +22 −0 app/models/relationship.rb
  27. +138 −0 app/models/user.rb
  28. +10 −0 app/views/layouts/_footer.html.erb
  29. +19 −0 app/views/layouts/_header.html.erb
  30. +7 −0 app/views/layouts/_stylesheets.html.erb
  31. +22 −0 app/views/layouts/application.html.erb
  32. +11 −0 app/views/microposts/_micropost.html.erb
  33. +8 −0 app/views/pages/about.html.erb
  34. +5 −0 app/views/pages/contact.html.erb
  35. +8 −0 app/views/pages/help.html.erb
  36. +7 −0 app/views/pages/home.html.erb
  37. +2 −0 app/views/relationships/create.js.erb
  38. +2 −0 app/views/relationships/destroy.js.erb
  39. +17 −0 app/views/sessions/new.html.erb
  40. +13 −0 app/views/shared/_error_messages.html.erb
  41. +6 −0 app/views/shared/_feed.html.erb
  42. +17 −0 app/views/shared/_feed_item.html.erb
  43. +13 −0 app/views/shared/_first_part.erb
  44. +5 −0 app/views/shared/_link_to_delete.erb
  45. +9 −0 app/views/shared/_micropost_form.html.erb
  46. +9 −0 app/views/shared/_second_part.erb
  47. +21 −0 app/views/shared/_stats.html.erb
  48. +11 −0 app/views/shared/_user_info.html.erb
  49. +24 −0 app/views/shared/new_micropost_form.html.erb
  50. +17 −0 app/views/users/_fields.html.erb
  51. +4 −0 app/views/users/_follow.html.erb
  52. +9 −0 app/views/users/_follow_form.html.erb
  53. +4 −0 app/views/users/_sidebar4.html.erb
  54. +4 −0 app/views/users/_unfollow.html.erb
  55. +9 −0 app/views/users/_user.html.erb
  56. +13 −0 app/views/users/edit.html.erb
  57. +9 −0 app/views/users/index.html.erb
  58. +8 −0 app/views/users/new.html.erb
  59. +21 −0 app/views/users/show.html.erb
  60. +22 −0 app/views/users/show_follow.html.erb
  61. +10 −0 app/views/views/layouts/_footer.html.erb
  62. +19 −0 app/views/views/layouts/_header.html.erb
  63. +7 −0 app/views/views/layouts/_stylesheets.html.erb
  64. +22 −0 app/views/views/layouts/application.html.erb
  65. +11 −0 app/views/views/microposts/_micropost.html.erb
  66. +8 −0 app/views/views/pages/about.html.erb
  67. +5 −0 app/views/views/pages/contact.html.erb
  68. +8 −0 app/views/views/pages/help.html.erb
  69. +7 −0 app/views/views/pages/home.html.erb
  70. +2 −0 app/views/views/relationships/create.js.erb
  71. +2 −0 app/views/views/relationships/destroy.js.erb
  72. +17 −0 app/views/views/sessions/new.html.erb
  73. +13 −0 app/views/views/shared/_error_messages.html.erb
  74. +6 −0 app/views/views/shared/_feed.html.erb
  75. +17 −0 app/views/views/shared/_feed_item.html.erb
  76. +13 −0 app/views/views/shared/_first_part.erb
  77. +5 −0 app/views/views/shared/_link_to_delete.erb
  78. +9 −0 app/views/views/shared/_micropost_form.html.erb
  79. +9 −0 app/views/views/shared/_second_part.erb
  80. +21 −0 app/views/views/shared/_stats.html.erb
  81. +11 −0 app/views/views/shared/_user_info.html.erb
  82. +24 −0 app/views/views/shared/new_micropost_form.html.erb
  83. +17 −0 app/views/views/users/_fields.html.erb
  84. +4 −0 app/views/views/users/_follow.html.erb
  85. +9 −0 app/views/views/users/_follow_form.html.erb
  86. +4 −0 app/views/views/users/_sidebar4.html.erb
  87. +4 −0 app/views/views/users/_unfollow.html.erb
  88. +9 −0 app/views/views/users/_user.html.erb
  89. +13 −0 app/views/views/users/edit.html.erb
  90. +9 −0 app/views/views/users/index.html.erb
  91. +8 −0 app/views/views/users/new.html.erb
  92. +21 −0 app/views/views/users/show.html.erb
  93. +22 −0 app/views/views/users/show_follow.html.erb
  94. +4 −0 config.ru
  95. +42 −0 config/application.rb
  96. +6 −0 config/boot.rb
  97. +25 −0 config/database.yml
  98. +5 −0 config/environment.rb
  99. +27 −0 config/environments/development.rb
  100. +54 −0 config/environments/production.rb
  101. +39 −0 config/environments/test.rb
  102. +7 −0 config/initializers/backtrace_silencers.rb
  103. +10 −0 config/initializers/inflections.rb
  104. +5 −0 config/initializers/mime_types.rb
  105. +7 −0 config/initializers/secret_token.rb
  106. +8 −0 config/initializers/session_store.rb
  107. +12 −0 config/initializers/wrap_parameters.rb
  108. +5 −0 config/locales/en.yml
  109. +23 −0 config/routes.rb
  110. +14 −0 db/migrate/20110501173122_create_users.rb
  111. +11 −0 db/migrate/20110501190040_add_email_uniqueness_index.rb
  112. +9 −0 db/migrate/20110501224340_add_password_to_users.rb
  113. +9 −0 db/migrate/20110501231616_add_salt_to_users.rb
  114. +9 −0 db/migrate/20110514204523_add_admin_to_users.rb
  115. +15 −0 db/migrate/20110515172937_create_microposts.rb
  116. +16 −0 db/migrate/20110521134254_create_relationships.rb
  117. +46 −0 db/schema.rb
  118. +7 −0 db/seeds.rb
  119. +2 −0 doc/README_FOR_APP
  120. 0 lib/tasks/.gitkeep
  121. 0 log/.gitkeep
  122. +26 −0 public/404.html
  123. +26 −0 public/422.html
  124. +26 −0 public/500.html
  125. 0 public/favicon.ico
  126. +5 −0 public/robots.txt
  127. +6 −0 script/rails
  128. +98 −0 spec/controllers/microposts_controller_spec.rb
  129. +81 −0 spec/controllers/pages_controller_spec.rb
  130. +63 −0 spec/controllers/relationships_controller_spec.rb
  131. +67 −0 spec/controllers/sessions_controller_spec.rb
  132. +403 −0 spec/controllers/users_controller_spec.rb
  133. +17 −0 spec/factories.rb
  134. +70 −0 spec/models/micropost_spec.rb
  135. +59 −0 spec/models/relationship_spec.rb
  136. +263 −0 spec/models/user_spec.rb
  137. +22 −0 spec/requests/friendly_forwardings_spec.rb
  138. +80 −0 spec/requests/layout_links_spec.rb
  139. +42 −0 spec/requests/microposts_spec.rb
  140. +55 −0 spec/requests/users_spec.rb
  141. +39 −0 spec/spec_helper.rb
  142. 0 test/fixtures/.gitkeep
  143. 0 test/functional/.gitkeep
  144. 0 test/integration/.gitkeep
  145. +12 −0 test/performance/browsing_test.rb
  146. +13 −0 test/test_helper.rb
  147. 0 test/unit/.gitkeep
  148. 0 vendor/assets/stylesheets/.gitkeep
  149. 0 vendor/plugins/.gitkeep
1 .gemrc
@@ -0,0 +1 @@
+gem: --no-ri --no-rdoc
@@ -0,0 +1,6 @@
+.bundle
+db/*.sqlite3
+log/*.log
+*.log
+tmp/
+*~
2 .rspec
@@ -0,0 +1,2 @@
+--colour
+--drb
34 Gemfile
@@ -0,0 +1,34 @@
+source 'http://rubygems.org'
+
+gem 'rails', '3.1.0.rc4'
+
+gem 'gravatar_image_tag', '1.0.0.pre2'
+
+#gem 'will_paginate', '3.0.pre2'
+gem 'will_paginate', '3.0.pre2' # I PATCHED THIS LOCALLY.
+#, :git => "git://github.com/akitaonrails/will_paginate.git", :branch => "rails3.1"
+
+gem 'sqlite3', '1.3.3'
+
+# Asset template engines
+gem 'sass-rails', "~> 3.1.0.rc"
+gem 'coffee-script'
+gem 'uglifier'
+
+gem 'jquery-rails'
+
+group :development do
+ gem 'rspec-rails', '2.6.1'
+ gem 'annotate', '2.4.0'
+ gem 'faker', '0.3.1'
+end
+
+group :test do
+ gem 'rspec-rails', '2.6.1'
+ gem 'webrat', '0.7.1'
+ gem 'spork', '0.9.0.rc9'
+ gem 'factory_girl_rails', '1.0'
+
+ # Pretty printed test output
+ gem 'turn', :require => false
+end
@@ -0,0 +1,151 @@
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ mail (~> 2.3.0)
+ actionpack (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ i18n (~> 0.6)
+ rack (~> 1.3.0)
+ rack-cache (~> 1.0.1)
+ rack-mount (~> 0.8.1)
+ rack-test (~> 0.6.0)
+ sprockets (~> 2.0.0.beta.10)
+ tzinfo (~> 0.3.27)
+ activemodel (3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bcrypt-ruby (~> 2.1.4)
+ builder (~> 3.0.0)
+ i18n (~> 0.6)
+ activerecord (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ arel (~> 2.1.1)
+ tzinfo (~> 0.3.27)
+ activeresource (3.1.0.rc4)
+ activemodel (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ activesupport (3.1.0.rc4)
+ multi_json (~> 1.0)
+ annotate (2.4.0)
+ ansi (1.3.0)
+ arel (2.1.3)
+ bcrypt-ruby (2.1.4)
+ builder (3.0.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.1.1)
+ diff-lcs (1.1.2)
+ erubis (2.7.0)
+ execjs (1.2.0)
+ multi_json (~> 1.0)
+ factory_girl (1.3.3)
+ factory_girl_rails (1.0)
+ factory_girl (~> 1.3)
+ rails (>= 3.0.0.beta4)
+ faker (0.3.1)
+ gravatar_image_tag (1.0.0.pre2)
+ hike (1.1.0)
+ i18n (0.6.0)
+ jquery-rails (1.0.12)
+ railties (~> 3.0)
+ thor (~> 0.14)
+ mail (2.3.0)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.16)
+ multi_json (1.0.3)
+ nokogiri (1.5.0)
+ polyglot (0.3.1)
+ rack (1.3.1)
+ rack-cache (1.0.2)
+ rack (>= 0.4)
+ rack-mount (0.8.1)
+ rack (>= 1.0.0)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.0)
+ rack (>= 1.0)
+ rails (3.1.0.rc4)
+ actionmailer (= 3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activerecord (= 3.1.0.rc4)
+ activeresource (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ bundler (~> 1.0)
+ railties (= 3.1.0.rc4)
+ railties (3.1.0.rc4)
+ actionpack (= 3.1.0.rc4)
+ activesupport (= 3.1.0.rc4)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2)
+ rdoc (3.8)
+ rspec (2.6.0)
+ rspec-core (~> 2.6.0)
+ rspec-expectations (~> 2.6.0)
+ rspec-mocks (~> 2.6.0)
+ rspec-core (2.6.4)
+ rspec-expectations (2.6.0)
+ diff-lcs (~> 1.1.2)
+ rspec-mocks (2.6.0)
+ rspec-rails (2.6.1)
+ actionpack (~> 3.0)
+ activesupport (~> 3.0)
+ railties (~> 3.0)
+ rspec (~> 2.6.0)
+ sass (3.1.4)
+ sass-rails (3.1.0.rc.4)
+ actionpack (~> 3.1.0.rc1)
+ railties (~> 3.1.0.rc1)
+ sass (>= 3.1.4)
+ sprockets (>= 2.0.0.beta.9)
+ spork (0.9.0.rc9)
+ sprockets (2.0.0.beta.10)
+ hike (~> 1.0)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.3)
+ thor (0.14.6)
+ tilt (1.3.2)
+ treetop (1.4.9)
+ polyglot (>= 0.3.1)
+ turn (0.8.2)
+ ansi (>= 1.2.2)
+ tzinfo (0.3.29)
+ uglifier (1.0.0)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ webrat (0.7.1)
+ nokogiri (>= 1.2.0)
+ rack (>= 1.0)
+ rack-test (>= 0.5.3)
+ will_paginate (3.0.pre2)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ annotate (= 2.4.0)
+ coffee-script
+ factory_girl_rails (= 1.0)
+ faker (= 0.3.1)
+ gravatar_image_tag (= 1.0.0.pre2)
+ jquery-rails
+ rails (= 3.1.0.rc4)
+ rspec-rails (= 2.6.1)
+ sass-rails (~> 3.1.0.rc)
+ spork (= 0.9.0.rc9)
+ sqlite3 (= 1.3.3)
+ turn
+ uglifier
+ webrat (= 0.7.1)
+ will_paginate (= 3.0.pre2)
Oops, something went wrong.

0 comments on commit 4ef84a5

Please sign in to comment.