edge_rider 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +1 -2
- data/.ruby-version +1 -1
- data/.travis.yml +61 -10
- data/README.md +7 -8
- data/Rakefile +5 -61
- data/edge_rider.gemspec +2 -3
- data/gemfiles/Gemfile.2.3.mysql2 +16 -0
- data/gemfiles/Gemfile.2.3.mysql2.lock +37 -0
- data/gemfiles/Gemfile.3.2.mysql2 +16 -0
- data/gemfiles/Gemfile.3.2.mysql2.lock +62 -0
- data/gemfiles/Gemfile.4.2.mysql2 +15 -0
- data/gemfiles/Gemfile.4.2.mysql2.lock +66 -0
- data/gemfiles/Gemfile.4.2.pg +15 -0
- data/gemfiles/Gemfile.4.2.pg.lock +66 -0
- data/gemfiles/Gemfile.5.1.mysql2 +15 -0
- data/gemfiles/Gemfile.5.1.mysql2.lock +63 -0
- data/gemfiles/Gemfile.5.1.pg +15 -0
- data/gemfiles/Gemfile.5.1.pg.lock +63 -0
- data/lib/edge_rider.rb +2 -0
- data/lib/edge_rider/collect_column.rb +7 -1
- data/lib/edge_rider/collect_ids.rb +3 -3
- data/lib/edge_rider/development.rb +2 -15
- data/lib/edge_rider/util.rb +31 -2
- data/lib/edge_rider/version.rb +1 -1
- data/spec/{shared/spec/edge_rider → edge_rider}/collect_column_spec.rb +0 -0
- data/spec/{shared/spec/edge_rider → edge_rider}/collect_ids_spec.rb +2 -2
- data/spec/{shared/spec/edge_rider → edge_rider}/origin_class_spec.rb +0 -0
- data/spec/{shared/spec/edge_rider → edge_rider}/preload_associations_spec.rb +0 -0
- data/spec/{shared/spec/edge_rider → edge_rider}/scoped_spec.rb +2 -1
- data/spec/{shared/spec/edge_rider → edge_rider}/to_id_query_spec.rb +3 -3
- data/spec/{shared/spec/edge_rider → edge_rider}/to_sql_spec.rb +1 -1
- data/spec/{shared/spec/edge_rider → edge_rider}/traverse_association_spec.rb +0 -0
- data/spec/{shared/spec/edge_rider → edge_rider}/util_spec.rb +0 -0
- data/spec/spec_helper.rb +12 -0
- data/spec/support/database.rb +34 -0
- data/spec/{shared/app_root/config → support}/database.sample.yml +6 -2
- data/spec/support/database.travis.yml +9 -0
- data/spec/support/models.rb +92 -0
- metadata +60 -155
- data/spec/rails-2.3/.ruby-version +0 -1
- data/spec/rails-2.3/Gemfile +0 -17
- data/spec/rails-2.3/Gemfile.lock +0 -66
- data/spec/rails-2.3/Rakefile +0 -11
- data/spec/rails-2.3/app_root/config/boot.rb +0 -130
- data/spec/rails-2.3/app_root/config/environment.rb +0 -16
- data/spec/rails-2.3/app_root/config/environments/test.rb +0 -0
- data/spec/rails-2.3/app_root/config/initializers/fix_missing_source_file.rb +0 -1
- data/spec/rails-2.3/app_root/config/preinitializer.rb +0 -22
- data/spec/rails-2.3/app_root/config/routes.rb +0 -15
- data/spec/rails-2.3/app_root/log/.gitignore +0 -1
- data/spec/rails-2.3/rcov.opts +0 -2
- data/spec/rails-2.3/spec.opts +0 -5
- data/spec/rails-2.3/spec/spec_helper.rb +0 -25
- data/spec/rails-3.0/.rspec +0 -2
- data/spec/rails-3.0/.ruby-version +0 -1
- data/spec/rails-3.0/Gemfile +0 -12
- data/spec/rails-3.0/Gemfile.lock +0 -120
- data/spec/rails-3.0/Rakefile +0 -11
- data/spec/rails-3.0/app_root/.gitignore +0 -4
- data/spec/rails-3.0/app_root/config/application.rb +0 -33
- data/spec/rails-3.0/app_root/config/boot.rb +0 -15
- data/spec/rails-3.0/app_root/config/environment.rb +0 -7
- data/spec/rails-3.0/app_root/config/environments/test.rb +0 -37
- data/spec/rails-3.0/app_root/config/initializers/backtrace_silencers.rb +0 -9
- data/spec/rails-3.0/app_root/config/initializers/inflections.rb +0 -12
- data/spec/rails-3.0/app_root/config/initializers/mime_types.rb +0 -7
- data/spec/rails-3.0/app_root/config/initializers/secret_token.rb +0 -9
- data/spec/rails-3.0/app_root/config/initializers/session_store.rb +0 -10
- data/spec/rails-3.0/app_root/config/routes.rb +0 -5
- data/spec/rails-3.0/app_root/lib/tasks/.gitkeep +0 -0
- data/spec/rails-3.0/app_root/log/.gitkeep +0 -0
- data/spec/rails-3.0/app_root/script/rails +0 -6
- data/spec/rails-3.0/rcov.opts +0 -2
- data/spec/rails-3.0/spec/spec_helper.rb +0 -23
- data/spec/rails-3.2/.rspec +0 -2
- data/spec/rails-3.2/.ruby-version +0 -1
- data/spec/rails-3.2/Gemfile +0 -16
- data/spec/rails-3.2/Gemfile.lock +0 -135
- data/spec/rails-3.2/Rakefile +0 -12
- data/spec/rails-3.2/app_root/.gitignore +0 -4
- data/spec/rails-3.2/app_root/config/application.rb +0 -33
- data/spec/rails-3.2/app_root/config/boot.rb +0 -15
- data/spec/rails-3.2/app_root/config/environment.rb +0 -7
- data/spec/rails-3.2/app_root/config/environments/test.rb +0 -37
- data/spec/rails-3.2/app_root/config/initializers/backtrace_silencers.rb +0 -9
- data/spec/rails-3.2/app_root/config/initializers/inflections.rb +0 -12
- data/spec/rails-3.2/app_root/config/initializers/mime_types.rb +0 -7
- data/spec/rails-3.2/app_root/config/initializers/secret_token.rb +0 -9
- data/spec/rails-3.2/app_root/config/initializers/session_store.rb +0 -10
- data/spec/rails-3.2/app_root/config/routes.rb +0 -5
- data/spec/rails-3.2/app_root/log/.gitignore +0 -1
- data/spec/rails-3.2/rcov.opts +0 -2
- data/spec/rails-3.2/spec/spec_helper.rb +0 -25
- data/spec/rails-4.1/.rspec +0 -2
- data/spec/rails-4.1/.ruby-version +0 -1
- data/spec/rails-4.1/Gemfile +0 -17
- data/spec/rails-4.1/Gemfile.lock +0 -138
- data/spec/rails-4.1/Rakefile +0 -12
- data/spec/rails-4.1/app_root/.gitignore +0 -16
- data/spec/rails-4.1/app_root/bin/bundle +0 -3
- data/spec/rails-4.1/app_root/bin/rails +0 -8
- data/spec/rails-4.1/app_root/bin/rake +0 -8
- data/spec/rails-4.1/app_root/bin/spring +0 -18
- data/spec/rails-4.1/app_root/config/application.rb +0 -28
- data/spec/rails-4.1/app_root/config/boot.rb +0 -4
- data/spec/rails-4.1/app_root/config/environment.rb +0 -5
- data/spec/rails-4.1/app_root/config/environments/development.rb +0 -37
- data/spec/rails-4.1/app_root/config/environments/production.rb +0 -83
- data/spec/rails-4.1/app_root/config/environments/test.rb +0 -39
- data/spec/rails-4.1/app_root/config/initializers/backtrace_silencers.rb +0 -7
- data/spec/rails-4.1/app_root/config/initializers/cookies_serializer.rb +0 -3
- data/spec/rails-4.1/app_root/config/initializers/filter_parameter_logging.rb +0 -4
- data/spec/rails-4.1/app_root/config/initializers/inflections.rb +0 -16
- data/spec/rails-4.1/app_root/config/initializers/mime_types.rb +0 -4
- data/spec/rails-4.1/app_root/config/initializers/session_store.rb +0 -3
- data/spec/rails-4.1/app_root/config/initializers/wrap_parameters.rb +0 -14
- data/spec/rails-4.1/app_root/config/routes.rb +0 -3
- data/spec/rails-4.1/app_root/config/secrets.yml +0 -22
- data/spec/rails-4.1/rcov.opts +0 -2
- data/spec/rails-4.1/spec/spec_helper.rb +0 -31
- data/spec/shared/app_root/app/controllers/application_controller.rb +0 -5
- data/spec/shared/app_root/app/models/allow_setting_id_on_create.rb +0 -21
- data/spec/shared/app_root/app/models/forum.rb +0 -11
- data/spec/shared/app_root/app/models/post.rb +0 -11
- data/spec/shared/app_root/app/models/profile.rb +0 -8
- data/spec/shared/app_root/app/models/topic.rb +0 -14
- data/spec/shared/app_root/app/models/user.rb +0 -13
- data/spec/shared/app_root/config/database.travis_ci.yml +0 -6
- data/spec/shared/app_root/db/migrate/001_create_test_tables.rb +0 -45
@@ -1,9 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# Be sure to restart your server when you modify this file.
|
4
|
-
|
5
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
6
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
7
|
-
|
8
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
9
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
@@ -1,12 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# Be sure to restart your server when you modify this file.
|
4
|
-
|
5
|
-
# Add new inflection rules using the following format
|
6
|
-
# (all these examples are active by default):
|
7
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
8
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
9
|
-
# inflect.singular /^(ox)en/i, '\1'
|
10
|
-
# inflect.irregular 'person', 'people'
|
11
|
-
# inflect.uncountable %w( fish sheep )
|
12
|
-
# end
|
@@ -1,9 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# Be sure to restart your server when you modify this file.
|
4
|
-
|
5
|
-
# Your secret key for verifying the integrity of signed cookies.
|
6
|
-
# If you change this key, all old signed cookies will become invalid!
|
7
|
-
# Make sure the secret is at least 30 characters and all random,
|
8
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
9
|
-
SpecApp::Application.config.secret_token = 'cb014a08a45243e7143f31e04774c342c1fba329fd594ae1a480d8283b1a851f425dc08044311fb4be6d000b6e6681de7c76d19148419a5ffa0a9f84556d3b33'
|
@@ -1,10 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
# Be sure to restart your server when you modify this file.
|
4
|
-
|
5
|
-
SpecApp::Application.config.session_store :cookie_store, :key => '_app_root_session'
|
6
|
-
|
7
|
-
# Use the database for sessions instead of the cookie-based default,
|
8
|
-
# which shouldn't be used to store highly confidential information
|
9
|
-
# (create the session table with "rails generate session_migration")
|
10
|
-
# HasDefaultSpecApp::Application.config.session_store :active_record_store
|
@@ -1 +0,0 @@
|
|
1
|
-
*.log
|
data/spec/rails-3.2/rcov.opts
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
# encoding: utf-8
|
2
|
-
|
3
|
-
$: << File.join(File.dirname(__FILE__), "/../../lib" )
|
4
|
-
|
5
|
-
ENV['RAILS_ENV'] = 'test'
|
6
|
-
ENV['RAILS_ROOT'] = 'app_root'
|
7
|
-
|
8
|
-
# Load the Rails environment and testing framework
|
9
|
-
require "#{File.dirname(__FILE__)}/../app_root/config/environment"
|
10
|
-
require 'rspec/rails'
|
11
|
-
require 'edge_rider/development'
|
12
|
-
DatabaseCleaner.strategy = :truncation
|
13
|
-
|
14
|
-
# Dir["#{File.dirname(__FILE__)}/../../shared/spec/shared_examples"].each {|f| require f}
|
15
|
-
|
16
|
-
# Run the migrations
|
17
|
-
EdgeRider::Development.migrate_test_database
|
18
|
-
|
19
|
-
RSpec.configure do |config|
|
20
|
-
config.use_transactional_fixtures = false
|
21
|
-
config.use_instantiated_fixtures = false
|
22
|
-
config.before(:each) do
|
23
|
-
DatabaseCleaner.clean
|
24
|
-
end
|
25
|
-
end
|
data/spec/rails-4.1/.rspec
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
2.1.0
|
data/spec/rails-4.1/Gemfile
DELETED
@@ -1,17 +0,0 @@
|
|
1
|
-
source 'https://rubygems.org'
|
2
|
-
|
3
|
-
gem 'rails', '~>4.1.0'
|
4
|
-
gem 'rspec'
|
5
|
-
gem 'rspec-rails'
|
6
|
-
gem 'mysql2'
|
7
|
-
gem 'rspec_candy'
|
8
|
-
gem 'database_cleaner', '=1.0.1'
|
9
|
-
gem 'andand'
|
10
|
-
gem 'has_defaults'
|
11
|
-
gem 'minitest' # fix MiniTest deprecation warnings
|
12
|
-
|
13
|
-
gem 'edge_rider', :path => '../..'
|
14
|
-
|
15
|
-
group :development do
|
16
|
-
gem 'debugger', platform: 'ruby_19'
|
17
|
-
end
|
data/spec/rails-4.1/Gemfile.lock
DELETED
@@ -1,138 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: ../..
|
3
|
-
specs:
|
4
|
-
edge_rider (0.3.0)
|
5
|
-
activerecord
|
6
|
-
|
7
|
-
GEM
|
8
|
-
remote: https://rubygems.org/
|
9
|
-
specs:
|
10
|
-
actionmailer (4.1.0)
|
11
|
-
actionpack (= 4.1.0)
|
12
|
-
actionview (= 4.1.0)
|
13
|
-
mail (~> 2.5.4)
|
14
|
-
actionpack (4.1.0)
|
15
|
-
actionview (= 4.1.0)
|
16
|
-
activesupport (= 4.1.0)
|
17
|
-
rack (~> 1.5.2)
|
18
|
-
rack-test (~> 0.6.2)
|
19
|
-
actionview (4.1.0)
|
20
|
-
activesupport (= 4.1.0)
|
21
|
-
builder (~> 3.1)
|
22
|
-
erubis (~> 2.7.0)
|
23
|
-
activemodel (4.1.0)
|
24
|
-
activesupport (= 4.1.0)
|
25
|
-
builder (~> 3.1)
|
26
|
-
activerecord (4.1.0)
|
27
|
-
activemodel (= 4.1.0)
|
28
|
-
activesupport (= 4.1.0)
|
29
|
-
arel (~> 5.0.0)
|
30
|
-
activesupport (4.1.0)
|
31
|
-
i18n (~> 0.6, >= 0.6.9)
|
32
|
-
json (~> 1.7, >= 1.7.7)
|
33
|
-
minitest (~> 5.1)
|
34
|
-
thread_safe (~> 0.1)
|
35
|
-
tzinfo (~> 1.1)
|
36
|
-
andand (1.3.3)
|
37
|
-
arel (5.0.1.20140414130214)
|
38
|
-
builder (3.2.2)
|
39
|
-
columnize (0.3.6)
|
40
|
-
database_cleaner (1.0.1)
|
41
|
-
debugger (1.6.3)
|
42
|
-
columnize (>= 0.3.1)
|
43
|
-
debugger-linecache (~> 1.2.0)
|
44
|
-
debugger-ruby_core_source (~> 1.2.4)
|
45
|
-
debugger-linecache (1.2.0)
|
46
|
-
debugger-ruby_core_source (1.2.4)
|
47
|
-
diff-lcs (1.2.5)
|
48
|
-
erubis (2.7.0)
|
49
|
-
has_defaults (0.4.1)
|
50
|
-
activerecord
|
51
|
-
hike (1.2.3)
|
52
|
-
i18n (0.6.9)
|
53
|
-
json (1.8.1)
|
54
|
-
mail (2.5.4)
|
55
|
-
mime-types (~> 1.16)
|
56
|
-
treetop (~> 1.4.8)
|
57
|
-
mime-types (1.25.1)
|
58
|
-
minitest (5.3.4)
|
59
|
-
multi_json (1.10.1)
|
60
|
-
mysql2 (0.3.16)
|
61
|
-
polyglot (0.3.5)
|
62
|
-
rack (1.5.2)
|
63
|
-
rack-test (0.6.2)
|
64
|
-
rack (>= 1.0)
|
65
|
-
rails (4.1.0)
|
66
|
-
actionmailer (= 4.1.0)
|
67
|
-
actionpack (= 4.1.0)
|
68
|
-
actionview (= 4.1.0)
|
69
|
-
activemodel (= 4.1.0)
|
70
|
-
activerecord (= 4.1.0)
|
71
|
-
activesupport (= 4.1.0)
|
72
|
-
bundler (>= 1.3.0, < 2.0)
|
73
|
-
railties (= 4.1.0)
|
74
|
-
sprockets-rails (~> 2.0)
|
75
|
-
railties (4.1.0)
|
76
|
-
actionpack (= 4.1.0)
|
77
|
-
activesupport (= 4.1.0)
|
78
|
-
rake (>= 0.8.7)
|
79
|
-
thor (>= 0.18.1, < 2.0)
|
80
|
-
rake (10.3.2)
|
81
|
-
rspec (3.0.0)
|
82
|
-
rspec-core (~> 3.0.0)
|
83
|
-
rspec-expectations (~> 3.0.0)
|
84
|
-
rspec-mocks (~> 3.0.0)
|
85
|
-
rspec-core (3.0.0)
|
86
|
-
rspec-support (~> 3.0.0)
|
87
|
-
rspec-expectations (3.0.0)
|
88
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
89
|
-
rspec-support (~> 3.0.0)
|
90
|
-
rspec-mocks (3.0.0)
|
91
|
-
rspec-support (~> 3.0.0)
|
92
|
-
rspec-rails (3.0.0)
|
93
|
-
actionpack (>= 3.0)
|
94
|
-
activesupport (>= 3.0)
|
95
|
-
railties (>= 3.0)
|
96
|
-
rspec-core (~> 3.0.0)
|
97
|
-
rspec-expectations (~> 3.0.0)
|
98
|
-
rspec-mocks (~> 3.0.0)
|
99
|
-
rspec-support (~> 3.0.0)
|
100
|
-
rspec-support (3.0.0)
|
101
|
-
rspec_candy (0.3.1)
|
102
|
-
rspec
|
103
|
-
sneaky-save
|
104
|
-
sneaky-save (0.0.5)
|
105
|
-
activerecord (>= 3.2.0)
|
106
|
-
sprockets (2.11.0)
|
107
|
-
hike (~> 1.2)
|
108
|
-
multi_json (~> 1.0)
|
109
|
-
rack (~> 1.0)
|
110
|
-
tilt (~> 1.1, != 1.3.0)
|
111
|
-
sprockets-rails (2.1.3)
|
112
|
-
actionpack (>= 3.0)
|
113
|
-
activesupport (>= 3.0)
|
114
|
-
sprockets (~> 2.8)
|
115
|
-
thor (0.19.1)
|
116
|
-
thread_safe (0.3.4)
|
117
|
-
tilt (1.4.1)
|
118
|
-
treetop (1.4.15)
|
119
|
-
polyglot
|
120
|
-
polyglot (>= 0.3.1)
|
121
|
-
tzinfo (1.2.1)
|
122
|
-
thread_safe (~> 0.1)
|
123
|
-
|
124
|
-
PLATFORMS
|
125
|
-
ruby
|
126
|
-
|
127
|
-
DEPENDENCIES
|
128
|
-
andand
|
129
|
-
database_cleaner (= 1.0.1)
|
130
|
-
debugger
|
131
|
-
edge_rider!
|
132
|
-
has_defaults
|
133
|
-
minitest
|
134
|
-
mysql2
|
135
|
-
rails (~> 4.1.0)
|
136
|
-
rspec
|
137
|
-
rspec-rails
|
138
|
-
rspec_candy
|
data/spec/rails-4.1/Rakefile
DELETED
@@ -1,12 +0,0 @@
|
|
1
|
-
require 'rake'
|
2
|
-
require 'rspec/core/rake_task'
|
3
|
-
|
4
|
-
desc 'Default: Run all specs for a specific rails version.'
|
5
|
-
task :default => :spec
|
6
|
-
|
7
|
-
desc "Run all specs for a specific rails version"
|
8
|
-
RSpec::Core::RakeTask.new(:spec) do |t|
|
9
|
-
t.pattern = defined?(SPEC) ? SPEC : ['**/*_spec.rb', '../shared/**/*_spec.rb']
|
10
|
-
t.verbose = false
|
11
|
-
t.rspec_opts = '--backtrace'
|
12
|
-
end
|
@@ -1,16 +0,0 @@
|
|
1
|
-
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
|
2
|
-
#
|
3
|
-
# If you find yourself ignoring temporary files generated by your text editor
|
4
|
-
# or operating system, you probably want to add a global ignore instead:
|
5
|
-
# git config --global core.excludesfile '~/.gitignore_global'
|
6
|
-
|
7
|
-
# Ignore bundler config.
|
8
|
-
/.bundle
|
9
|
-
|
10
|
-
# Ignore the default SQLite database.
|
11
|
-
/db/*.sqlite3
|
12
|
-
/db/*.sqlite3-journal
|
13
|
-
|
14
|
-
# Ignore all logfiles and tempfiles.
|
15
|
-
/log/*.log
|
16
|
-
/tmp
|
@@ -1,18 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
# This file loads spring without using Bundler, in order to be fast
|
4
|
-
# It gets overwritten when you run the `spring binstub` command
|
5
|
-
|
6
|
-
unless defined?(Spring)
|
7
|
-
require "rubygems"
|
8
|
-
require "bundler"
|
9
|
-
|
10
|
-
if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
|
11
|
-
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
|
12
|
-
ENV["GEM_HOME"] = ""
|
13
|
-
Gem.paths = ENV
|
14
|
-
|
15
|
-
gem "spring", match[1]
|
16
|
-
require "spring/binstub"
|
17
|
-
end
|
18
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
require File.expand_path('../boot', __FILE__)
|
2
|
-
|
3
|
-
require 'rails/all'
|
4
|
-
|
5
|
-
# Require the gems listed in Gemfile, including any gems
|
6
|
-
# you've limited to :test, :development, or :production.
|
7
|
-
Bundler.require(*Rails.groups)
|
8
|
-
|
9
|
-
module SpecApp
|
10
|
-
class Application < Rails::Application
|
11
|
-
config.encoding = "utf-8"
|
12
|
-
|
13
|
-
config.cache_classes = true
|
14
|
-
config.whiny_nils = true
|
15
|
-
|
16
|
-
config.consider_all_requests_local = true
|
17
|
-
config.action_controller.perform_caching = false
|
18
|
-
config.action_controller.allow_forgery_protection = false
|
19
|
-
|
20
|
-
config.action_dispatch.show_exceptions = false
|
21
|
-
|
22
|
-
config.action_mailer.delivery_method = :test
|
23
|
-
|
24
|
-
config.active_support.deprecation = :stderr
|
25
|
-
|
26
|
-
config.root = File.expand_path('../..', __FILE__)
|
27
|
-
end
|
28
|
-
end
|
@@ -1,37 +0,0 @@
|
|
1
|
-
Rails.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
|
-
# Adds additional error checking when serving assets at runtime.
|
31
|
-
# Checks for improperly declared sprockets dependencies.
|
32
|
-
# Raises helpful error messages.
|
33
|
-
config.assets.raise_runtime_errors = true
|
34
|
-
|
35
|
-
# Raises error for missing translations
|
36
|
-
# config.action_view.raise_on_missing_translations = true
|
37
|
-
end
|
@@ -1,83 +0,0 @@
|
|
1
|
-
Rails.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 threaded 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 cannot 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
|
-
# Do not dump schema after migrations.
|
82
|
-
config.active_record.dump_schema_after_migration = false
|
83
|
-
end
|