Permalink
Browse files

initial commit

  • Loading branch information...
yoosee committed Jan 14, 2016
0 parents commit 8a8ba0966184bcf228bf7138edbb4451657c3feb
Showing with 1,268 additions and 0 deletions.
  1. +17 −0 .gitignore
  2. +68 −0 Gemfile
  3. +228 −0 Gemfile.lock
  4. +28 −0 README.md
  5. +6 −0 Rakefile
  6. 0 app/assets/images/.keep
  7. +16 −0 app/assets/javascripts/application.js
  8. +3 −0 app/assets/javascripts/articles.coffee
  9. +3 −0 app/assets/javascripts/users.coffee
  10. +15 −0 app/assets/stylesheets/application.css
  11. +3 −0 app/assets/stylesheets/articles.scss
  12. +3 −0 app/assets/stylesheets/users.scss
  13. +5 −0 app/controllers/application_controller.rb
  14. +2 −0 app/controllers/articles_controller.rb
  15. 0 app/controllers/concerns/.keep
  16. +2 −0 app/controllers/users_controller.rb
  17. +2 −0 app/helpers/application_helper.rb
  18. +2 −0 app/helpers/articles_helper.rb
  19. +2 −0 app/helpers/users_helper.rb
  20. 0 app/mailers/.keep
  21. 0 app/models/.keep
  22. +17 −0 app/models/article.rb
  23. +2 −0 app/models/blog.rb
  24. 0 app/models/concerns/.keep
  25. +23 −0 app/models/user.rb
  26. +14 −0 app/views/layouts/application.html.erb
  27. +3 −0 bin/bundle
  28. +9 −0 bin/rails
  29. +9 −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. +14 −0 config/initializers/wrap_parameters.rb
  48. +23 −0 config/locales/en.yml
  49. +56 −0 config/routes.rb
  50. +22 −0 config/secrets.yml
  51. +10 −0 db/migrate/20160114182341_create_users.rb
  52. +10 −0 db/migrate/20160114195241_create_blogs.rb
  53. +13 −0 db/migrate/20160114195302_create_articles.rb
  54. +5 −0 db/migrate/20160114201547_add_status_to_article.rb
  55. +5 −0 db/migrate/20160114202306_add_password_digest_to_users.rb
  56. +34 −0 db/schema.rb
  57. +7 −0 db/seeds.rb
  58. 0 lib/assets/.keep
  59. 0 lib/tasks/.keep
  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. +5 −0 spec/controllers/articles_controller_spec.rb
  67. +5 −0 spec/controllers/users_controller_spec.rb
  68. +15 −0 spec/helpers/articles_helper_spec.rb
  69. +15 −0 spec/helpers/users_helper_spec.rb
  70. +5 −0 spec/models/article_spec.rb
  71. +5 −0 spec/models/blog_spec.rb
  72. +5 −0 spec/models/user_spec.rb
  73. 0 test/controllers/.keep
  74. 0 test/fixtures/.keep
  75. 0 test/helpers/.keep
  76. 0 test/integration/.keep
  77. 0 test/mailers/.keep
  78. 0 test/models/.keep
  79. +10 −0 test/test_helper.rb
  80. 0 vendor/assets/javascripts/.keep
  81. 0 vendor/assets/stylesheets/.keep
@@ -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
68 Gemfile
@@ -0,0 +1,68 @@
source 'https://rubygems.org'
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.0'
# Use sqlite3 as the database for Active Record
gem 'sqlite3'
# Use SCSS for stylesheets
gem 'sass-rails', '~> 5.0'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'
# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.1.0'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
# gem 'therubyracer', platforms: :ruby
gem 'bootstrap-sass'
gem 'sprockets'
# gem 'jquery-rails'
gem 'bcrypt'
gem 'faker'
# Use jquery as the JavaScript library
gem 'jquery-rails'
# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks
gem 'turbolinks'
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'jbuilder', '~> 2.0'
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'redcarpet'
gem 'will_paginate'
gem 'paperclip', "~> 4.3"
# Use ActiveModel has_secure_password
# gem 'bcrypt', '~> 3.1.7'
# Use Unicorn as the app server
# gem 'unicorn'
# Use Capistrano for deployment
# gem 'capistrano-rails', group: :development
group :test do
gem 'capybara'
gem 'selenium-webdriver'
gem 'factory_girl_rails'
end
group :development do
# Call 'debugger' anywhere in the code to stop execution and get a debugger console
# gem 'debugger'
gem 'rspec-rails'
# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console', '~> 2.0'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'
end
@@ -0,0 +1,228 @@
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.3)
autoprefixer-rails (6.0.2)
execjs
json
bcrypt (3.1.10)
binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1)
bootstrap-sass (3.3.5.1)
autoprefixer-rails (>= 5.0.0.1)
sass (>= 3.3.0)
builder (3.2.2)
capybara (2.5.0)
mime-types (>= 1.16)
nokogiri (>= 1.3.3)
rack (>= 1.0.0)
rack-test (>= 0.5.4)
xpath (~> 2.0)
childprocess (0.5.6)
ffi (~> 1.0, >= 1.0.11)
climate_control (0.0.3)
activesupport (>= 3.0)
cocaine (0.5.7)
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.10.0)
concurrent-ruby (1.0.0)
debug_inspector (0.0.2)
diff-lcs (1.2.5)
erubis (2.7.0)
execjs (2.6.0)
factory_girl (4.5.0)
activesupport (>= 3.0.0)
factory_girl_rails (4.5.0)
factory_girl (~> 4.5.0)
railties (>= 3.0.0)
faker (1.5.0)
i18n (~> 0.5)
ffi (1.9.10)
globalid (0.3.6)
activesupport (>= 4.1.0)
i18n (0.7.0)
jbuilder (2.3.2)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
jquery-rails (4.0.5)
rails-dom-testing (~> 1.0)
railties (>= 4.2.0)
thor (>= 0.14, < 2.0)
json (1.8.3)
loofah (2.0.3)
nokogiri (>= 1.5.9)
mail (2.6.3)
mime-types (>= 1.16, < 3)
mime-types (2.99)
mimemagic (0.3.0)
mini_portile2 (2.0.0)
minitest (5.8.3)
multi_json (1.11.2)
nokogiri (1.6.7)
mini_portile2 (~> 2.0.0.rc2)
paperclip (4.3.1)
activemodel (>= 3.2.0)
activesupport (>= 3.2.0)
cocaine (~> 0.5.5)
mime-types
mimemagic (= 0.3.0)
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.7)
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)
redcarpet (3.3.2)
rspec-core (3.3.2)
rspec-support (~> 3.3.0)
rspec-expectations (3.3.1)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-mocks (3.3.2)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.3.0)
rspec-rails (3.3.3)
actionpack (>= 3.0, < 4.3)
activesupport (>= 3.0, < 4.3)
railties (>= 3.0, < 4.3)
rspec-core (~> 3.3.0)
rspec-expectations (~> 3.3.0)
rspec-mocks (~> 3.3.0)
rspec-support (~> 3.3.0)
rspec-support (3.3.0)
rubyzip (1.1.7)
sass (3.4.20)
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)
selenium-webdriver (2.47.1)
childprocess (~> 0.5)
multi_json (~> 1.0)
rubyzip (~> 1.0)
websocket (~> 1.0)
spring (1.6.0)
sprockets (3.5.2)
concurrent-ruby (~> 1.0)
rack (> 1, < 3)
sprockets-rails (2.3.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (>= 2.8, < 4.0)
sqlite3 (1.3.11)
thor (0.19.1)
thread_safe (0.3.5)
tilt (2.0.1)
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)
web-console (2.2.1)
activemodel (>= 4.0)
binding_of_caller (>= 0.7.2)
railties (>= 4.0)
sprockets-rails (>= 2.0, < 4.0)
websocket (1.2.2)
will_paginate (3.0.7)
xpath (2.0.0)
nokogiri (~> 1.3)
PLATFORMS
ruby
DEPENDENCIES
bcrypt
bootstrap-sass
capybara
coffee-rails (~> 4.1.0)
factory_girl_rails
faker
jbuilder (~> 2.0)
jquery-rails
paperclip (~> 4.3)
rails (= 4.2.0)
redcarpet
rspec-rails
sass-rails (~> 5.0)
sdoc (~> 0.4.0)
selenium-webdriver
spring
sprockets
sqlite3
turbolinks
uglifier (>= 1.3.0)
web-console (~> 2.0)
will_paginate
@@ -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,16 @@
// 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 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 Articles 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 8a8ba09

Please sign in to comment.