-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
42 changed files
with
985 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 |
---|---|---|
|
@@ -17,3 +17,4 @@ | |
|
||
# Ignore application configuration | ||
/config/application.yml | ||
/config/secrets.yml |
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 @@ | ||
--color | ||
--warnings | ||
--require spec_helper |
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,36 @@ | ||
source 'https://rubygems.org' | ||
|
||
gem 'rails', '4.1.4' | ||
|
||
gem 'rails-api' | ||
|
||
gem 'spring', :group => :development | ||
|
||
# Postgres | ||
gem 'pg' | ||
|
||
group :development, :test do | ||
gem 'rspec-rails', '~> 3.0' | ||
end | ||
|
||
gem 'twitter' | ||
|
||
gem 'byebug' | ||
|
||
# To use ActiveModel has_secure_password | ||
# gem 'bcrypt', '~> 3.1.7' | ||
|
||
# To use Jbuilder templates for JSON | ||
# gem 'jbuilder' | ||
|
||
# Use unicorn as the app server | ||
gem 'thin' | ||
|
||
# Keep secrets secret | ||
gem 'figaro' | ||
|
||
# Deploy with Capistrano | ||
# gem 'capistrano', :group => :development | ||
|
||
# To use debugger | ||
# gem 'ruby-debug19', :require => 'ruby-debug' |
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,149 @@ | ||
GEM | ||
remote: https://rubygems.org/ | ||
specs: | ||
actionmailer (4.1.4) | ||
actionpack (= 4.1.4) | ||
actionview (= 4.1.4) | ||
mail (~> 2.5.4) | ||
actionpack (4.1.4) | ||
actionview (= 4.1.4) | ||
activesupport (= 4.1.4) | ||
rack (~> 1.5.2) | ||
rack-test (~> 0.6.2) | ||
actionview (4.1.4) | ||
activesupport (= 4.1.4) | ||
builder (~> 3.1) | ||
erubis (~> 2.7.0) | ||
activemodel (4.1.4) | ||
activesupport (= 4.1.4) | ||
builder (~> 3.1) | ||
activerecord (4.1.4) | ||
activemodel (= 4.1.4) | ||
activesupport (= 4.1.4) | ||
arel (~> 5.0.0) | ||
activesupport (4.1.4) | ||
i18n (~> 0.6, >= 0.6.9) | ||
json (~> 1.7, >= 1.7.7) | ||
minitest (~> 5.1) | ||
thread_safe (~> 0.1) | ||
tzinfo (~> 1.1) | ||
addressable (2.3.6) | ||
arel (5.0.1.20140414130214) | ||
buftok (0.2.0) | ||
builder (3.2.2) | ||
byebug (5.0.0) | ||
columnize (= 0.9.0) | ||
chronic (0.10.2) | ||
columnize (0.9.0) | ||
daemons (1.1.9) | ||
diff-lcs (1.2.5) | ||
equalizer (0.0.9) | ||
erubis (2.7.0) | ||
eventmachine (1.0.3) | ||
faraday (0.9.0) | ||
multipart-post (>= 1.2, < 3) | ||
figaro (0.7.0) | ||
bundler (~> 1.0) | ||
rails (>= 3, < 5) | ||
http (0.6.1) | ||
http_parser.rb (~> 0.6.0) | ||
http_parser.rb (0.6.0) | ||
i18n (0.7.0) | ||
json (1.8.3) | ||
mail (2.5.4) | ||
mime-types (~> 1.16) | ||
treetop (~> 1.4.8) | ||
memoizable (0.4.2) | ||
thread_safe (~> 0.3, >= 0.3.1) | ||
mime-types (1.25.1) | ||
minitest (5.7.0) | ||
multipart-post (2.0.0) | ||
naught (1.0.0) | ||
pg (0.17.1) | ||
polyglot (0.3.5) | ||
rack (1.5.5) | ||
rack-test (0.6.3) | ||
rack (>= 1.0) | ||
rails (4.1.4) | ||
actionmailer (= 4.1.4) | ||
actionpack (= 4.1.4) | ||
actionview (= 4.1.4) | ||
activemodel (= 4.1.4) | ||
activerecord (= 4.1.4) | ||
activesupport (= 4.1.4) | ||
bundler (>= 1.3.0, < 2.0) | ||
railties (= 4.1.4) | ||
sprockets-rails (~> 2.0) | ||
rails-api (0.4.0) | ||
actionpack (>= 3.2.11) | ||
railties (>= 3.2.11) | ||
railties (4.1.4) | ||
actionpack (= 4.1.4) | ||
activesupport (= 4.1.4) | ||
rake (>= 0.8.7) | ||
thor (>= 0.18.1, < 2.0) | ||
rake (10.4.2) | ||
rspec-core (3.0.4) | ||
rspec-support (~> 3.0.0) | ||
rspec-expectations (3.0.4) | ||
diff-lcs (>= 1.2.0, < 2.0) | ||
rspec-support (~> 3.0.0) | ||
rspec-mocks (3.0.4) | ||
rspec-support (~> 3.0.0) | ||
rspec-rails (3.0.2) | ||
actionpack (>= 3.0) | ||
activesupport (>= 3.0) | ||
railties (>= 3.0) | ||
rspec-core (~> 3.0.0) | ||
rspec-expectations (~> 3.0.0) | ||
rspec-mocks (~> 3.0.0) | ||
rspec-support (~> 3.0.0) | ||
rspec-support (3.0.4) | ||
simple_oauth (0.2.0) | ||
spring (1.3.6) | ||
sprockets (3.2.0) | ||
rack (~> 1.0) | ||
sprockets-rails (2.3.2) | ||
actionpack (>= 3.0) | ||
activesupport (>= 3.0) | ||
sprockets (>= 2.8, < 4.0) | ||
thin (1.6.3) | ||
daemons (~> 1.0, >= 1.0.9) | ||
eventmachine (~> 1.0) | ||
rack (~> 1.0) | ||
thor (0.19.1) | ||
thread_safe (0.3.5) | ||
treetop (1.4.15) | ||
polyglot | ||
polyglot (>= 0.3.1) | ||
twitter (5.11.0) | ||
addressable (~> 2.3) | ||
buftok (~> 0.2.0) | ||
equalizer (~> 0.0.9) | ||
faraday (~> 0.9.0) | ||
http (~> 0.6.0) | ||
http_parser.rb (~> 0.6.0) | ||
json (~> 1.8) | ||
memoizable (~> 0.4.0) | ||
naught (~> 1.0) | ||
simple_oauth (~> 0.2.0) | ||
tzinfo (1.2.2) | ||
thread_safe (~> 0.1) | ||
whenever (0.9.2) | ||
activesupport (>= 2.3.4) | ||
chronic (>= 0.6.3) | ||
|
||
PLATFORMS | ||
ruby | ||
|
||
DEPENDENCIES | ||
byebug | ||
figaro | ||
pg | ||
rails (= 4.1.4) | ||
rails-api | ||
rspec-rails (~> 3.0) | ||
spring | ||
thin | ||
whenever |
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 @@ | ||
Knock knock jokes and Snoop Dogg facts, finally in one convenient location. |
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 @@ | ||
# 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.
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 @@ | ||
class ApplicationController < ActionController::API | ||
end |
Empty file.
Empty file.
Empty file.
Empty file.
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 @@ | ||
#!/usr/bin/env ruby | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
load Gem.bin_path('bundler', 'bundle') |
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 @@ | ||
#!/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' |
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 @@ | ||
#!/usr/bin/env ruby | ||
begin | ||
load File.expand_path("../spring", __FILE__) | ||
rescue LoadError | ||
end | ||
require_relative '../config/boot' | ||
require 'rake' | ||
Rake.application.run |
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,15 @@ | ||
#!/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) | ||
Gem.paths = { "GEM_PATH" => [Bundler.bundle_path.to_s, *Gem.path].uniq } | ||
gem "spring", match[1] | ||
require "spring/binstub" | ||
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,4 @@ | ||
# This file is used by Rack-based servers to start the application. | ||
|
||
require ::File.expand_path('../config/environment', __FILE__) | ||
run Rails.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,30 @@ | ||
require File.expand_path('../boot', __FILE__) | ||
|
||
# Pick the frameworks you want: | ||
require "active_model/railtie" | ||
require "active_record/railtie" | ||
require "action_controller/railtie" | ||
require "action_mailer/railtie" | ||
require "action_view/railtie" | ||
require "sprockets/railtie" | ||
# require "rails/test_unit/railtie" | ||
|
||
# Require the gems listed in Gemfile, including any gems | ||
# you've limited to :test, :development, or :production. | ||
Bundler.require(*Rails.groups) | ||
|
||
module KnockBotRails | ||
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 |
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 @@ | ||
# Set up gems listed in the Gemfile. | ||
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) | ||
|
||
require 'bundler/setup' if File.exist?(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,41 @@ | ||
# SQLite version 3.x | ||
# gem install sqlite3 | ||
# | ||
# Ensure the SQLite 3 gem is defined in your Gemfile | ||
# gem 'sqlite3' | ||
# | ||
default: &default | ||
adapter: postgresql | ||
pool: 5 | ||
timeout: 5000 | ||
|
||
# development: | ||
# <<: *default | ||
# database: db/development.sqlite3 | ||
|
||
# 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: | ||
# <<: *default | ||
# database: db/test.sqlite3 | ||
|
||
# production: | ||
# <<: *default | ||
# database: db/production.sqlite3 | ||
|
||
development: | ||
adapter: postgresql | ||
encoding: unicode | ||
database: knockbot_development | ||
pool: 5 | ||
username: knockbot | ||
password: password1 | ||
|
||
test: | ||
adapter: postgresql | ||
encoding: unicode | ||
database: knockbot_test | ||
pool: 5 | ||
username: knockbot | ||
password: password1 |
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. | ||
Rails.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,37 @@ | ||
Rails.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 web server when you make code changes. | ||
config.cache_classes = false | ||
|
||
# Do not eager load code on boot. | ||
config.eager_load = false | ||
|
||
# Show full error reports and disable caching. | ||
config.consider_all_requests_local = 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 | ||
|
||
# Raise an error on page load if there are pending migrations. | ||
config.active_record.migration_error = :page_load | ||
|
||
# Debug mode disables concatenation and preprocessing of assets. | ||
# This option may cause significant delays in view rendering with a large | ||
# number of complex assets. | ||
config.assets.debug = true | ||
|
||
# Adds additional error checking when serving assets at runtime. | ||
# Checks for improperly declared sprockets dependencies. | ||
# Raises helpful error messages. | ||
config.assets.raise_runtime_errors = true | ||
|
||
# Raises error for missing translations | ||
# config.action_view.raise_on_missing_translations = true | ||
end |
Oops, something went wrong.