consistency_fail 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 531019a9820d2e2099018388c98a966b41ecff84
4
- data.tar.gz: 58bcc05d1259e0e7f6fcd6e80388003c15d07785
3
+ metadata.gz: 9d760c4a8390a6a7077a2e5a4cf309ae4673b1f3
4
+ data.tar.gz: 8e7ba2c8d15c98d9d2b7a645f060a9a62c97c908
5
5
  SHA512:
6
- metadata.gz: a065a54f5c469dc3741d37d06e5a9de36e49cfc1193020c22ddf672b1dea7cca39b6528dca7b45120cafe36266133579bb7a996c007e5611757e3fb62e09e593
7
- data.tar.gz: af440e0d00c9e6dd7785542ede83284c2351a89a7149b7b3d3109216242bf78c5d42b1fcb6cbd52c144c0ec971e11fa3971e58ca27623015ea437a588acbd6f4
6
+ metadata.gz: 9aa9493151ec9c92fd26dd4b2446af019bf6b654bb6ea6dbf42b613586b74853af3622034684774e398acf01623b6a88b836adec08831b5130337461daa39d5c
7
+ data.tar.gz: 14e9c24ff5f07b12b5e345decf0ce635e4c19c31297311ab014dec61eed14c0fb00060677666762c7dd4d782881a39b0ff6b74d3ea4660a891997a187960ce4a
@@ -19,7 +19,7 @@ module ConsistencyFail
19
19
  self.dirs.each do |d|
20
20
  ruby_files = Dir.glob(File.join(d, "**", "*.rb")).sort
21
21
  ruby_files.each do |model_filename|
22
- Kernel.require model_filename
22
+ Kernel.require_dependency model_filename
23
23
  end
24
24
  end
25
25
  end
@@ -1,3 +1,3 @@
1
1
  module ConsistencyFail
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
3
3
  end
@@ -28,9 +28,9 @@ describe ConsistencyFail::Models do
28
28
  with(File.join("some/other/models", "**", "*.rb")).
29
29
  and_return(["some/other/models/foo.rb"])
30
30
 
31
- expect(Kernel).to receive(:require).with("app/models/user.rb")
32
- expect(Kernel).to receive(:require).with("app/models/address.rb")
33
- expect(Kernel).to receive(:require).with("some/other/models/foo.rb")
31
+ expect(Kernel).to receive(:require_dependency).with("app/models/user.rb")
32
+ expect(Kernel).to receive(:require_dependency).with("app/models/address.rb")
33
+ expect(Kernel).to receive(:require_dependency).with("some/other/models/foo.rb")
34
34
 
35
35
  models.preload_all
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: consistency_fail
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Colin Jones
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-09 00:00:00.000000000 Z
11
+ date: 2018-10-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord