Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
template: rails new tomatoes_app -m http://railswizard.org/988bfa999c057b15c8a4.rb -J
- Loading branch information
0 parents
commit 7bff8e4
Showing
47 changed files
with
10,173 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
.bundle | ||
db/*.sqlite3 | ||
log/*.log | ||
tmp/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
rvm 1.8.7@tomatoes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
source 'http://rubygems.org' | ||
|
||
gem 'rails', '3.0.9' | ||
|
||
# Bundle edge Rails instead: | ||
# gem 'rails', :git => 'git://github.com/rails/rails.git' | ||
|
||
gem 'sqlite3' | ||
|
||
# Use unicorn as the web server | ||
# gem 'unicorn' | ||
|
||
# Deploy with Capistrano | ||
# gem 'capistrano' | ||
|
||
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+) | ||
# gem 'ruby-debug' | ||
# gem 'ruby-debug19', :require => 'ruby-debug' | ||
|
||
# Bundle the extra gems: | ||
# gem 'bj' | ||
# gem 'nokogiri' | ||
# gem 'sqlite3-ruby', :require => 'sqlite3' | ||
# gem 'aws-s3', :require => 'aws/s3' | ||
|
||
# Bundle gems for the local environment. Make sure to | ||
# put test-only gems in this group so their generators | ||
# and rake tasks are available in development mode: | ||
# group :development, :test do | ||
# gem 'webrat' | ||
# end | ||
gem "jquery-rails" | ||
gem "omniauth", "~> 0.2.0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,137 @@ | ||
GEM | ||
remote: http://rubygems.org/ | ||
specs: | ||
abstract (1.0.0) | ||
actionmailer (3.0.9) | ||
actionpack (= 3.0.9) | ||
mail (~> 2.2.19) | ||
actionpack (3.0.9) | ||
activemodel (= 3.0.9) | ||
activesupport (= 3.0.9) | ||
builder (~> 2.1.2) | ||
erubis (~> 2.6.6) | ||
i18n (~> 0.5.0) | ||
rack (~> 1.2.1) | ||
rack-mount (~> 0.6.14) | ||
rack-test (~> 0.5.7) | ||
tzinfo (~> 0.3.23) | ||
activemodel (3.0.9) | ||
activesupport (= 3.0.9) | ||
builder (~> 2.1.2) | ||
i18n (~> 0.5.0) | ||
activerecord (3.0.9) | ||
activemodel (= 3.0.9) | ||
activesupport (= 3.0.9) | ||
arel (~> 2.0.10) | ||
tzinfo (~> 0.3.23) | ||
activeresource (3.0.9) | ||
activemodel (= 3.0.9) | ||
activesupport (= 3.0.9) | ||
activesupport (3.0.9) | ||
addressable (2.2.4) | ||
arel (2.0.10) | ||
builder (2.1.2) | ||
erubis (2.6.6) | ||
abstract (>= 1.0.0) | ||
faraday (0.6.1) | ||
addressable (~> 2.2.4) | ||
multipart-post (~> 1.1.0) | ||
rack (>= 1.1.0, < 2) | ||
i18n (0.5.0) | ||
jquery-rails (1.0.12) | ||
railties (~> 3.0) | ||
thor (~> 0.14) | ||
mail (2.2.19) | ||
activesupport (>= 2.3.6) | ||
i18n (>= 0.4.0) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
mime-types (1.16) | ||
multi_json (1.0.3) | ||
multi_xml (0.2.2) | ||
multipart-post (1.1.2) | ||
net-ldap (0.2.2) | ||
nokogiri (1.4.7) | ||
oa-basic (0.2.6) | ||
oa-core (= 0.2.6) | ||
rest-client (~> 1.6.0) | ||
oa-core (0.2.6) | ||
oa-enterprise (0.2.6) | ||
addressable (= 2.2.4) | ||
net-ldap (~> 0.2.2) | ||
nokogiri (~> 1.4.2) | ||
oa-core (= 0.2.6) | ||
pyu-ruby-sasl (~> 0.0.3.1) | ||
rubyntlm (~> 0.1.1) | ||
oa-more (0.2.6) | ||
multi_json (~> 1.0.0) | ||
oa-core (= 0.2.6) | ||
rest-client (~> 1.6.0) | ||
oa-oauth (0.2.6) | ||
faraday (~> 0.6.1) | ||
multi_json (~> 1.0.0) | ||
multi_xml (~> 0.2.2) | ||
oa-core (= 0.2.6) | ||
oauth (~> 0.4.0) | ||
oauth2 (~> 0.4.1) | ||
oa-openid (0.2.6) | ||
oa-core (= 0.2.6) | ||
rack-openid (~> 1.3.1) | ||
ruby-openid-apps-discovery (~> 1.2.0) | ||
oauth (0.4.5) | ||
oauth2 (0.4.1) | ||
faraday (~> 0.6.1) | ||
multi_json (>= 0.0.5) | ||
omniauth (0.2.6) | ||
oa-basic (= 0.2.6) | ||
oa-core (= 0.2.6) | ||
oa-enterprise (= 0.2.6) | ||
oa-more (= 0.2.6) | ||
oa-oauth (= 0.2.6) | ||
oa-openid (= 0.2.6) | ||
polyglot (0.3.1) | ||
pyu-ruby-sasl (0.0.3.3) | ||
rack (1.2.3) | ||
rack-mount (0.6.14) | ||
rack (>= 1.0.0) | ||
rack-openid (1.3.1) | ||
rack (>= 1.1.0) | ||
ruby-openid (>= 2.1.8) | ||
rack-test (0.5.7) | ||
rack (>= 1.0) | ||
rails (3.0.9) | ||
actionmailer (= 3.0.9) | ||
actionpack (= 3.0.9) | ||
activerecord (= 3.0.9) | ||
activeresource (= 3.0.9) | ||
activesupport (= 3.0.9) | ||
bundler (~> 1.0) | ||
railties (= 3.0.9) | ||
railties (3.0.9) | ||
actionpack (= 3.0.9) | ||
activesupport (= 3.0.9) | ||
rake (>= 0.8.7) | ||
rdoc (~> 3.4) | ||
thor (~> 0.14.4) | ||
rake (0.9.2) | ||
rdoc (3.8) | ||
rest-client (1.6.3) | ||
mime-types (>= 1.16) | ||
ruby-openid (2.1.8) | ||
ruby-openid-apps-discovery (1.2.0) | ||
ruby-openid (>= 2.1.7) | ||
rubyntlm (0.1.1) | ||
sqlite3 (1.3.3) | ||
thor (0.14.6) | ||
treetop (1.4.9) | ||
polyglot (>= 0.3.1) | ||
tzinfo (0.3.29) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
jquery-rails | ||
omniauth (~> 0.2.0) | ||
rails (= 3.0.9) | ||
sqlite3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Tomatoes | ||
|
||
## Why? | ||
|
||
Because | ||
|
||
1. I need it to measure pomodoros fastly and easily. | ||
2. I need to export pomodoros data to Freckle to track work time. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# 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__) | ||
require 'rake' | ||
|
||
TomatoesApp::Application.load_tasks |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
class ApplicationController < ActionController::Base | ||
protect_from_forgery | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
class SessionsController < ApplicationController | ||
def callback | ||
auth # Do what you want with the auth hash! | ||
end | ||
|
||
def auth; request.env['omniauth.auth'] end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
module ApplicationHelper | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>TomatoesApp</title> | ||
<%= stylesheet_link_tag :all %> | ||
<%= javascript_include_tag :defaults %> | ||
<%= csrf_meta_tag %> | ||
</head> | ||
<body> | ||
|
||
<%= yield %> | ||
|
||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require ::File.expand_path('../config/environment', __FILE__) | ||
run TomatoesApp::Application |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
require File.expand_path('../boot', __FILE__) | ||
|
||
require 'rails/all' | ||
|
||
# If you have a Gemfile, require the gems listed there, including any gems | ||
# you've limited to :test, :development, or :production. | ||
Bundler.require(:default, Rails.env) if defined?(Bundler) | ||
|
||
module TomatoesApp | ||
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. | ||
|
||
# Custom directories with classes and modules you want to be autoloadable. | ||
# config.autoload_paths += %W(#{config.root}/extras) | ||
|
||
# Only load the plugins named here, in the order given (default is alphabetical). | ||
# :all can be used as a placeholder for all plugins not explicitly named. | ||
# config.plugins = [ :exception_notification, :ssl_requirement, :all ] | ||
|
||
# Activate observers that should always be running. | ||
# config.active_record.observers = :cacher, :garbage_collector, :forum_observer | ||
|
||
# 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 | ||
|
||
# JavaScript files you want as :defaults (application.js is always included). | ||
config.action_view.javascript_expansions[:defaults] = %w() | ||
|
||
# Configure the default encoding used in templates for Ruby 1.9. | ||
config.encoding = "utf-8" | ||
|
||
# Configure sensitive parameters which will be filtered from the log file. | ||
config.filter_parameters += [:password] | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
require 'rubygems' | ||
|
||
# Set up gems listed in the Gemfile. | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
|
||
require 'bundler/setup' if File.exists?(ENV['BUNDLE_GEMFILE']) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
# SQLite version 3.x | ||
# gem install sqlite3 | ||
development: | ||
adapter: sqlite3 | ||
database: db/development.sqlite3 | ||
pool: 5 | ||
timeout: 5000 | ||
|
||
# Warning: The database defined as "test" will be erased and | ||
# re-generated from your development database when you run "rake". | ||
# Do not set this db to the same as development or production. | ||
test: | ||
adapter: sqlite3 | ||
database: db/test.sqlite3 | ||
pool: 5 | ||
timeout: 5000 | ||
|
||
production: | ||
adapter: sqlite3 | ||
database: db/production.sqlite3 | ||
pool: 5 | ||
timeout: 5000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
# Load the rails application | ||
require File.expand_path('../application', __FILE__) | ||
|
||
# Initialize the rails application | ||
TomatoesApp::Application.initialize! |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
TomatoesApp::Application.configure do | ||
# Settings specified here will take precedence over those in config/application.rb | ||
|
||
# In the development environment your application's code is reloaded on | ||
# every request. This slows down response time but is perfect for development | ||
# since you don't have to restart the webserver when you make code changes. | ||
config.cache_classes = false | ||
|
||
# Log error messages when you accidentally call methods on nil. | ||
config.whiny_nils = true | ||
|
||
# Show full error reports and disable caching | ||
config.consider_all_requests_local = true | ||
config.action_view.debug_rjs = true | ||
config.action_controller.perform_caching = false | ||
|
||
# Don't care if the mailer can't send | ||
config.action_mailer.raise_delivery_errors = false | ||
|
||
# Print deprecation notices to the Rails logger | ||
config.active_support.deprecation = :log | ||
|
||
# Only use best-standards-support built into browsers | ||
config.action_dispatch.best_standards_support = :builtin | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
TomatoesApp::Application.configure do | ||
# Settings specified here will take precedence over those in config/application.rb | ||
|
||
# The production environment is meant for finished, "live" apps. | ||
# Code is not reloaded between requests | ||
config.cache_classes = true | ||
|
||
# Full error reports are disabled and caching is turned on | ||
config.consider_all_requests_local = false | ||
config.action_controller.perform_caching = true | ||
|
||
# Specifies the header that your server uses for sending files | ||
config.action_dispatch.x_sendfile_header = "X-Sendfile" | ||
|
||
# For nginx: | ||
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' | ||
|
||
# If you have no front-end server that supports something like X-Sendfile, | ||
# just comment this out and Rails will serve the files | ||
|
||
# See everything in the log (default is :info) | ||
# config.log_level = :debug | ||
|
||
# Use a different logger for distributed setups | ||
# config.logger = SyslogLogger.new | ||
|
||
# Use a different cache store in production | ||
# config.cache_store = :mem_cache_store | ||
|
||
# Disable Rails's static asset server | ||
# In production, Apache or nginx will already do this | ||
config.serve_static_assets = false | ||
|
||
# Enable serving of images, stylesheets, and javascripts from an asset server | ||
# config.action_controller.asset_host = "http://assets.example.com" | ||
|
||
# Disable delivery errors, bad email addresses will be ignored | ||
# config.action_mailer.raise_delivery_errors = false | ||
|
||
# Enable threaded mode | ||
# config.threadsafe! | ||
|
||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to | ||
# the I18n.default_locale when a translation can not be found) | ||
config.i18n.fallbacks = true | ||
|
||
# Send deprecation notices to registered listeners | ||
config.active_support.deprecation = :notify | ||
end |
Oops, something went wrong.