raygun 0.0.28 → 0.0.29
Sign up to get free protection for your applications and to get access to all the features.
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -1
- data/CHANGES.md +7 -0
- data/README.md +3 -1
- data/bin/raygun +67 -44
- data/cleanup.sh +5 -0
- data/lib/colorize.rb +194 -0
- data/lib/raygun/version.rb +1 -1
- data/rails_32/.ruby-gemset +1 -0
- data/rails_32/Gemfile +1 -0
- data/rails_32/spec/spec_helper.rb +1 -17
- data/rails_32/spec/support/database_cleaner.rb +24 -0
- data/rails_40/.env +8 -0
- data/rails_40/.gitignore +16 -0
- data/rails_40/.rspec +1 -0
- data/rails_40/.ruby-gemset +1 -0
- data/rails_40/.ruby-version +1 -0
- data/rails_40/Gemfile +53 -0
- data/rails_40/Guardfile +32 -0
- data/rails_40/Procfile +2 -0
- data/rails_40/README.md +66 -0
- data/rails_40/Rakefile +15 -0
- data/rails_40/app/assets/javascripts/application.js +17 -0
- data/rails_40/app/assets/stylesheets/_footer.less +30 -0
- data/rails_40/app/assets/stylesheets/_navbar.less +5 -0
- data/rails_40/app/assets/stylesheets/application.css.less +3 -0
- data/rails_40/app/controllers/application_controller.rb +5 -0
- data/rails_40/app/controllers/concerns/.keep +0 -0
- data/rails_40/app/controllers/pages_controller.rb +6 -0
- data/rails_40/app/helpers/application_helper.rb +11 -0
- data/rails_40/app/mailers/.keep +0 -0
- data/rails_40/app/models/.keep +0 -0
- data/rails_40/app/models/concerns/.keep +0 -0
- data/rails_40/app/views/layouts/application.html.slim +36 -0
- data/rails_40/app/views/pages/root.html.slim +12 -0
- data/rails_40/bin/bundle +3 -0
- data/rails_40/bin/rails +4 -0
- data/rails_40/bin/rake +4 -0
- data/rails_40/config/application.rb +36 -0
- data/rails_40/config/boot.rb +4 -0
- data/rails_40/config/database.yml +15 -0
- data/rails_40/config/environment.rb +5 -0
- data/rails_40/config/environments/acceptance.rb +82 -0
- data/rails_40/config/environments/development.rb +31 -0
- data/rails_40/config/environments/production.rb +82 -0
- data/rails_40/config/environments/test.rb +38 -0
- data/rails_40/config/initializers/backtrace_silencers.rb +7 -0
- data/rails_40/config/initializers/filter_parameter_logging.rb +4 -0
- data/rails_40/config/initializers/inflections.rb +16 -0
- data/rails_40/config/initializers/mailcacher.rb +15 -0
- data/rails_40/config/initializers/mime_types.rb +5 -0
- data/rails_40/config/initializers/secret_token.rb +12 -0
- data/rails_40/config/initializers/session_store.rb +3 -0
- data/rails_40/config/initializers/simple_form.rb +142 -0
- data/rails_40/config/initializers/simple_form_bootstrap.rb +45 -0
- data/rails_40/config/initializers/wrap_parameters.rb +14 -0
- data/rails_40/config/locales/en.yml +23 -0
- data/rails_40/config/locales/simple_form.en.yml +26 -0
- data/rails_40/config/routes.rb +5 -0
- data/rails_40/config/unicorn.rb +27 -0
- data/rails_40/config.ru +18 -0
- data/rails_40/db/sample_data.rb +11 -0
- data/rails_40/db/schema.rb +19 -0
- data/rails_40/db/seeds.rb +7 -0
- data/rails_40/lib/assets/.keep +0 -0
- data/rails_40/lib/tasks/.keep +0 -0
- data/rails_40/lib/tasks/coverage.rake +10 -0
- data/rails_40/lib/tasks/db.rake +7 -0
- data/rails_40/lib/tasks/spec.rake +23 -0
- data/rails_40/lib/templates/rails/scaffold_controller/controller.rb +61 -0
- data/rails_40/lib/templates/rspec/controller/controller_spec.rb +16 -0
- data/rails_40/lib/templates/rspec/scaffold/controller_spec.rb +155 -0
- data/rails_40/lib/templates/rspec/scaffold/edit_spec.rb +18 -0
- data/rails_40/lib/templates/rspec/scaffold/index_spec.rb +26 -0
- data/rails_40/lib/templates/rspec/scaffold/new_spec.rb +19 -0
- data/rails_40/lib/templates/rspec/scaffold/show_spec.rb +16 -0
- data/rails_40/lib/templates/slim/scaffold/_form.html.slim +13 -0
- data/rails_40/lib/templates/slim/scaffold/edit.html.slim +5 -0
- data/rails_40/lib/templates/slim/scaffold/index.html.slim +29 -0
- data/rails_40/lib/templates/slim/scaffold/new.html.slim +4 -0
- data/rails_40/lib/templates/slim/scaffold/show.html.slim +17 -0
- data/rails_40/log/.keep +0 -0
- data/rails_40/public/404.html +58 -0
- data/rails_40/public/422.html +58 -0
- data/rails_40/public/500.html +57 -0
- data/rails_40/public/favicon.ico +0 -0
- data/rails_40/public/robots.txt +5 -0
- data/rails_40/spec/controllers/pages_controller_spec.rb +12 -0
- data/rails_40/spec/features/pages_spec.rb +18 -0
- data/rails_40/spec/spec_helper.rb +79 -0
- data/rails_40/spec/support/database_cleaner.rb +24 -0
- data/rails_40/spec/support/factory_girl.rb +3 -0
- data/rails_40/vendor/assets/javascripts/.keep +0 -0
- data/rails_40/vendor/assets/stylesheets/.keep +0 -0
- metadata +88 -6
- data/.rvmrc +0 -1
- data/app_prototype/config/routes.rb +0 -21
- data/app_prototype/db/schema.rb +0 -54
- data/rails_32/.rvmrc +0 -1
data/rails_40/Rakefile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env rake
|
2
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
3
|
+
# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
|
4
|
+
|
5
|
+
require File.expand_path('../config/application', __FILE__)
|
6
|
+
|
7
|
+
AppPrototype::Application.load_tasks
|
8
|
+
|
9
|
+
# Disable schema.sql generation, unless we're in development.
|
10
|
+
# http://stackoverflow.com/questions/12413306/error-when-doing-rake-dbmigrate-on-heroku
|
11
|
+
Rake::Task['db:structure:dump'].clear unless Rails.env.development?
|
12
|
+
|
13
|
+
# Spec is the default rake target.
|
14
|
+
task(:default).clear
|
15
|
+
task default: 'spec'
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
|
11
|
+
// GO AFTER THE REQUIRES BELOW.
|
12
|
+
//
|
13
|
+
//= require jquery
|
14
|
+
//= require jquery_ujs
|
15
|
+
//= require turbolinks
|
16
|
+
//= require twitter/bootstrap
|
17
|
+
//= require_tree .
|
@@ -0,0 +1,30 @@
|
|
1
|
+
@footerHeight: 30px;
|
2
|
+
|
3
|
+
html, body {
|
4
|
+
height: 100%;
|
5
|
+
}
|
6
|
+
|
7
|
+
.wrapper {
|
8
|
+
min-height: 100%;
|
9
|
+
height: auto !important;
|
10
|
+
height: 100%;
|
11
|
+
margin: 0 auto -(@footerHeight + 1);
|
12
|
+
}
|
13
|
+
|
14
|
+
.push {
|
15
|
+
height: @footerHeight + 20px; // The extra prevents content from bumping right into our footer.
|
16
|
+
}
|
17
|
+
|
18
|
+
footer {
|
19
|
+
height: @footerHeight;
|
20
|
+
line-height: @footerHeight;
|
21
|
+
|
22
|
+
.container {
|
23
|
+
border-top: 1px solid @grayLighter;
|
24
|
+
}
|
25
|
+
|
26
|
+
p {
|
27
|
+
margin: 0;
|
28
|
+
color: @grayLight;
|
29
|
+
}
|
30
|
+
}
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
@@ -0,0 +1,36 @@
|
|
1
|
+
doctype 5
|
2
|
+
html
|
3
|
+
head
|
4
|
+
title App Prototype
|
5
|
+
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true
|
6
|
+
= javascript_include_tag 'application', 'data-turbolinks-track' => true
|
7
|
+
= csrf_meta_tag
|
8
|
+
|
9
|
+
body id=(controller.controller_name) class=(controller.action_name)
|
10
|
+
.wrapper
|
11
|
+
.container
|
12
|
+
header.navbar.navbar-fixed-top
|
13
|
+
nav.navbar-inner
|
14
|
+
.container
|
15
|
+
.brand App Prototype
|
16
|
+
/ul.nav.pull-right
|
17
|
+
/ - if current_user
|
18
|
+
/ li.dropdown
|
19
|
+
/ a.dropdown-toggle href='#' data-toggle='dropdown'
|
20
|
+
/ = current_user.email
|
21
|
+
/ b.caret
|
22
|
+
/ ul.dropdown-menu
|
23
|
+
/ li= link_to 'Sign Out', sign_out_path
|
24
|
+
/ - else
|
25
|
+
/ li= link_to 'Sign In', sign_in_path
|
26
|
+
|
27
|
+
- flash.each do |name, msg|
|
28
|
+
= content_tag :div, raw(msg), class: "alert #{alert_class(name)}"
|
29
|
+
|
30
|
+
= yield
|
31
|
+
|
32
|
+
.push
|
33
|
+
|
34
|
+
footer
|
35
|
+
.container
|
36
|
+
p © 2013 All rights reserved.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
javascript:
|
2
|
+
$(document).ready(function() {
|
3
|
+
$('.hero-unit p:last').after("<p>Enjoy!</p>")
|
4
|
+
});
|
5
|
+
|
6
|
+
.hero-unit
|
7
|
+
h1 Hello, world!
|
8
|
+
br
|
9
|
+
p Welcome to your newly generated rails application...
|
10
|
+
p Meander around the code to see what's been done for you. Many small, and a few not-so-small, customizations have been made.
|
11
|
+
p Custom generator templates create views that are bootstrap compatible and specs that are factory-aware and follow best practices.
|
12
|
+
p Your applicated is ready for easy deployment to heroku.
|
data/rails_40/bin/bundle
ADDED
data/rails_40/bin/rails
ADDED
data/rails_40/bin/rake
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require File.expand_path('../boot', __FILE__)
|
2
|
+
|
3
|
+
# Pick the frameworks you want:
|
4
|
+
require "active_record/railtie"
|
5
|
+
require "action_controller/railtie"
|
6
|
+
require "action_mailer/railtie"
|
7
|
+
require "sprockets/railtie"
|
8
|
+
|
9
|
+
# Require the gems listed in Gemfile, including any gems
|
10
|
+
# you've limited to :test, :development, or :production.
|
11
|
+
Bundler.require(:default, Rails.env)
|
12
|
+
|
13
|
+
module AppPrototype
|
14
|
+
class Application < Rails::Application
|
15
|
+
# Settings in config/environments/* take precedence over those specified here.
|
16
|
+
# Application configuration should go into files in config/initializers
|
17
|
+
# -- all .rb files in that directory are automatically loaded.
|
18
|
+
|
19
|
+
# Disable unwanted generators.
|
20
|
+
config.generators do |generate|
|
21
|
+
generate.stylesheets false
|
22
|
+
#generate.helper false
|
23
|
+
generate.routing_specs false
|
24
|
+
#generate.view_specs false
|
25
|
+
generate.request_specs false
|
26
|
+
end
|
27
|
+
|
28
|
+
# Set Time.zone default to the specified zone and make Active Record auto-convert to this zone.
|
29
|
+
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
30
|
+
# config.time_zone = 'Central Time (US & Canada)'
|
31
|
+
|
32
|
+
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
33
|
+
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
34
|
+
# config.i18n.default_locale = :de
|
35
|
+
end
|
36
|
+
end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# PostgreSQL. Versions 8.2 and up are supported.
|
2
|
+
# Use 'createuser -s postgres' to create a general purpose db (super)user.
|
3
|
+
|
4
|
+
development: &default
|
5
|
+
adapter: postgresql
|
6
|
+
encoding: unicode
|
7
|
+
database: app_prototype_development
|
8
|
+
username: postgres
|
9
|
+
pool: 5
|
10
|
+
timeout: 5000
|
11
|
+
|
12
|
+
test:
|
13
|
+
<<: *default
|
14
|
+
database: app_prototype_test
|
15
|
+
min_messages: warning
|
@@ -0,0 +1,82 @@
|
|
1
|
+
AppPrototype::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both thread web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation can not be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
|
81
|
+
config.action_mailer.default_url_options = { host: 'app-prototype-acceptance.herokuapp.com' }
|
82
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
AppPrototype::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# In the development environment your application's code is reloaded on
|
5
|
+
# every request. This slows down response time but is perfect for development
|
6
|
+
# since you don't have to restart the web server when you make code changes.
|
7
|
+
config.cache_classes = false
|
8
|
+
|
9
|
+
# Do not eager load code on boot.
|
10
|
+
config.eager_load = false
|
11
|
+
|
12
|
+
# Show full error reports and disable caching.
|
13
|
+
config.consider_all_requests_local = true
|
14
|
+
config.action_controller.perform_caching = false
|
15
|
+
|
16
|
+
# Don't care if the mailer can't send.
|
17
|
+
config.action_mailer.raise_delivery_errors = false
|
18
|
+
|
19
|
+
# Print deprecation notices to the Rails logger.
|
20
|
+
config.active_support.deprecation = :log
|
21
|
+
|
22
|
+
# Raise an error on page load if there are pending migrations
|
23
|
+
config.active_record.migration_error = :page_load
|
24
|
+
|
25
|
+
# Debug mode disables concatenation and preprocessing of assets.
|
26
|
+
# This option may cause significant delays in view rendering with a large
|
27
|
+
# number of complex assets.
|
28
|
+
config.assets.debug = true
|
29
|
+
|
30
|
+
config.action_mailer.default_url_options = { host: 'localhost:3000' }
|
31
|
+
end
|
@@ -0,0 +1,82 @@
|
|
1
|
+
AppPrototype::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# Code is not reloaded between requests.
|
5
|
+
config.cache_classes = true
|
6
|
+
|
7
|
+
# Eager load code on boot. This eager loads most of Rails and
|
8
|
+
# your application in memory, allowing both thread web servers
|
9
|
+
# and those relying on copy on write to perform better.
|
10
|
+
# Rake tasks automatically ignore this option for performance.
|
11
|
+
config.eager_load = true
|
12
|
+
|
13
|
+
# Full error reports are disabled and caching is turned on.
|
14
|
+
config.consider_all_requests_local = false
|
15
|
+
config.action_controller.perform_caching = true
|
16
|
+
|
17
|
+
# Enable Rack::Cache to put a simple HTTP cache in front of your application
|
18
|
+
# Add `rack-cache` to your Gemfile before enabling this.
|
19
|
+
# For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid.
|
20
|
+
# config.action_dispatch.rack_cache = true
|
21
|
+
|
22
|
+
# Disable Rails's static asset server (Apache or nginx will already do this).
|
23
|
+
config.serve_static_assets = false
|
24
|
+
|
25
|
+
# Compress JavaScripts and CSS.
|
26
|
+
config.assets.js_compressor = :uglifier
|
27
|
+
# config.assets.css_compressor = :sass
|
28
|
+
|
29
|
+
# Do not fallback to assets pipeline if a precompiled asset is missed.
|
30
|
+
config.assets.compile = false
|
31
|
+
|
32
|
+
# Generate digests for assets URLs.
|
33
|
+
config.assets.digest = true
|
34
|
+
|
35
|
+
# Version of your assets, change this if you want to expire all your assets.
|
36
|
+
config.assets.version = '1.0'
|
37
|
+
|
38
|
+
# Specifies the header that your server uses for sending files.
|
39
|
+
# config.action_dispatch.x_sendfile_header = 'X-Sendfile' # for apache
|
40
|
+
# config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx
|
41
|
+
|
42
|
+
# Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies.
|
43
|
+
# config.force_ssl = true
|
44
|
+
|
45
|
+
# Set to :debug to see everything in the log.
|
46
|
+
config.log_level = :info
|
47
|
+
|
48
|
+
# Prepend all log lines with the following tags.
|
49
|
+
# config.log_tags = [ :subdomain, :uuid ]
|
50
|
+
|
51
|
+
# Use a different logger for distributed setups.
|
52
|
+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
|
53
|
+
|
54
|
+
# Use a different cache store in production.
|
55
|
+
# config.cache_store = :mem_cache_store
|
56
|
+
|
57
|
+
# Enable serving of images, stylesheets, and JavaScripts from an asset server.
|
58
|
+
# config.action_controller.asset_host = "http://assets.example.com"
|
59
|
+
|
60
|
+
# Precompile additional assets.
|
61
|
+
# application.js, application.css, and all non-JS/CSS in app/assets folder are already added.
|
62
|
+
# config.assets.precompile += %w( search.js )
|
63
|
+
|
64
|
+
# Ignore bad email addresses and do not raise email delivery errors.
|
65
|
+
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
|
66
|
+
# config.action_mailer.raise_delivery_errors = false
|
67
|
+
|
68
|
+
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
|
69
|
+
# the I18n.default_locale when a translation can not be found).
|
70
|
+
config.i18n.fallbacks = true
|
71
|
+
|
72
|
+
# Send deprecation notices to registered listeners.
|
73
|
+
config.active_support.deprecation = :notify
|
74
|
+
|
75
|
+
# Disable automatic flushing of the log to improve performance.
|
76
|
+
# config.autoflush_log = false
|
77
|
+
|
78
|
+
# Use default logging formatter so that PID and timestamp are not suppressed.
|
79
|
+
config.log_formatter = ::Logger::Formatter.new
|
80
|
+
|
81
|
+
config.action_mailer.default_url_options = { host: 'app-prototype.herokuapp.com' }
|
82
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
AppPrototype::Application.configure do
|
2
|
+
# Settings specified here will take precedence over those in config/application.rb.
|
3
|
+
|
4
|
+
# The test environment is used exclusively to run your application's
|
5
|
+
# test suite. You never need to work with it otherwise. Remember that
|
6
|
+
# your test database is "scratch space" for the test suite and is wiped
|
7
|
+
# and recreated between test runs. Don't rely on the data there!
|
8
|
+
config.cache_classes = true
|
9
|
+
|
10
|
+
# Do not eager load code on boot. This avoids loading your whole application
|
11
|
+
# just for the purpose of running a single test. If you are using a tool that
|
12
|
+
# preloads Rails for running tests, you may have to set it to true.
|
13
|
+
config.eager_load = false
|
14
|
+
|
15
|
+
# Configure static asset server for tests with Cache-Control for performance.
|
16
|
+
config.serve_static_assets = true
|
17
|
+
config.static_cache_control = "public, max-age=3600"
|
18
|
+
|
19
|
+
# Show full error reports and disable caching.
|
20
|
+
config.consider_all_requests_local = true
|
21
|
+
config.action_controller.perform_caching = false
|
22
|
+
|
23
|
+
# Raise exceptions instead of rendering exception templates.
|
24
|
+
config.action_dispatch.show_exceptions = false
|
25
|
+
|
26
|
+
# Disable request forgery protection in test environment.
|
27
|
+
config.action_controller.allow_forgery_protection = false
|
28
|
+
|
29
|
+
# Tell Action Mailer not to deliver emails to the real world.
|
30
|
+
# The :test delivery method accumulates sent emails in the
|
31
|
+
# ActionMailer::Base.deliveries array.
|
32
|
+
config.action_mailer.delivery_method = :test
|
33
|
+
|
34
|
+
# Print deprecation notices to the stderr.
|
35
|
+
config.active_support.deprecation = :stderr
|
36
|
+
|
37
|
+
config.action_mailer.default_url_options = { host: 'example.com' }
|
38
|
+
end
|
@@ -0,0 +1,7 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
4
|
+
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
5
|
+
|
6
|
+
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
7
|
+
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Add new inflection rules using the following format. Inflections
|
4
|
+
# are locale specific, and you may define rules for as many different
|
5
|
+
# locales as you wish. All of these examples are active by default:
|
6
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
7
|
+
# inflect.plural /^(ox)$/i, '\1en'
|
8
|
+
# inflect.singular /^(ox)en/i, '\1'
|
9
|
+
# inflect.irregular 'person', 'people'
|
10
|
+
# inflect.uncountable %w( fish sheep )
|
11
|
+
# end
|
12
|
+
|
13
|
+
# These inflection rules are supported but not enabled by default:
|
14
|
+
# ActiveSupport::Inflector.inflections(:en) do |inflect|
|
15
|
+
# inflect.acronym 'RESTful'
|
16
|
+
# end
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# http://www.mikeperham.com/2012/12/09/12-gems-of-christmas-4-mailcatcher-and-mail_view/
|
2
|
+
|
3
|
+
mailcatcher_port = 1025
|
4
|
+
|
5
|
+
begin
|
6
|
+
sock = TCPSocket.new('localhost', mailcatcher_port)
|
7
|
+
sock.close
|
8
|
+
mailcatcher = true
|
9
|
+
rescue
|
10
|
+
mailcatcher = false
|
11
|
+
end
|
12
|
+
|
13
|
+
if Rails.env.development? && mailcatcher
|
14
|
+
ActionMailer::Base.smtp_settings = { host: 'localhost', port: mailcatcher_port }
|
15
|
+
end
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# Be sure to restart your server when you modify this file.
|
2
|
+
|
3
|
+
# Your secret key is used for verifying the integrity of signed cookies.
|
4
|
+
# If you change this key, all old signed cookies will become invalid!
|
5
|
+
|
6
|
+
# Make sure the secret is at least 30 characters and all random,
|
7
|
+
# no regular words or you'll be exposed to dictionary attacks.
|
8
|
+
# You can use `rake secret` to generate a secure secret key.
|
9
|
+
|
10
|
+
# Make sure your secret_key_base is kept private
|
11
|
+
# if you're sharing your code publicly.
|
12
|
+
AppPrototype::Application.config.secret_key_base = ENV['SECRET_TOKEN'] || 'AWAbYFxfy5SxropZl5yIiNiE2bv3lJ7nLcreGI9p'
|