Permalink
Browse files

Final version of Part 1 Photogram TDD

  • Loading branch information...
benwalks committed Jul 11, 2015
0 parents commit b763f9f4ba46a73f13c33dd24ab659d66294ab2b
Showing with 1,669 additions and 0 deletions.
  1. BIN .DS_Store
  2. +17 −0 .gitignore
  3. +2 −0 .rspec
  4. +29 −0 Gemfile
  5. +214 −0 Gemfile.lock
  6. +28 −0 README.rdoc
  7. +6 −0 Rakefile
  8. 0 app/assets/images/.keep
  9. +17 −0 app/assets/javascripts/application.js
  10. +3 −0 app/assets/javascripts/posts.coffee
  11. +95 −0 app/assets/stylesheets/application.scss
  12. +3 −0 app/assets/stylesheets/posts.scss
  13. +5 −0 app/controllers/application_controller.rb
  14. 0 app/controllers/concerns/.keep
  15. +53 −0 app/controllers/posts_controller.rb
  16. +10 −0 app/helpers/application_helper.rb
  17. +2 −0 app/helpers/posts_helper.rb
  18. 0 app/mailers/.keep
  19. 0 app/models/.keep
  20. 0 app/models/concerns/.keep
  21. +7 −0 app/models/post.rb
  22. +29 −0 app/views/layouts/application.html.haml
  23. +14 −0 app/views/posts/edit.html.haml
  24. +10 −0 app/views/posts/index.html.haml
  25. +8 −0 app/views/posts/new.html.haml
  26. +13 −0 app/views/posts/show.html.haml
  27. +3 −0 bin/bundle
  28. +8 −0 bin/rails
  29. +8 −0 bin/rake
  30. +29 −0 bin/setup
  31. +15 −0 bin/spring
  32. +4 −0 config.ru
  33. +26 −0 config/application.rb
  34. +3 −0 config/boot.rb
  35. +25 −0 config/database.yml
  36. +5 −0 config/environment.rb
  37. +41 −0 config/environments/development.rb
  38. +79 −0 config/environments/production.rb
  39. +42 −0 config/environments/test.rb
  40. +11 −0 config/initializers/assets.rb
  41. +7 −0 config/initializers/backtrace_silencers.rb
  42. +3 −0 config/initializers/cookies_serializer.rb
  43. +4 −0 config/initializers/filter_parameter_logging.rb
  44. +16 −0 config/initializers/inflections.rb
  45. +4 −0 config/initializers/mime_types.rb
  46. +3 −0 config/initializers/session_store.rb
  47. +166 −0 config/initializers/simple_form.rb
  48. +14 −0 config/initializers/wrap_parameters.rb
  49. +23 −0 config/locales/en.yml
  50. +31 −0 config/locales/simple_form.en.yml
  51. +5 −0 config/routes.rb
  52. +22 −0 config/secrets.yml
  53. +9 −0 db/migrate/20150705063623_create_posts.rb
  54. +11 −0 db/migrate/20150705070232_add_attachment_image_to_posts.rb
  55. +26 −0 db/schema.rb
  56. +7 −0 db/seeds.rb
  57. 0 lib/assets/.keep
  58. 0 lib/tasks/.keep
  59. +13 −0 lib/templates/erb/scaffold/_form.html.erb
  60. 0 log/.keep
  61. +67 −0 public/404.html
  62. +67 −0 public/422.html
  63. +66 −0 public/500.html
  64. 0 public/favicon.ico
  65. +5 −0 public/robots.txt
  66. BIN public/system/posts/images/000/000/001/medium/coffee.jpg
  67. BIN public/system/posts/images/000/000/001/original/coffee.jpg
  68. BIN public/system/posts/images/000/000/002/medium/coffee.jpg
  69. BIN public/system/posts/images/000/000/002/original/coffee.jpg
  70. BIN public/system/posts/images/000/000/017/medium/photo-1425136738262-212551713a58.jpg
  71. BIN public/system/posts/images/000/000/017/original/photo-1425136738262-212551713a58.jpg
  72. BIN public/system/posts/images/000/000/018/medium/FeelsGoodGoat_-_Little.png
  73. BIN public/system/posts/images/000/000/018/original/FeelsGoodGoat_-_Little.png
  74. BIN public/system/posts/images/000/000/019/medium/FeelsGoodGoat_-_Little.png
  75. BIN public/system/posts/images/000/000/019/original/FeelsGoodGoat_-_Little.png
  76. BIN public/system/posts/images/000/000/020/medium/FeelsGoodGoat_-_Little.png
  77. BIN public/system/posts/images/000/000/020/original/FeelsGoodGoat_-_Little.png
  78. BIN spec/.DS_Store
  79. +5 −0 spec/controllers/posts_controller_spec.rb
  80. +6 −0 spec/factories/posts.rb
  81. +20 −0 spec/features/creating_new_posts_spec.rb
  82. +18 −0 spec/features/deleting_posts_spec.rb
  83. +13 −0 spec/features/displaying_index_posts_spec.rb
  84. +24 −0 spec/features/editing_posts_spec.rb
  85. +11 −0 spec/features/viewing_posts_spec.rb
  86. BIN spec/files/.DS_Store
  87. BIN spec/files/coffee.zip
  88. BIN spec/files/images/coffee.jpg
  89. BIN spec/files/images/mountain.jpg
  90. BIN spec/files/images/waves.jpg
  91. +52 −0 spec/rails_helper.rb
  92. +87 −0 spec/spec_helper.rb
  93. 0 vendor/assets/javascripts/.keep
  94. 0 vendor/assets/stylesheets/.keep
BIN +6 KB .DS_Store
Binary file not shown.
@@ -0,0 +1,17 @@
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
#
# If you find yourself ignoring temporary files generated by your text editor
# or operating system, you probably want to add a global ignore instead:
# git config --global core.excludesfile '~/.gitignore_global'
# Ignore bundler config.
/.bundle
# Ignore the default SQLite database.
/db/*.sqlite3
/db/*.sqlite3-journal
# Ignore all logfiles and tempfiles.
/log/*
!/log/.keep
/tmp
2 .rspec
@@ -0,0 +1,2 @@
--color
--require spec_helper
29 Gemfile
@@ -0,0 +1,29 @@
source 'https://rubygems.org'
gem 'rails', '4.2.0'
gem 'sqlite3'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'haml', '~> 4.0.6'
gem 'simple_form', '~> 3.1.0'
gem 'paperclip', '~> 4.2'
gem 'bootstrap-sass', '~> 3.3.3'
group :test do
gem 'byebug'
gem 'web-console', '~> 2.0'
gem 'spring'
end
group :development, :test do
gem 'capybara', '~> 2.4.4'
gem 'rspec-rails', '~> 3.2.1'
gem "factory_girl_rails", "~> 4.0"
end
@@ -0,0 +1,214 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.0)
actionpack (= 4.2.0)
actionview (= 4.2.0)
activejob (= 4.2.0)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.0)
actionview (= 4.2.0)
activesupport (= 4.2.0)
rack (~> 1.6.0)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
actionview (4.2.0)
activesupport (= 4.2.0)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.1)
activejob (4.2.0)
activesupport (= 4.2.0)
globalid (>= 0.3.0)
activemodel (4.2.0)
activesupport (= 4.2.0)
builder (~> 3.1)
activerecord (4.2.0)
activemodel (= 4.2.0)
activesupport (= 4.2.0)
arel (~> 6.0)
activesupport (4.2.0)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
arel (6.0.0)
autoprefixer-rails (5.2.0)
execjs
json
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.4.1)
autoprefixer-rails (>= 5.0.0.1)
sass (>= 3.2.19)
builder (3.2.2)
byebug (5.0.0)
columnize (= 0.9.0)
capybara (2.4.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.5)
climate_control (>= 0.0.3, < 1.0)
coffee-rails (4.1.0)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.9.1.1)
columnize (0.9.0)
debug_inspector (0.0.2)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.5.2)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
globalid (0.3.5)
activesupport (>= 4.1.0)
haml (4.0.6)
tilt
i18n (0.7.0)
jbuilder (2.3.0)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (4.0.4)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
loofah (2.0.2)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.6.1)
mini_portile (0.6.2)
minitest (5.7.0)
multi_json (1.11.1)
nokogiri (1.6.6.2)
mini_portile (~> 0.6.0)
paperclip (4.2.1)
activemodel (>= 3.0.0)
activesupport (>= 3.0.0)
cocaine (~> 0.5.3)
mime-types
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.0)
actionmailer (= 4.2.0)
actionpack (= 4.2.0)
actionview (= 4.2.0)
activejob (= 4.2.0)
activemodel (= 4.2.0)
activerecord (= 4.2.0)
activesupport (= 4.2.0)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.0)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.6)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.2)
loofah (~> 2.0)
railties (4.2.0)
actionpack (= 4.2.0)
activesupport (= 4.2.0)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.4.2)
rdoc (4.2.0)
json (~> 1.4)
rspec-core (3.2.3)
rspec-support (~> 3.2.0)
rspec-expectations (3.2.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.2.0)
rspec-mocks (3.2.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.2.0)
rspec-rails (3.2.1)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.2.0)
rspec-expectations (~> 3.2.0)
rspec-mocks (~> 3.2.0)
rspec-support (~> 3.2.0)
rspec-support (3.2.2)
sass (3.4.15)
sass-rails (5.0.3)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (~> 1.1)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
simple_form (3.1.0)
actionpack (~> 4.0)
activemodel (~> 4.0)
spring (1.3.6)
sprockets (3.2.0)
rack (~> 1.0)
sprockets-rails (2.3.2)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.10)
thor (0.19.1)
thread_safe (0.3.5)
tilt (1.4.1)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.1)
execjs (>= 0.3.0)
json (>= 1.8.0)
web-console (2.1.3)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
bootstrap-sass (~> 3.3.3)
byebug
capybara (~> 2.4.4)
coffee-rails (~> 4.1.0)
factory_girl_rails (~> 4.0)
haml (~> 4.0.6)
jbuilder (~> 2.0)
jquery-rails
paperclip (~> 4.2)
rails (= 4.2.0)
rspec-rails (~> 3.2.1)
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
simple_form (~> 3.1.0)
spring
sqlite3
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
@@ -0,0 +1,28 @@
== README
This README would normally document whatever steps are necessary to get the
application up and running.
Things you may want to cover:
* Ruby version
* System dependencies
* Configuration
* Database creation
* Database initialization
* How to run the test suite
* Services (job queues, cache servers, search engines, etc.)
* Deployment instructions
* ...
Please feel free to use a different markup language if you do not plan to run
<tt>rake doc:app</tt>.
@@ -0,0 +1,6 @@
# 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__)
Rails.application.load_tasks
No changes.
@@ -0,0 +1,17 @@
// This is a manifest file that'll be compiled into application.js, which will include all the files
// listed below.
//
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
// or any plugin's vendor/assets/javascripts directory can be referenced here using a relative path.
//
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// compiled file.
//
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
// about supported directives.
//
//= require jquery
//= require jquery_ujs
//= require bootstrap-sprockets
//= require turbolinks
//= 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://coffeescript.org/
Oops, something went wrong.

0 comments on commit b763f9f

Please sign in to comment.