Skip to content
Permalink
Browse files

first

  • Loading branch information
rcb09003 committed Nov 5, 2013
0 parents commit 39da48b2f07ad805d4cafabf3fa7c0b028e38a88
Showing with 41,134 additions and 0 deletions.
  1. +17 −0 .gitignore
  2. +1 −0 .rspec
  3. +37 −0 Gemfile
  4. +185 −0 Gemfile.lock
  5. +28 −0 README.rdoc
  6. +6 −0 Rakefile
  7. 0 app/assets/images/.keep
  8. BIN app/assets/images/rails.png
  9. +18 −0 app/assets/javascripts/application.js
  10. +3 −0 app/assets/javascripts/products.js.coffee
  11. +3 −0 app/assets/javascripts/sessions.js.coffee
  12. +3 −0 app/assets/javascripts/static_pages.js.coffee
  13. +3 −0 app/assets/javascripts/users.js.coffee
  14. +13 −0 app/assets/stylesheets/application.css
  15. +3 −0 app/assets/stylesheets/products.css.scss
  16. +3 −0 app/assets/stylesheets/sessions.css.scss
  17. +194 −0 app/assets/stylesheets/static_pages.css.scss
  18. +5 −0 app/assets/stylesheets/users.css.scss
  19. +6 −0 app/controllers/application_controller.rb
  20. 0 app/controllers/concerns/.keep
  21. +7 −0 app/controllers/products_controller.rb
  22. +21 −0 app/controllers/sessions_controller.rb
  23. +16 −0 app/controllers/static_pages_controller.rb
  24. +75 −0 app/controllers/users_controller.rb
  25. +13 −0 app/helpers/application_helper.rb
  26. +2 −0 app/helpers/products_helper.rb
  27. +38 −0 app/helpers/sessions_helper.rb
  28. +2 −0 app/helpers/static_pages_helper.rb
  29. +12 −0 app/helpers/users_helper.rb
  30. 0 app/mailers/.keep
  31. 0 app/models/.keep
  32. 0 app/models/concerns/.keep
  33. +2 −0 app/models/product.rb
  34. +25 −0 app/models/user.rb
  35. +13 −0 app/views/layouts/_footer.html.erb
  36. +31 −0 app/views/layouts/_header.html.erb
  37. +3 −0 app/views/layouts/_shim.html.erb
  38. +22 −0 app/views/layouts/application.html.erb
  39. +1 −0 app/views/products/show.html.erb
  40. +19 −0 app/views/sessions/new.html.erb
  41. +12 −0 app/views/shared/_error_messages.html.erb
  42. +8 −0 app/views/static_pages/about.html.erb
  43. +6 −0 app/views/static_pages/contact.html.erb
  44. +8 −0 app/views/static_pages/help.html.erb
  45. +13 −0 app/views/static_pages/home.html.erb
  46. +3 −0 app/views/static_pages/terms.html.erb
  47. +8 −0 app/views/users/_user.html.erb
  48. +27 −0 app/views/users/edit.html.erb
  49. +10 −0 app/views/users/index.html.erb
  50. +25 −0 app/views/users/new.html.erb
  51. +11 −0 app/views/users/show.html.erb
  52. +3 −0 bin/bundle
  53. +4 −0 bin/rails
  54. +4 −0 bin/rake
  55. +4 −0 config.ru
  56. +29 −0 config/application.rb
  57. +4 −0 config/boot.rb
  58. +26 −0 config/database.yml
  59. +5 −0 config/environment.rb
  60. +29 −0 config/environments/development.rb
  61. +84 −0 config/environments/production.rb
  62. +39 −0 config/environments/test.rb
  63. +7 −0 config/initializers/backtrace_silencers.rb
  64. +4 −0 config/initializers/filter_parameter_logging.rb
  65. +16 −0 config/initializers/inflections.rb
  66. +5 −0 config/initializers/mime_types.rb
  67. +29 −0 config/initializers/secret_token.rb
  68. +3 −0 config/initializers/session_store.rb
  69. +14 −0 config/initializers/wrap_parameters.rb
  70. +23 −0 config/locales/en.yml
  71. +68 −0 config/routes.rb
  72. +10 −0 db/migrate/20131008195946_create_users.rb
  73. +5 −0 db/migrate/20131008203713_add_index_to_users_email.rb
  74. +5 −0 db/migrate/20131014083311_add_password_digest_to_users.rb
  75. +10 −0 db/migrate/20131014193549_create_products.rb
  76. +6 −0 db/migrate/20131028195714_add_remember_token_to_users.rb
  77. +5 −0 db/migrate/20131105022512_add_admin_to_users.rb
  78. +36 −0 db/schema.rb
  79. +7 −0 db/seeds.rb
  80. 0 lib/assets/.keep
  81. 0 lib/tasks/.keep
  82. +18 −0 lib/tasks/sample_data.rake
  83. 0 log/.keep
  84. +58 −0 public/404.html
  85. +58 −0 public/422.html
  86. +57 −0 public/500.html
  87. +10,607 −0 public/assets/application-017fef5bdeab67d9481b2c2844a673f3.js
  88. BIN public/assets/application-017fef5bdeab67d9481b2c2844a673f3.js.gz
  89. +5,040 −0 public/assets/application-488e2431f6556279cbd5b15ede79a470.css
  90. BIN public/assets/application-488e2431f6556279cbd5b15ede79a470.css.gz
  91. +10,603 −0 public/assets/application-4ab8ed6c16f4f87251a5266261707640.js
  92. BIN public/assets/application-4ab8ed6c16f4f87251a5266261707640.js.gz
  93. +4 −0 public/assets/application-548026665d6127cd3c7d7aec9b62117b.js
  94. BIN public/assets/application-548026665d6127cd3c7d7aec9b62117b.js.gz
  95. +9 −0 public/assets/application-5e58066ff463cc98e093f4313892ed2b.css
  96. BIN public/assets/application-5e58066ff463cc98e093f4313892ed2b.css.gz
  97. +12,934 −0 public/assets/application-b841cc62d88209d980da02c92606facf.js
  98. BIN public/assets/application-b841cc62d88209d980da02c92606facf.js.gz
  99. +14 −0 public/assets/application-f1a14051f17824976271b9c0460232f0.css
  100. BIN public/assets/application-f1a14051f17824976271b9c0460232f0.css.gz
  101. BIN public/assets/glyphicons-halflings-4e5b89324f1ac987ddf6835ef51f5fe9.png
  102. BIN public/assets/glyphicons-halflings-c806376f05e4ccabe2c5315a8e95667c.png
  103. BIN public/assets/glyphicons-halflings-white-2fa53df59ca25ee50f59f971c0c9175d.png
  104. BIN public/assets/glyphicons-halflings-white-62b67d9edee3db90d18833087f848d6e.png
  105. +1 −0 public/assets/manifest-7ba80acdb17a28ba93c4f6d1f0adf43b.json
  106. BIN public/assets/rails-72704f4a0039855b28ffb4210fe192aa.png
  107. BIN public/assets/rails-a54600e8f2699ca69d032287d98c11b9.png
  108. 0 public/favicon.ico
  109. +5 −0 public/robots.txt
  110. +8 −0 spec/factories.rb
  111. +5 −0 spec/models/product_spec.rb
  112. +61 −0 spec/models/user_spec.rb
  113. +44 −0 spec/requests/authentication_pages_spec.rb
  114. +13 −0 spec/requests/authentication_pages_spec.txt
  115. +35 −0 spec/requests/static_pages_spec.rb
  116. +48 −0 spec/requests/user_pages_spec.rb
  117. +45 −0 spec/spec_helper.rb
  118. +22 −0 spec/support/utilities.rb
  119. 0 vendor/assets/javascripts/.keep
  120. 0 vendor/assets/stylesheets/.keep
  121. BIN vendor/rails.png
@@ -0,0 +1,17 @@
# See http://help.github.com/ignore-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
/tmp
.secret
1 .rspec
@@ -0,0 +1 @@
--color
37 Gemfile
@@ -0,0 +1,37 @@
source 'https://rubygems.org'
ruby '1.9.3'
#ruby-gemset=railstutorial_rails_4_0

gem 'rails', '4.0.0'
gem 'bootstrap-sass', '2.3.2.0'
gem 'bcrypt-ruby', '3.0.1'
gem 'faker', '1.1.2'
gem 'will_paginate', '3.0.4'
gem 'bootstrap-will_paginate', '0.0.9'

group :development, :test do
gem 'sqlite3', '1.3.8'
gem 'rspec-rails', '2.13.1'
end

group :test do
gem 'selenium-webdriver', '2.35.1'
gem 'capybara', '2.1.0'
gem 'factory_girl_rails', '4.2.1'
end

gem 'sass-rails'#, '4.0.0'
gem 'uglifier', '2.1.1'
gem 'coffee-rails'#, '~> 4.0.0'
gem 'jquery-rails', '3.0.4'
gem 'turbolinks', '1.1.1'
gem 'jbuilder', '1.0.2'

group :doc do
gem 'sdoc', '0.3.20', require: false
end

group :production do
gem 'pg', '0.15.1'
gem 'rails_12factor', '0.0.2'
end
@@ -0,0 +1,185 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.0)
actionpack (= 4.0.0)
mail (~> 2.5.3)
actionpack (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
erubis (~> 2.7.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
activemodel (4.0.0)
activesupport (= 4.0.0)
builder (~> 3.1.0)
activerecord (4.0.0)
activemodel (= 4.0.0)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.0)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.0)
i18n (~> 0.6, >= 0.6.4)
minitest (~> 4.2)
multi_json (~> 1.3)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
arel (4.0.1)
atomic (1.1.14)
bcrypt-ruby (3.0.1)
bcrypt-ruby (3.0.1-x86-mingw32)
bootstrap-sass (2.3.2.0)
sass (~> 3.2)
bootstrap-will_paginate (0.0.9)
will_paginate
builder (3.1.4)
capybara (2.1.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
coffee-rails (4.0.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.0)
coffee-script (2.2.0)
coffee-script-source
execjs
coffee-script-source (1.6.3)
diff-lcs (1.2.4)
erubis (2.7.0)
execjs (2.0.2)
factory_girl (4.2.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.2.1)
factory_girl (~> 4.2.0)
railties (>= 3.0.0)
faker (1.1.2)
i18n (~> 0.5)
ffi (1.9.0)
ffi (1.9.0-x86-mingw32)
hike (1.2.3)
i18n (0.6.5)
jbuilder (1.0.2)
activesupport (>= 3.0.0)
jquery-rails (3.0.4)
railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0)
json (1.8.1)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25)
mini_portile (0.5.2)
minitest (4.7.5)
multi_json (1.8.2)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
nokogiri (1.6.0-x86-mingw32)
mini_portile (~> 0.5.0)
pg (0.15.1-x86-mingw32)
polyglot (0.3.3)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.0)
actionmailer (= 4.0.0)
actionpack (= 4.0.0)
activerecord (= 4.0.0)
activesupport (= 4.0.0)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.0)
sprockets-rails (~> 2.0.0)
rails_12factor (0.0.2)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.1)
rails_stdout_logging (0.0.3)
railties (4.0.0)
actionpack (= 4.0.0)
activesupport (= 4.0.0)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.0)
rdoc (3.12.2)
json (~> 1.4)
rspec-core (2.13.1)
rspec-expectations (2.13.0)
diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.13.1)
rspec-rails (2.13.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
railties (>= 3.0)
rspec-core (~> 2.13.0)
rspec-expectations (~> 2.13.0)
rspec-mocks (~> 2.13.0)
rubyzip (0.9.9)
sass (3.2.12)
sass-rails (4.0.1)
railties (>= 4.0.0, < 5.0)
sass (>= 3.1.10)
sprockets-rails (~> 2.0.0)
sdoc (0.3.20)
json (>= 1.1.3)
rdoc (~> 3.10)
selenium-webdriver (2.35.1)
childprocess (>= 0.2.5)
multi_json (~> 1.0)
rubyzip (< 1.0.0)
websocket (~> 1.0.4)
sprockets (2.10.0)
hike (~> 1.2)
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.8-x86-mingw32)
thor (0.18.1)
thread_safe (0.1.3)
atomic
tilt (1.4.1)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
turbolinks (1.1.1)
coffee-rails
tzinfo (0.3.38)
uglifier (2.1.1)
execjs (>= 0.3.0)
multi_json (~> 1.0, >= 1.0.2)
websocket (1.0.7)
will_paginate (3.0.4)
xpath (2.0.0)
nokogiri (~> 1.3)

PLATFORMS
x86-mingw32

DEPENDENCIES
bcrypt-ruby (= 3.0.1)
bootstrap-sass (= 2.3.2.0)
bootstrap-will_paginate (= 0.0.9)
capybara (= 2.1.0)
coffee-rails
factory_girl_rails (= 4.2.1)
faker (= 1.1.2)
jbuilder (= 1.0.2)
jquery-rails (= 3.0.4)
pg (= 0.15.1)
rails (= 4.0.0)
rails_12factor (= 0.0.2)
rspec-rails (= 2.13.1)
sass-rails
sdoc (= 0.3.20)
selenium-webdriver (= 2.35.1)
sqlite3 (= 1.3.8)
turbolinks (= 1.1.1)
uglifier (= 2.1.1)
will_paginate (= 3.0.4)
@@ -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__)

SampleApp::Application.load_tasks
No changes.
Binary file not shown.
@@ -0,0 +1,18 @@
// 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 vendor/assets/javascripts of plugins, if any, 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
//= 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/
@@ -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/
@@ -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/
@@ -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/
@@ -0,0 +1,13 @@
/*
* This is a manifest file that'll be compiled into application.css, which will include all the files
* listed below.
*
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* 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,3 @@
// Place all the styles related to the Products controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,3 @@
// Place all the styles related to the Sessions controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/

0 comments on commit 39da48b

Please sign in to comment.
You can’t perform that action at this time.