Created
August 10, 2013 23:07
-
-
Save davidcelis/6202579 to your computer and use it in GitHub Desktop.
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
require 'active_support/dependencies' | |
# Load environment-specific configuration | |
pathname = Crepe.root.join 'config', 'environment' | |
require_dependency pathname.join(Crepe.env).to_s |
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
require File.expand_path('../boot', __FILE__) | |
require 'crepe' | |
# Require the gems listed in Gemfile, including any gems | |
# you've limited to :test, :development, or :production. | |
Bundler.require(:default, Crepe.env) | |
module Goodbrews | |
class Application < Configurable | |
# 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 | |
# Load initializers | |
Dir[Crepe.root.join('config', 'initializers', '**', '*.rb')].each { |f| require f } |
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
# 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
# A sample Gemfile | |
source "https://rubygems.org" | |
gem 'crepe', github: 'stephencelis/crepe' | |
gem 'puma' | |
gem 'rake' | |
gem 'app' | |
gem 'activerecord', require: 'active_record' | |
gem 'actionmailer', require: 'action_mailer' | |
group :development, :test do | |
gem 'rspec' | |
gem 'coveralls', require: false | |
gem 'pry' | |
gem 'pry-coolline' | |
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
GIT | |
remote: git://github.com/stephencelis/crepe.git | |
revision: 3ccd9ece984e611d171af765090fdbf461e11921 | |
specs: | |
crepe (0.0.1.pre) | |
activesupport (>= 4.0.0.rc1) | |
multi_json (~> 1.6.x) | |
multi_xml (~> 0.5.x) | |
rack (~> 1.5.x) | |
rack-mount (~> 0.8.x) | |
tilt (~> 1.3.x) | |
GEM | |
remote: https://rubygems.org/ | |
specs: | |
actionmailer (4.0.0) | |
actionpack (= 4.0.0) | |
mail (~> 2.5.3) | |
actionpack (4.0.0) | |
activesupport (= 4.0.0) | |
builder (~> 3.1.0) | |
erubis (~> 2.7.0) | |
rack (~> 1.5.2) | |
rack-test (~> 0.6.2) | |
activemodel (4.0.0) | |
activesupport (= 4.0.0) | |
builder (~> 3.1.0) | |
activerecord (4.0.0) | |
activemodel (= 4.0.0) | |
activerecord-deprecated_finders (~> 1.0.2) | |
activesupport (= 4.0.0) | |
arel (~> 4.0.0) | |
activerecord-deprecated_finders (1.0.3) | |
activesupport (4.0.0) | |
i18n (~> 0.6, >= 0.6.4) | |
minitest (~> 4.2) | |
multi_json (~> 1.3) | |
thread_safe (~> 0.1) | |
tzinfo (~> 0.3.37) | |
app (1.0.3) | |
arel (4.0.0) | |
atomic (1.1.12) | |
builder (3.1.4) | |
coderay (1.0.9) | |
colorize (0.5.8) | |
coolline (0.4.2) | |
coveralls (0.6.7) | |
colorize | |
multi_json (~> 1.3) | |
rest-client | |
simplecov (>= 0.7) | |
thor | |
diff-lcs (1.2.4) | |
erubis (2.7.0) | |
i18n (0.6.4) | |
io-console (0.3) | |
mail (2.5.4) | |
mime-types (~> 1.16) | |
treetop (~> 1.4.8) | |
method_source (0.8.2) | |
mime-types (1.23) | |
minitest (4.7.5) | |
multi_json (1.7.8) | |
multi_xml (0.5.5) | |
polyglot (0.3.3) | |
pry (0.9.12.2) | |
coderay (~> 1.0.5) | |
method_source (~> 0.8) | |
slop (~> 3.4) | |
pry-coolline (0.2.2) | |
coolline (~> 0.3) | |
io-console (~> 0.3.0) | |
puma (2.5.0) | |
rack (>= 1.1, < 2.0) | |
rack (1.5.2) | |
rack-mount (0.8.3) | |
rack (>= 1.0.0) | |
rack-test (0.6.2) | |
rack (>= 1.0) | |
rake (0.9.6) | |
rest-client (1.6.7) | |
mime-types (>= 1.16) | |
rspec (2.14.1) | |
rspec-core (~> 2.14.0) | |
rspec-expectations (~> 2.14.0) | |
rspec-mocks (~> 2.14.0) | |
rspec-core (2.14.4) | |
rspec-expectations (2.14.1) | |
diff-lcs (>= 1.1.3, < 2.0) | |
rspec-mocks (2.14.3) | |
simplecov (0.7.1) | |
multi_json (~> 1.0) | |
simplecov-html (~> 0.7.1) | |
simplecov-html (0.7.1) | |
slop (3.4.6) | |
thor (0.18.1) | |
thread_safe (0.1.2) | |
atomic | |
tilt (1.4.1) | |
treetop (1.4.14) | |
polyglot | |
polyglot (>= 0.3.1) | |
tzinfo (0.3.37) | |
PLATFORMS | |
ruby | |
DEPENDENCIES | |
actionmailer | |
activerecord | |
app | |
coveralls | |
crepe! | |
pry | |
pry-coolline | |
puma | |
rake | |
rspec |
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
# Load the Rails application. | |
require File.expand_path('../config/application', __FILE__) | |
run Goodbrews::API |
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
load 'active_record/railties/databases.rake' |
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
# This file was generated by the `rspec --init` command. Conventionally, all | |
# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. | |
# Require this file using `require "spec_helper"` to ensure that it is only | |
# loaded once. | |
# | |
# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration | |
RSpec.configure do |config| | |
config.treat_symbols_as_metadata_keys_with_true_values = true | |
config.run_all_when_everything_filtered = true | |
config.filter_run :focus | |
# Run specs in random order to surface order dependencies. If you find an | |
# order dependency and want to debug it, you can fix the order by providing | |
# the seed, which is printed after each run. | |
# --seed 1234 | |
config.order = 'random' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment