conscious_concern 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/conscious_concern/eager_loader.rb +5 -3
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 559534918c88c4e55b8113dd0dba18daa4e171bd
|
4
|
+
data.tar.gz: b0a7671cd745e860db7c6274261f34d65fb610c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1642114461e8557f63a3956315b7a88286587f77b05c69c1e336e646d0d351c9ed0b48aba1a41a1dfe0ef555a407dd5118434a53d281e425a1d13cf6a820d599
|
7
|
+
data.tar.gz: aa93ab08efd2cf323d3c5fc02592fad8318d55c14e2fcee2f1ce293e899d26abb8de14a8533a22961ac393067b0d832a8f142a80df91bc5bae1c244439dff5cf
|
@@ -27,9 +27,11 @@ module ConsciousConcern
|
|
27
27
|
end
|
28
28
|
|
29
29
|
def self.load_class_at_path(path)
|
30
|
-
|
31
|
-
|
32
|
-
|
30
|
+
silence_warnings do
|
31
|
+
require path
|
32
|
+
clazz = File.basename(path, '.*').classify.constantize
|
33
|
+
puts "eager loaded class '#{clazz}'" if debug
|
34
|
+
end
|
33
35
|
rescue LoadError, StandardError => e
|
34
36
|
puts e.message if debug
|
35
37
|
end
|