Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
956 additions
and 0 deletions.
- +16 −0 .gitignore
- +40 −0 Gemfile
- +120 −0 Gemfile.lock
- +28 −0 README.rdoc
- +6 −0 Rakefile
- 0 app/assets/images/.keep
- +16 −0 app/assets/javascripts/application.js
- +15 −0 app/assets/stylesheets/application.css
- +5 −0 app/controllers/application_controller.rb
- 0 app/controllers/concerns/.keep
- +2 −0 app/helpers/application_helper.rb
- 0 app/mailers/.keep
- 0 app/models/.keep
- 0 app/models/concerns/.keep
- +14 −0 app/views/layouts/application.html.erb
- +3 −0 bin/bundle
- +8 −0 bin/rails
- +8 −0 bin/rake
- +18 −0 bin/spring
- +4 −0 config.ru
- +23 −0 config/application.rb
- +4 −0 config/boot.rb
- +85 −0 config/database.yml
- +5 −0 config/environment.rb
- +37 −0 config/environments/development.rb
- +78 −0 config/environments/production.rb
- +39 −0 config/environments/test.rb
- +8 −0 config/initializers/assets.rb
- +7 −0 config/initializers/backtrace_silencers.rb
- +3 −0 config/initializers/cookies_serializer.rb
- +4 −0 config/initializers/filter_parameter_logging.rb
- +16 −0 config/initializers/inflections.rb
- +4 −0 config/initializers/mime_types.rb
- +3 −0 config/initializers/session_store.rb
- +14 −0 config/initializers/wrap_parameters.rb
- +23 −0 config/locales/en.yml
- +56 −0 config/routes.rb
- +22 −0 config/secrets.yml
- +7 −0 db/seeds.rb
- 0 lib/assets/.keep
- 0 lib/tasks/.keep
- 0 log/.keep
- +67 −0 public/404.html
- +67 −0 public/422.html
- +66 −0 public/500.html
- 0 public/favicon.ico
- +5 −0 public/robots.txt
- 0 test/controllers/.keep
- 0 test/fixtures/.keep
- 0 test/helpers/.keep
- 0 test/integration/.keep
- 0 test/mailers/.keep
- 0 test/models/.keep
- +10 −0 test/test_helper.rb
- 0 vendor/assets/javascripts/.keep
- 0 vendor/assets/stylesheets/.keep
@@ -0,0 +1,16 @@ | ||
# 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 | ||
/tmp |
@@ -0,0 +1,40 @@ | ||
source 'https://rubygems.org' | ||
|
||
|
||
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' | ||
gem 'rails', '4.1.7' | ||
# Use postgresql as the database for Active Record | ||
gem 'pg' | ||
# Use SCSS for stylesheets | ||
gem 'sass-rails', '~> 4.0.3' | ||
# Use Uglifier as compressor for JavaScript assets | ||
gem 'uglifier', '>= 1.3.0' | ||
# Use CoffeeScript for .js.coffee assets and views | ||
gem 'coffee-rails', '~> 4.0.0' | ||
# See https://github.com/sstephenson/execjs#readme for more supported runtimes | ||
# gem 'therubyracer', platforms: :ruby | ||
|
||
# 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 | ||
|
||
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring | ||
gem 'spring', group: :development | ||
|
||
# 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 | ||
|
||
# Use debugger | ||
# gem 'debugger', group: [:development, :test] | ||
|
@@ -0,0 +1,120 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionmailer (4.1.7) | ||
actionpack (= 4.1.7) | ||
actionview (= 4.1.7) | ||
mail (~> 2.5, >= 2.5.4) | ||
actionpack (4.1.7) | ||
actionview (= 4.1.7) | ||
activesupport (= 4.1.7) | ||
rack (~> 1.5.2) | ||
rack-test (~> 0.6.2) | ||
actionview (4.1.7) | ||
activesupport (= 4.1.7) | ||
builder (~> 3.1) | ||
erubis (~> 2.7.0) | ||
activemodel (4.1.7) | ||
activesupport (= 4.1.7) | ||
builder (~> 3.1) | ||
activerecord (4.1.7) | ||
activemodel (= 4.1.7) | ||
activesupport (= 4.1.7) | ||
arel (~> 5.0.0) | ||
activesupport (4.1.7) | ||
i18n (~> 0.6, >= 0.6.9) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.1) | ||
tzinfo (~> 1.1) | ||
arel (5.0.1.20140414130214) | ||
builder (3.2.2) | ||
coffee-rails (4.0.1) | ||
coffee-script (>= 2.2.0) | ||
railties (>= 4.0.0, < 5.0) | ||
coffee-script (2.3.0) | ||
coffee-script-source | ||
execjs | ||
coffee-script-source (1.8.0) | ||
erubis (2.7.0) | ||
execjs (2.2.2) | ||
hike (1.2.3) | ||
i18n (0.6.11) | ||
jbuilder (2.2.5) | ||
activesupport (>= 3.0.0, < 5) | ||
multi_json (~> 1.2) | ||
jquery-rails (3.1.2) | ||
railties (>= 3.0, < 5.0) | ||
thor (>= 0.14, < 2.0) | ||
json (1.8.1) | ||
mail (2.6.3) | ||
mime-types (>= 1.16, < 3) | ||
mime-types (2.4.3) | ||
minitest (5.5.0) | ||
multi_json (1.10.1) | ||
pg (0.17.1) | ||
rack (1.5.2) | ||
rack-test (0.6.2) | ||
rack (>= 1.0) | ||
rails (4.1.7) | ||
actionmailer (= 4.1.7) | ||
actionpack (= 4.1.7) | ||
actionview (= 4.1.7) | ||
activemodel (= 4.1.7) | ||
activerecord (= 4.1.7) | ||
activesupport (= 4.1.7) | ||
bundler (>= 1.3.0, < 2.0) | ||
railties (= 4.1.7) | ||
sprockets-rails (~> 2.0) | ||
railties (4.1.7) | ||
actionpack (= 4.1.7) | ||
activesupport (= 4.1.7) | ||
rake (>= 0.8.7) | ||
thor (>= 0.18.1, < 2.0) | ||
rake (10.4.2) | ||
rdoc (4.2.0) | ||
json (~> 1.4) | ||
sass (3.2.19) | ||
sass-rails (4.0.5) | ||
railties (>= 4.0.0, < 5.0) | ||
sass (~> 3.2.2) | ||
sprockets (~> 2.8, < 3.0) | ||
sprockets-rails (~> 2.0) | ||
sdoc (0.4.1) | ||
json (~> 1.7, >= 1.7.7) | ||
rdoc (~> 4.0) | ||
spring (1.2.0) | ||
sprockets (2.12.3) | ||
hike (~> 1.2) | ||
multi_json (~> 1.0) | ||
rack (~> 1.0) | ||
tilt (~> 1.1, != 1.3.0) | ||
sprockets-rails (2.2.2) | ||
actionpack (>= 3.0) | ||
activesupport (>= 3.0) | ||
sprockets (>= 2.8, < 4.0) | ||
thor (0.19.1) | ||
thread_safe (0.3.4) | ||
tilt (1.4.1) | ||
turbolinks (2.5.3) | ||
coffee-rails | ||
tzinfo (1.2.2) | ||
thread_safe (~> 0.1) | ||
uglifier (2.6.0) | ||
execjs (>= 0.3.0) | ||
json (>= 1.8.0) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
coffee-rails (~> 4.0.0) | ||
jbuilder (~> 2.0) | ||
jquery-rails | ||
pg | ||
rails (= 4.1.7) | ||
sass-rails (~> 4.0.3) | ||
sdoc (~> 0.4.0) | ||
spring | ||
turbolinks | ||
uglifier (>= 1.3.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 |
Empty file.
@@ -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 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 turbolinks | ||
//= require_tree . |
@@ -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 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 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,5 @@ | ||
class ApplicationController < ActionController::Base | ||
# Prevent CSRF attacks by raising an exception. | ||
# For APIs, you may want to use :null_session instead. | ||
protect_from_forgery with: :exception | ||
end |
Empty file.
@@ -0,0 +1,2 @@ | ||
module ApplicationHelper | ||
end |
Empty file.
Empty file.
Empty file.
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Bloggy</title> | ||
<%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> | ||
<%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> | ||
<%= csrf_meta_tags %> | ||
</head> | ||
<body> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
</html> |
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/env ruby | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
load Gem.bin_path('bundler', 'bundle') |
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
begin | ||
load File.expand_path("../spring", __FILE__) | ||
rescue LoadError | ||
end | ||
APP_PATH = File.expand_path('../../config/application', __FILE__) | ||
require_relative '../config/boot' | ||
require 'rails/commands' |
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env ruby | ||
begin | ||
load File.expand_path("../spring", __FILE__) | ||
rescue LoadError | ||
end | ||
require_relative '../config/boot' | ||
require 'rake' | ||
Rake.application.run |
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env ruby | ||
|
||
# This file loads spring without using Bundler, in order to be fast | ||
# It gets overwritten when you run the `spring binstub` command | ||
|
||
unless defined?(Spring) | ||
require "rubygems" | ||
require "bundler" | ||
|
||
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ (?: )*spring \((.*?)\)$.*?^$/m) | ||
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR) | ||
ENV["GEM_HOME"] = "" | ||
Gem.paths = ENV | ||
|
||
gem "spring", match[1] | ||
require "spring/binstub" | ||
end | ||
end |
@@ -0,0 +1,4 @@ | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require ::File.expand_path('../config/environment', __FILE__) | ||
run Rails.application |
@@ -0,0 +1,23 @@ | ||
require File.expand_path('../boot', __FILE__) | ||
|
||
require 'rails/all' | ||
|
||
# Require the gems listed in Gemfile, including any gems | ||
# you've limited to :test, :development, or :production. | ||
Bundler.require(*Rails.groups) | ||
|
||
module Bloggy | ||
class Application < Rails::Application | ||
# Settings in config/environments/* take precedence over those specified here. | ||
# Application configuration should go into files in config/initializers | ||
# -- all .rb files in that directory are automatically loaded. | ||
|
||
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. | ||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. | ||
# config.time_zone = 'Central Time (US & Canada)' | ||
|
||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. | ||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] | ||
# config.i18n.default_locale = :de | ||
end | ||
end |
@@ -0,0 +1,4 @@ | ||
# Set up gems listed in the Gemfile. | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
|
||
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) |
Oops, something went wrong.