wagons 0.1.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +15 -0
  2. data/Rakefile +2 -0
  3. data/lib/generators/wagon/templates/Gemfile.tt +1 -1
  4. data/lib/generators/wagon/templates/Rakefile.tt +1 -1
  5. data/lib/generators/wagon/templates/script/rails.tt +1 -1
  6. data/lib/generators/wagon/templates/test/test_helper.rb.tt +1 -1
  7. data/lib/tasks/wagons.rake +3 -2
  8. data/lib/wagons/extensions/application.rb +7 -3
  9. data/lib/wagons/version.rb +1 -1
  10. data/lib/wagons/view_helper.rb +1 -1
  11. data/lib/wagons.rb +3 -1
  12. data/test/ci/rails3.gemfile +13 -0
  13. data/test/ci/rails3.gemfile.lock +108 -0
  14. data/test/dummy/Gemfile +2 -2
  15. data/test/dummy/Gemfile.lock +61 -66
  16. data/test/dummy/app/models/person.rb +0 -2
  17. data/test/dummy/app/views/people/index.html.erb +0 -1
  18. data/test/dummy/config/application.rb +8 -5
  19. data/test/dummy/config/environments/development.rb +2 -10
  20. data/test/dummy/config/environments/production.rb +2 -0
  21. data/test/dummy/config/environments/test.rb +2 -6
  22. data/test/dummy/config/initializers/secret_token.rb +6 -1
  23. data/test/dummy/db/development.sqlite3 +0 -0
  24. data/test/dummy/db/test.sqlite3 +0 -0
  25. data/test/dummy/log/development.log +1600 -926
  26. data/test/dummy/log/test.log +10139 -4279
  27. data/test/dummy/tmp/cache/assets/CD8/370/sprockets%2F357970feca3ac29060c1e3861e2c0953 +0 -0
  28. data/test/dummy/tmp/cache/assets/D32/A10/sprockets%2F13fe41fee1fe35b49d145bcc06610705 +0 -0
  29. data/test/dummy/tmp/cache/assets/D4E/1B0/sprockets%2Ff7cbd26ba1d28d48de824f0e94586655 +0 -0
  30. data/test/dummy/tmp/cache/assets/D5A/EA0/sprockets%2Fd771ace226fc8215a3572e0aa35bb0d6 +0 -0
  31. data/test/dummy/tmp/cache/assets/DDC/400/sprockets%2Fcffd775d018f68ce5dba1ee0d951a994 +0 -0
  32. data/test/dummy/tmp/cache/assets/E04/890/sprockets%2F2f5173deea6c795b8fdde723bb4b63af +0 -0
  33. data/test/dummy/tmp/cache/assets/test/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  34. data/test/dummy/tmp/cache/assets/test/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  35. data/test/dummy/tmp/cache/assets/test/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  36. data/test/dummy/tmp/cache/assets/test/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  37. data/test/dummy/tmp/cache/assets/test/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  38. data/test/dummy/tmp/cache/assets/test/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  39. data/test/dummy/vendor/wagons/superliner/Gemfile.lock +61 -66
  40. data/test/dummy/vendor/wagons/superliner/app/models/city.rb +0 -2
  41. data/test/dummy/vendor/wagons/superliner/dummy_superliner.gemspec +2 -2
  42. data/test/dummy/vendor/wagons/superliner/script/rails +1 -1
  43. data/test/dummy/vendor/wagons/superliner/test/functionals/people_controller_test.rb +3 -3
  44. data/test/dummy/vendor/wagons/superliner/test/test_helper.rb +1 -1
  45. data/test/test_helper.rb +1 -0
  46. data/test/wagons_installer_test.rb +1 -1
  47. metadata +175 -165
checksums.yaml ADDED
@@ -0,0 +1,15 @@
1
+ ---
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ ZWNkNWI2OTJlMzhhZjNiZmE1ZDk5M2VhZGZkZjFjZGJkNDdhMTIzZA==
5
+ data.tar.gz: !binary |-
6
+ NDYwNWRlZDJmODk4NGY4NDFhNjkzN2ViYjM5NTM3YzA2NGYxNDBmYg==
7
+ !binary "U0hBNTEy":
8
+ metadata.gz: !binary |-
9
+ ZjM0NzkxMWY3ODBkZDBhMDIxNGU0YjFhZWUyMDkzOWE2MzViZjA2ZDE4MDRh
10
+ YTU1NWVkNTBkOGZkMTQ2N2MxM2QzYjFkN2RhMTI2NDBkMWJhYWQ4MzMyNGEy
11
+ OGYwZGExNTRjMzVmNTBhYjk0ZGQwOGFiYzcyZWM4YTZlMDVjMmI=
12
+ data.tar.gz: !binary |-
13
+ ZmYxNzMwMWNkNGUwNmI4Mzk0NmM0NTZjYzFjOWYxYjEyZjk2ODc4MWVlYTM4
14
+ Njg3MDA2MTEwMGJlZDRhNzdmYWI4OTY1OGU2ZDEzODgyNmRkMDUyZDI1ODUx
15
+ NTI3NzYyZjRhMTY4ZGM2NjUzMjJlOWI1MDc1OTNlMzNjNTI2Njk=
data/Rakefile CHANGED
@@ -4,6 +4,7 @@ begin
4
4
  rescue LoadError
5
5
  puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
6
6
  end
7
+
7
8
  begin
8
9
  require 'rdoc/task'
9
10
  rescue LoadError
@@ -33,6 +34,7 @@ end
33
34
  task :test do
34
35
  begin
35
36
  Bundler.with_clean_env { sh "cd test/dummy && rails g wagon test_wagon" }
37
+ Bundler.with_clean_env { sh "cd test/dummy && bundle exec rake wagon:bundle:update" }
36
38
  Bundler.with_clean_env { sh "cd test/dummy && bundle exec rake db:migrate test #{'-t' if Rake.application.options.trace}" }
37
39
  Bundler.with_clean_env { sh "cd test/dummy && bundle exec rake wagon:test #{'-t' if Rake.application.options.trace}" }
38
40
  ensure
@@ -1,4 +1,4 @@
1
- require File.expand_path('../app_root', __FILE__)
1
+ load File.expand_path('../app_root.rb', __FILE__)
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
@@ -7,6 +7,6 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  ENGINE_PATH = File.expand_path('..', __FILE__)
10
- require File.expand_path('../app_root', __FILE__)
10
+ load File.expand_path('../app_root.rb', __FILE__)
11
11
 
12
12
  load 'wagons/wagon_tasks.rake'
@@ -6,6 +6,6 @@ ENGINE_ROOT = File.expand_path('../..', __FILE__)
6
6
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('Gemfile', ENGINE_ROOT)
7
7
  ENGINE_PATH = File.expand_path('lib/<%= singular_name %>/engine', ENGINE_ROOT)
8
8
 
9
- require File.expand_path('../../app_root', __FILE__)
9
+ load File.expand_path('../../app_root.rb', __FILE__)
10
10
 
11
11
  load File.expand_path('script/rails', ENV["APP_ROOT"])
@@ -1,5 +1,5 @@
1
1
  # Configure Rails Environment
2
- require File.expand_path('../../app_root', __FILE__)
2
+ load File.expand_path('../../app_root.rb', __FILE__)
3
3
  ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
4
4
 
5
5
  require File.expand_path('test/test_helper.rb', ENV['APP_ROOT'])
@@ -179,8 +179,9 @@ namespace :db do
179
179
  Rake::Task[:'db:_dump'].clear_actions
180
180
 
181
181
  task :_dump do
182
- migrator = ActiveRecord::Migrator.new(:up, ActiveRecord::Migrator.migrations_paths)
183
- if migrator.migrated.size > migrator.migrations.size
182
+ migrations = ActiveRecord::Migrator.migrations(ActiveRecord::Migrator.migrations_paths)
183
+ migrated = Set.new(ActiveRecord::Migrator.get_all_versions)
184
+ if migrated.size > migrations.size
184
185
  puts "The database schema will not be dumped when there are loaded wagon migrations."
185
186
  puts "To dump the application schema, please 'rake wagon:remove WAGON=ALL' wagons beforehand or reset the database."
186
187
  else
@@ -1,14 +1,18 @@
1
1
  module Rails
2
- class Application
2
+ class Application < Engine
3
+
3
4
  protected
4
5
 
5
6
  # Append wagons at the end of all railties, even after the application.
6
- def ordered_railties
7
- @ordered_railties ||= super.tap do |ordered|
7
+ def ordered_railties_with_wagons
8
+ @ordered_railties ||= ordered_railties_without_wagons.tap do |ordered|
8
9
  Wagons.all.each do |w|
9
10
  ordered.push(ordered.delete(w))
10
11
  end
11
12
  end
12
13
  end
14
+
15
+ alias_method_chain :ordered_railties, :wagons
16
+
13
17
  end
14
18
  end
@@ -1,3 +1,3 @@
1
1
  module Wagons
2
- VERSION = "0.1.1"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -39,7 +39,7 @@ module Wagons
39
39
  handlers = glob_pattern(lookup_context.handlers)
40
40
 
41
41
  view_paths.collect do |path|
42
- Dir.glob(File.join(path, folder_pattern, "_#{key}_*.#{formats}.#{handlers}"))
42
+ Dir.glob(File.join(path.to_s, folder_pattern, "_#{key}_*.#{formats}.#{handlers}"))
43
43
  end.flatten
44
44
  end
45
45
 
data/lib/wagons.rb CHANGED
@@ -16,7 +16,9 @@ require 'wagons/extensions/test_case'
16
16
  module Wagons
17
17
  # All wagons installed in the current Rails application.
18
18
  def self.all
19
- Rails.application.railties.all.select {|r| r.is_a?(Wagon) }
19
+ enumerable = Rails.application.railties
20
+ enumerable = enumerable.all if enumerable.respond_to?(:all)
21
+ enumerable.select {|r| r.is_a?(Wagon) }
20
22
  end
21
23
 
22
24
  # Find a wagon by its name.
@@ -0,0 +1,13 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec :path => '../..'
4
+
5
+ gem 'rails', '~> 3.2'
6
+
7
+ gem "seed-fu-ndo", ">= 0.0.2"
8
+
9
+ group :test, :development do
10
+ gem 'sqlite3'
11
+ gem 'open4'
12
+ gem 'mocha', :require => false
13
+ end
@@ -0,0 +1,108 @@
1
+ PATH
2
+ remote: /Users/pascal/Code/ruby/wagons
3
+ specs:
4
+ wagons (0.1.1)
5
+ bundler (>= 1.1)
6
+ rails (>= 3.2)
7
+ seed-fu-ndo (>= 0.0.2)
8
+
9
+ GEM
10
+ remote: https://rubygems.org/
11
+ specs:
12
+ actionmailer (3.2.16)
13
+ actionpack (= 3.2.16)
14
+ mail (~> 2.5.4)
15
+ actionpack (3.2.16)
16
+ activemodel (= 3.2.16)
17
+ activesupport (= 3.2.16)
18
+ builder (~> 3.0.0)
19
+ erubis (~> 2.7.0)
20
+ journey (~> 1.0.4)
21
+ rack (~> 1.4.5)
22
+ rack-cache (~> 1.2)
23
+ rack-test (~> 0.6.1)
24
+ sprockets (~> 2.2.1)
25
+ activemodel (3.2.16)
26
+ activesupport (= 3.2.16)
27
+ builder (~> 3.0.0)
28
+ activerecord (3.2.16)
29
+ activemodel (= 3.2.16)
30
+ activesupport (= 3.2.16)
31
+ arel (~> 3.0.2)
32
+ tzinfo (~> 0.3.29)
33
+ activeresource (3.2.16)
34
+ activemodel (= 3.2.16)
35
+ activesupport (= 3.2.16)
36
+ activesupport (3.2.16)
37
+ i18n (~> 0.6, >= 0.6.4)
38
+ multi_json (~> 1.0)
39
+ arel (3.0.3)
40
+ builder (3.0.4)
41
+ erubis (2.7.0)
42
+ hike (1.2.3)
43
+ i18n (0.6.9)
44
+ journey (1.0.4)
45
+ json (1.8.1)
46
+ mail (2.5.4)
47
+ mime-types (~> 1.16)
48
+ treetop (~> 1.4.8)
49
+ metaclass (0.0.1)
50
+ mime-types (1.25.1)
51
+ mocha (0.14.0)
52
+ metaclass (~> 0.0.1)
53
+ multi_json (1.8.2)
54
+ open4 (1.3.0)
55
+ polyglot (0.3.3)
56
+ rack (1.4.5)
57
+ rack-cache (1.2)
58
+ rack (>= 0.4)
59
+ rack-ssl (1.3.3)
60
+ rack
61
+ rack-test (0.6.2)
62
+ rack (>= 1.0)
63
+ rails (3.2.16)
64
+ actionmailer (= 3.2.16)
65
+ actionpack (= 3.2.16)
66
+ activerecord (= 3.2.16)
67
+ activeresource (= 3.2.16)
68
+ activesupport (= 3.2.16)
69
+ bundler (~> 1.0)
70
+ railties (= 3.2.16)
71
+ railties (3.2.16)
72
+ actionpack (= 3.2.16)
73
+ activesupport (= 3.2.16)
74
+ rack-ssl (~> 1.3.2)
75
+ rake (>= 0.8.7)
76
+ rdoc (~> 3.4)
77
+ thor (>= 0.14.6, < 2.0)
78
+ rake (10.1.0)
79
+ rdoc (3.12.2)
80
+ json (~> 1.4)
81
+ seed-fu (2.3.0)
82
+ activerecord (>= 3.1, < 4.1)
83
+ activesupport (>= 3.1, < 4.1)
84
+ seed-fu-ndo (0.0.2)
85
+ seed-fu (>= 2.2.0)
86
+ sprockets (2.2.2)
87
+ hike (~> 1.2)
88
+ multi_json (~> 1.0)
89
+ rack (~> 1.0)
90
+ tilt (~> 1.1, != 1.3.0)
91
+ sqlite3 (1.3.8)
92
+ thor (0.18.1)
93
+ tilt (1.4.1)
94
+ treetop (1.4.15)
95
+ polyglot
96
+ polyglot (>= 0.3.1)
97
+ tzinfo (0.3.38)
98
+
99
+ PLATFORMS
100
+ ruby
101
+
102
+ DEPENDENCIES
103
+ mocha
104
+ open4
105
+ rails (~> 3.2)
106
+ seed-fu-ndo (>= 0.0.2)
107
+ sqlite3
108
+ wagons!
data/test/dummy/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
 
3
3
  gem 'wagons', :path => File.expand_path(__FILE__).split("test#{File::SEPARATOR}dummy").first
4
4
 
@@ -10,7 +10,7 @@ group :test do
10
10
  gem 'mocha', :require => false
11
11
  end
12
12
 
13
- # Include the wagons you want attached in Wagonfile.
13
+ # Include the wagons you want attached in Wagonfile.
14
14
  # Do not check Wagonfile into source control.
15
15
  #
16
16
  # To create a Wagonfile suitable for development, run 'rake wagon:file'
@@ -1,7 +1,7 @@
1
1
  PATH
2
- remote: /home/pzumkehr/src/ruby/wagons
2
+ remote: /Users/pascal/Code/ruby/wagons
3
3
  specs:
4
- wagons (0.1.1)
4
+ wagons (0.2.0)
5
5
  bundler (>= 1.1)
6
6
  rails (>= 3.2)
7
7
  seed-fu-ndo (>= 0.0.2)
@@ -17,93 +17,88 @@ PATH
17
17
  dummy_test_wagon (0.0.1)
18
18
 
19
19
  GEM
20
- remote: http://rubygems.org/
20
+ remote: https://rubygems.org/
21
21
  specs:
22
- actionmailer (3.2.13)
23
- actionpack (= 3.2.13)
24
- mail (~> 2.5.3)
25
- actionpack (3.2.13)
26
- activemodel (= 3.2.13)
27
- activesupport (= 3.2.13)
28
- builder (~> 3.0.0)
22
+ actionmailer (4.0.2)
23
+ actionpack (= 4.0.2)
24
+ mail (~> 2.5.4)
25
+ actionpack (4.0.2)
26
+ activesupport (= 4.0.2)
27
+ builder (~> 3.1.0)
29
28
  erubis (~> 2.7.0)
30
- journey (~> 1.0.4)
31
- rack (~> 1.4.5)
32
- rack-cache (~> 1.2)
33
- rack-test (~> 0.6.1)
34
- sprockets (~> 2.2.1)
35
- activemodel (3.2.13)
36
- activesupport (= 3.2.13)
37
- builder (~> 3.0.0)
38
- activerecord (3.2.13)
39
- activemodel (= 3.2.13)
40
- activesupport (= 3.2.13)
41
- arel (~> 3.0.2)
42
- tzinfo (~> 0.3.29)
43
- activeresource (3.2.13)
44
- activemodel (= 3.2.13)
45
- activesupport (= 3.2.13)
46
- activesupport (3.2.13)
47
- i18n (= 0.6.1)
48
- multi_json (~> 1.0)
49
- arel (3.0.2)
50
- builder (3.0.4)
29
+ rack (~> 1.5.2)
30
+ rack-test (~> 0.6.2)
31
+ activemodel (4.0.2)
32
+ activesupport (= 4.0.2)
33
+ builder (~> 3.1.0)
34
+ activerecord (4.0.2)
35
+ activemodel (= 4.0.2)
36
+ activerecord-deprecated_finders (~> 1.0.2)
37
+ activesupport (= 4.0.2)
38
+ arel (~> 4.0.0)
39
+ activerecord-deprecated_finders (1.0.3)
40
+ activesupport (4.0.2)
41
+ i18n (~> 0.6, >= 0.6.4)
42
+ minitest (~> 4.2)
43
+ multi_json (~> 1.3)
44
+ thread_safe (~> 0.1)
45
+ tzinfo (~> 0.3.37)
46
+ arel (4.0.1)
47
+ atomic (1.1.14)
48
+ builder (3.1.4)
51
49
  erubis (2.7.0)
52
- hike (1.2.2)
53
- i18n (0.6.1)
54
- journey (1.0.4)
55
- json (1.8.0)
50
+ hike (1.2.3)
51
+ i18n (0.6.9)
56
52
  mail (2.5.4)
57
53
  mime-types (~> 1.16)
58
54
  treetop (~> 1.4.8)
59
55
  metaclass (0.0.1)
60
- mime-types (1.23)
56
+ mime-types (1.25.1)
57
+ minitest (4.7.5)
61
58
  mocha (0.14.0)
62
59
  metaclass (~> 0.0.1)
63
- multi_json (1.7.4)
60
+ multi_json (1.8.2)
64
61
  polyglot (0.3.3)
65
- rack (1.4.5)
66
- rack-cache (1.2)
67
- rack (>= 0.4)
68
- rack-ssl (1.3.3)
69
- rack
62
+ rack (1.5.2)
70
63
  rack-test (0.6.2)
71
64
  rack (>= 1.0)
72
- rails (3.2.13)
73
- actionmailer (= 3.2.13)
74
- actionpack (= 3.2.13)
75
- activerecord (= 3.2.13)
76
- activeresource (= 3.2.13)
77
- activesupport (= 3.2.13)
78
- bundler (~> 1.0)
79
- railties (= 3.2.13)
80
- railties (3.2.13)
81
- actionpack (= 3.2.13)
82
- activesupport (= 3.2.13)
83
- rack-ssl (~> 1.3.2)
65
+ rails (4.0.2)
66
+ actionmailer (= 4.0.2)
67
+ actionpack (= 4.0.2)
68
+ activerecord (= 4.0.2)
69
+ activesupport (= 4.0.2)
70
+ bundler (>= 1.3.0, < 2.0)
71
+ railties (= 4.0.2)
72
+ sprockets-rails (~> 2.0.0)
73
+ railties (4.0.2)
74
+ actionpack (= 4.0.2)
75
+ activesupport (= 4.0.2)
84
76
  rake (>= 0.8.7)
85
- rdoc (~> 3.4)
86
- thor (>= 0.14.6, < 2.0)
87
- rake (10.0.4)
88
- rdoc (3.12.2)
89
- json (~> 1.4)
90
- seed-fu (2.2.0)
91
- activerecord (~> 3.1)
92
- activesupport (~> 3.1)
77
+ thor (>= 0.18.1, < 2.0)
78
+ rake (10.1.0)
79
+ seed-fu (2.3.0)
80
+ activerecord (>= 3.1, < 4.1)
81
+ activesupport (>= 3.1, < 4.1)
93
82
  seed-fu-ndo (0.0.2)
94
83
  seed-fu (>= 2.2.0)
95
- sprockets (2.2.2)
84
+ sprockets (2.10.1)
96
85
  hike (~> 1.2)
97
86
  multi_json (~> 1.0)
98
87
  rack (~> 1.0)
99
88
  tilt (~> 1.1, != 1.3.0)
100
- sqlite3 (1.3.7)
89
+ sprockets-rails (2.0.1)
90
+ actionpack (>= 3.0)
91
+ activesupport (>= 3.0)
92
+ sprockets (~> 2.8)
93
+ sqlite3 (1.3.8)
101
94
  thor (0.18.1)
95
+ thread_safe (0.1.3)
96
+ atomic
102
97
  tilt (1.4.1)
103
- treetop (1.4.12)
98
+ treetop (1.4.15)
104
99
  polyglot
105
100
  polyglot (>= 0.3.1)
106
- tzinfo (0.3.37)
101
+ tzinfo (0.3.38)
107
102
 
108
103
  PLATFORMS
109
104
  ruby
@@ -1,5 +1,3 @@
1
1
  class Person < ActiveRecord::Base
2
- attr_accessible :birthday, :name
3
-
4
2
  validates :name, :presence => true
5
3
  end
@@ -4,5 +4,4 @@
4
4
 
5
5
  <%= render_extensions :list, :locals => {:test => 42} %>
6
6
 
7
-
8
7
  <%= render 'shared/sidebar' %>
@@ -32,6 +32,7 @@ module Dummy
32
32
  # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
33
33
  # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
34
34
  # config.i18n.default_locale = :de
35
+ config.i18n.enforce_available_locales = true
35
36
 
36
37
  # Configure the default encoding used in templates for Ruby 1.9.
37
38
  config.encoding = "utf-8"
@@ -44,11 +45,13 @@ module Dummy
44
45
  # like if you have constraints or database-specific column types
45
46
  # config.active_record.schema_format = :sql
46
47
 
47
- # Enforce whitelist mode for mass assignment.
48
- # This will create an empty whitelist of attributes available for mass-assignment for all models
49
- # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
50
- # parameters by using an attr_accessible or attr_protected declaration.
51
- config.active_record.whitelist_attributes = true
48
+ if Rails.version < '4.0'
49
+ # Enforce whitelist mode for mass assignment.
50
+ # This will create an empty whitelist of attributes available for mass-assignment for all models
51
+ # in your app. As such, your models will need to explicitly whitelist or blacklist accessible
52
+ # parameters by using an attr_accessible or attr_protected declaration.
53
+ config.active_record.whitelist_attributes = false
54
+ end
52
55
 
53
56
  # Enable the asset pipeline
54
57
  config.assets.enabled = true
@@ -5,9 +5,8 @@ Dummy::Application.configure do
5
5
  # every request. This slows down response time but is perfect for development
6
6
  # since you don't have to restart the web server when you make code changes.
7
7
  config.cache_classes = false
8
-
9
- # Log error messages when you accidentally call methods on nil.
10
- config.whiny_nils = true
8
+
9
+ config.eager_load = false
11
10
 
12
11
  # Show full error reports and disable caching
13
12
  config.consider_all_requests_local = true
@@ -22,13 +21,6 @@ Dummy::Application.configure do
22
21
  # Only use best-standards-support built into browsers
23
22
  config.action_dispatch.best_standards_support = :builtin
24
23
 
25
- # Raise exception on mass assignment protection for Active Record models
26
- config.active_record.mass_assignment_sanitizer = :strict
27
-
28
- # Log the query plan for queries taking more than this (works
29
- # with SQLite, MySQL, and PostgreSQL)
30
- config.active_record.auto_explain_threshold_in_seconds = 0.5
31
-
32
24
  # Do not compress assets
33
25
  config.assets.compress = false
34
26
 
@@ -4,6 +4,8 @@ Dummy::Application.configure do
4
4
  # Code is not reloaded between requests
5
5
  config.cache_classes = true
6
6
 
7
+ config.eager_load = true
8
+
7
9
  # Full error reports are disabled and caching is turned on
8
10
  config.consider_all_requests_local = false
9
11
  config.action_controller.perform_caching = true
@@ -7,13 +7,12 @@ Dummy::Application.configure do
7
7
  # and recreated between test runs. Don't rely on the data there!
8
8
  config.cache_classes = true
9
9
 
10
+ config.eager_load = false
11
+
10
12
  # Configure static asset server for tests with Cache-Control for performance
11
13
  config.serve_static_assets = true
12
14
  config.static_cache_control = "public, max-age=3600"
13
15
 
14
- # Log error messages when you accidentally call methods on nil
15
- config.whiny_nils = true
16
-
17
16
  # Show full error reports and disable caching
18
17
  config.consider_all_requests_local = true
19
18
  config.action_controller.perform_caching = false
@@ -29,9 +28,6 @@ Dummy::Application.configure do
29
28
  # ActionMailer::Base.deliveries array.
30
29
  config.action_mailer.delivery_method = :test
31
30
 
32
- # Raise exception on mass assignment protection for Active Record models
33
- config.active_record.mass_assignment_sanitizer = :strict
34
-
35
31
  # Print deprecation notices to the stderr
36
32
  config.active_support.deprecation = :stderr
37
33
  end
@@ -4,4 +4,9 @@
4
4
  # If you change this key, all old signed cookies will become invalid!
5
5
  # Make sure the secret is at least 30 characters and all random,
6
6
  # no regular words or you'll be exposed to dictionary attacks.
7
- Dummy::Application.config.secret_token = 'e85c1b61190124d7d5e2660879966e236e6de1db13dd618c12d55901a7b7611b522d5821657f62529a6a6448cbb5e217934734f2e334fde656438ce182213e98'
7
+
8
+ if Rails.version < '4.0'
9
+ Dummy::Application.config.secret_token = 'e85c1b61190124d7d5e2660879966e236e6de1db13dd618c12d55901a7b7611b522d5821657f62529a6a6448cbb5e217934734f2e334fde656438ce182213e98'
10
+ else
11
+ Dummy::Application.config.secret_key_base = 'e85c1b61190124d7d5e2660879966e236e6de1db13dd618c12d55901a7b7611b522d5821657f62529a6a6448cbb5e217934734f2e334fde656438ce182213e98'
12
+ end
Binary file
Binary file