test-loop 11.0.0 → 11.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/test/loop/support/rails.rb +3 -3
  2. metadata +1 -1
@@ -1,4 +1,4 @@
1
- if defined? Rails::VERSION
1
+ if defined? Rails
2
2
  Test::Loop.reabsorb_file_globs.push(
3
3
  'config/**/*.{rb,yml}',
4
4
  'test/factories/*.rb',
@@ -8,8 +8,8 @@ if defined? Rails::VERSION
8
8
  Test::Loop.test_file_matchers['app/**/*.rb'] =
9
9
  Test::Loop.test_file_matchers['lib/**/*.rb']
10
10
 
11
- class << Test::Loop
12
- class Railtie < Rails::Railtie
11
+ if defined? Rails::Railtie
12
+ Class.new Rails::Railtie do
13
13
  config.before_initialize do |app|
14
14
  if app.config.cache_classes
15
15
  warn "test-loop: Setting #{app.class}.config.cache_classes = false"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: test-loop
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 11.0.0
5
+ version: 11.0.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - Suraj N. Kurapati