Permalink
Browse files

Initial Rails 4.2.5.1 with courses, users and comments.

  • Loading branch information...
Freika committed Feb 16, 2016
0 parents commit a21dfb2d002f3aafdb1d3cc559e0d79779a2e9f6
Showing with 2,741 additions and 0 deletions.
  1. +13 −0 .gitignore
  2. +2 −0 .rspec
  3. +33 −0 Gemfile
  4. +223 −0 Gemfile.lock
  5. +28 −0 README.rdoc
  6. +6 −0 Rakefile
  7. 0 app/assets/images/.keep
  8. +17 −0 app/assets/javascripts/application.js
  9. +3 −0 app/assets/javascripts/comments.coffee
  10. +3 −0 app/assets/javascripts/courses.coffee
  11. +15 −0 app/assets/stylesheets/application.css
  12. +3 −0 app/assets/stylesheets/comments.scss
  13. +3 −0 app/assets/stylesheets/courses.scss
  14. +2 −0 app/assets/stylesheets/main.scss
  15. +73 −0 app/assets/stylesheets/scaffolds.scss
  16. +5 −0 app/controllers/application_controller.rb
  17. +74 −0 app/controllers/comments_controller.rb
  18. 0 app/controllers/concerns/.keep
  19. +74 −0 app/controllers/courses_controller.rb
  20. +2 −0 app/helpers/application_helper.rb
  21. +2 −0 app/helpers/comments_helper.rb
  22. +2 −0 app/helpers/courses_helper.rb
  23. 0 app/mailers/.keep
  24. 0 app/models/.keep
  25. +4 −0 app/models/comment.rb
  26. 0 app/models/concerns/.keep
  27. +3 −0 app/models/course.rb
  28. +8 −0 app/models/user.rb
  29. +25 −0 app/views/comments/_form.html.erb
  30. +6 −0 app/views/comments/edit.html.erb
  31. +29 −0 app/views/comments/index.html.erb
  32. +4 −0 app/views/comments/index.json.jbuilder
  33. +5 −0 app/views/comments/new.html.erb
  34. +14 −0 app/views/comments/show.html.erb
  35. +1 −0 app/views/comments/show.json.jbuilder
  36. +29 −0 app/views/courses/_form.html.erb
  37. +6 −0 app/views/courses/edit.html.erb
  38. +31 −0 app/views/courses/index.html.erb
  39. +4 −0 app/views/courses/index.json.jbuilder
  40. +5 −0 app/views/courses/new.html.erb
  41. +19 −0 app/views/courses/show.html.erb
  42. +1 −0 app/views/courses/show.json.jbuilder
  43. +16 −0 app/views/layouts/application.html.erb
  44. +53 −0 app/views/shared/_navbar.html.erb
  45. +3 −0 bin/bundle
  46. +4 −0 bin/rails
  47. +4 −0 bin/rake
  48. +29 −0 bin/setup
  49. +4 −0 config.ru
  50. +35 −0 config/application.rb
  51. +3 −0 config/boot.rb
  52. +85 −0 config/database.yml
  53. +5 −0 config/environment.rb
  54. +41 −0 config/environments/development.rb
  55. +79 −0 config/environments/production.rb
  56. +42 −0 config/environments/test.rb
  57. +11 −0 config/initializers/assets.rb
  58. +7 −0 config/initializers/backtrace_silencers.rb
  59. +3 −0 config/initializers/cookies_serializer.rb
  60. +265 −0 config/initializers/devise.rb
  61. +4 −0 config/initializers/filter_parameter_logging.rb
  62. +16 −0 config/initializers/inflections.rb
  63. +4 −0 config/initializers/mime_types.rb
  64. +3 −0 config/initializers/session_store.rb
  65. +14 −0 config/initializers/wrap_parameters.rb
  66. +62 −0 config/locales/devise.en.yml
  67. +23 −0 config/locales/en.yml
  68. +6 −0 config/routes.rb
  69. +22 −0 config/secrets.yml
  70. +11 −0 db/migrate/20160216125459_create_courses.rb
  71. +11 −0 db/migrate/20160216130026_create_comments.rb
  72. +6 −0 db/migrate/20160216130221_add_course_id_to_comment.rb
  73. +42 −0 db/migrate/20160216130243_devise_create_users.rb
  74. +56 −0 db/schema.rb
  75. +7 −0 db/seeds.rb
  76. 0 lib/assets/.keep
  77. 0 lib/tasks/.keep
  78. 0 log/.keep
  79. +67 −0 public/404.html
  80. +67 −0 public/422.html
  81. +66 −0 public/500.html
  82. 0 public/favicon.ico
  83. +5 −0 public/robots.txt
  84. +159 −0 spec/controllers/comments_controller_spec.rb
  85. +159 −0 spec/controllers/courses_controller_spec.rb
  86. +6 −0 spec/factories/comments.rb
  87. +7 −0 spec/factories/courses.rb
  88. +5 −0 spec/factories/users.rb
  89. +15 −0 spec/helpers/comments_helper_spec.rb
  90. +15 −0 spec/helpers/courses_helper_spec.rb
  91. +6 −0 spec/models/comment_spec.rb
  92. +5 −0 spec/models/course_spec.rb
  93. +5 −0 spec/models/user_spec.rb
  94. +40 −0 spec/rails_helper.rb
  95. +10 −0 spec/requests/comments_spec.rb
  96. +10 −0 spec/requests/courses_spec.rb
  97. +39 −0 spec/routing/comments_routing_spec.rb
  98. +39 −0 spec/routing/courses_routing_spec.rb
  99. +92 −0 spec/spec_helper.rb
  100. +21 −0 spec/views/comments/edit.html.erb_spec.rb
  101. +22 −0 spec/views/comments/index.html.erb_spec.rb
  102. +21 −0 spec/views/comments/new.html.erb_spec.rb
  103. +16 −0 spec/views/comments/show.html.erb_spec.rb
  104. +24 −0 spec/views/courses/edit.html.erb_spec.rb
  105. +25 −0 spec/views/courses/index.html.erb_spec.rb
  106. +24 −0 spec/views/courses/new.html.erb_spec.rb
  107. +18 −0 spec/views/courses/show.html.erb_spec.rb
  108. 0 vendor/assets/javascripts/.keep
  109. 0 vendor/assets/stylesheets/.keep
@@ -0,0 +1,13 @@
# 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 all logfiles and tempfiles.
/log/*
!/log/.keep
/tmp
2 .rspec
@@ -0,0 +1,2 @@
--color
--require spec_helper
33 Gemfile
@@ -0,0 +1,33 @@
source 'https://rubygems.org'
gem 'rails', '4.2.5.1'
gem 'pg', '~> 0.15'
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 'dragonfly', '~> 1.0.12'
gem 'bootstrap-sass'
gem 'devise'
group :test do
gem 'capybara', '~> 2.4.0'
gem 'capybara-webkit'
gem 'database_cleaner', '~> 1.3'
gem 'shoulda-matchers', '~> 2.8'
end
group :development, :test do
gem 'byebug'
gem 'factory_girl_rails'
gem 'rspec-rails'
gem 'spring'
gem 'launchy'
end
@@ -0,0 +1,223 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.2.5.1)
actionpack (= 4.2.5.1)
actionview (= 4.2.5.1)
activejob (= 4.2.5.1)
mail (~> 2.5, >= 2.5.4)
rails-dom-testing (~> 1.0, >= 1.0.5)
actionpack (4.2.5.1)
actionview (= 4.2.5.1)
activesupport (= 4.2.5.1)
rack (~> 1.6)
rack-test (~> 0.6.2)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
actionview (4.2.5.1)
activesupport (= 4.2.5.1)
builder (~> 3.1)
erubis (~> 2.7.0)
rails-dom-testing (~> 1.0, >= 1.0.5)
rails-html-sanitizer (~> 1.0, >= 1.0.2)
activejob (4.2.5.1)
activesupport (= 4.2.5.1)
globalid (>= 0.3.0)
activemodel (4.2.5.1)
activesupport (= 4.2.5.1)
builder (~> 3.1)
activerecord (4.2.5.1)
activemodel (= 4.2.5.1)
activesupport (= 4.2.5.1)
arel (~> 6.0)
activesupport (4.2.5.1)
i18n (~> 0.7)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.4.0)
arel (6.0.3)
autoprefixer-rails (6.3.3)
execjs
json
bcrypt (3.1.10)
bootstrap-sass (3.3.6)
autoprefixer-rails (>= 5.2.1)
sass (>= 3.3.4)
builder (3.2.2)
byebug (8.2.2)
capybara (2.4.4)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
capybara-webkit (1.8.0)
capybara (>= 2.3.0, < 2.7.0)
json
coffee-rails (4.1.1)
coffee-script (>= 2.2.0)
railties (>= 4.0.0, < 5.1.x)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.10.0)
concurrent-ruby (1.0.0)
database_cleaner (1.5.1)
devise (3.5.6)
bcrypt (~> 3.0)
orm_adapter (~> 0.1)
railties (>= 3.2.6, < 5)
responders
thread_safe (~> 0.1)
warden (~> 1.2.3)
diff-lcs (1.2.5)
dragonfly (1.0.12)
addressable (~> 2.3)
multi_json (~> 1.0)
rack (>= 1.3.0)
erubis (2.7.0)
execjs (2.6.0)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.6.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.4.1)
activesupport (>= 3.0.0, < 5.1)
multi_json (~> 1.2)
jquery-rails (4.1.0)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
launchy (2.4.3)
addressable (~> 2.3)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.99)
mini_portile2 (2.0.0)
minitest (5.8.4)
multi_json (1.11.2)
nokogiri (1.6.7.2)
mini_portile2 (~> 2.0.0.rc2)
orm_adapter (0.5.0)
pg (0.18.4)
rack (1.6.4)
rack-test (0.6.3)
rack (>= 1.0)
rails (4.2.5.1)
actionmailer (= 4.2.5.1)
actionpack (= 4.2.5.1)
actionview (= 4.2.5.1)
activejob (= 4.2.5.1)
activemodel (= 4.2.5.1)
activerecord (= 4.2.5.1)
activesupport (= 4.2.5.1)
bundler (>= 1.3.0, < 2.0)
railties (= 4.2.5.1)
sprockets-rails
rails-deprecated_sanitizer (1.0.3)
activesupport (>= 4.2.0.alpha)
rails-dom-testing (1.0.7)
activesupport (>= 4.2.0.beta, < 5.0)
nokogiri (~> 1.6.0)
rails-deprecated_sanitizer (>= 1.0.1)
rails-html-sanitizer (1.0.3)
loofah (~> 2.0)
railties (4.2.5.1)
actionpack (= 4.2.5.1)
activesupport (= 4.2.5.1)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.5.0)
rdoc (4.2.2)
json (~> 1.4)
responders (2.1.1)
railties (>= 4.2.0, < 5.1)
rspec-core (3.4.2)
rspec-support (~> 3.4.0)
rspec-expectations (3.4.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-mocks (3.4.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.4.0)
rspec-rails (3.4.2)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.4.0)
rspec-expectations (~> 3.4.0)
rspec-mocks (~> 3.4.0)
rspec-support (~> 3.4.0)
rspec-support (3.4.1)
sass (3.4.21)
sass-rails (5.0.4)
railties (>= 4.0.0, < 5.0)
sass (~> 3.1)
sprockets (>= 2.8, < 4.0)
sprockets-rails (>= 2.0, < 4.0)
tilt (>= 1.1, < 3)
sdoc (0.4.1)
json (~> 1.7, >= 1.7.7)
rdoc (~> 4.0)
shoulda-matchers (2.8.0)
activesupport (>= 3.0.0)
spring (1.6.3)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (3.0.1)
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.2)
turbolinks (2.5.3)
coffee-rails
tzinfo (1.2.2)
thread_safe (~> 0.1)
uglifier (2.7.2)
execjs (>= 0.3.0)
json (>= 1.8.0)
warden (1.2.6)
rack (>= 1.0)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
bootstrap-sass
byebug
capybara (~> 2.4.0)
capybara-webkit
coffee-rails (~> 4.1.0)
database_cleaner (~> 1.3)
devise
dragonfly (~> 1.0.12)
factory_girl_rails
jbuilder (~> 2.0)
jquery-rails
launchy
pg (~> 0.15)
rails (= 4.2.5.1)
rspec-rails
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
shoulda-matchers (~> 2.8)
spring
turbolinks
uglifier (>= 1.3.0)
BUNDLED WITH
1.11.2
@@ -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/rails/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/
@@ -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,15 @@
/*
* 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 any plugin's vendor/assets/stylesheets directory 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 bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_tree .
*= require_self
*/
@@ -0,0 +1,3 @@
// Place all the styles related to the comments 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 courses controller here.
// They will automatically be included in application.css.
// You can use Sass (SCSS) here: http://sass-lang.com/
@@ -0,0 +1,2 @@
@import "bootstrap-sprockets";
@import "bootstrap";
Oops, something went wrong.

0 comments on commit a21dfb2

Please sign in to comment.