bootscale 0.6.0 → 0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bootscale/active_support/core_ext.rb +3 -3
- data/lib/bootscale/version.rb +1 -1
- 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: 5a2ae71d209d672c9fbccd5e29cebc9fe7dd0228
|
4
|
+
data.tar.gz: ff3837943dd68e75681abc7e6fefb8ca73511d75
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87097f048d7d2bf8edd276cff0ff6babb0c074ad811e32d675eb27d519d67a9de7b64690e5739dbc96f33857d59ca1e1551c4c0b0d7776011abc86489ab42ab6
|
7
|
+
data.tar.gz: cf22a9b415c0d6276ab9cdea0f12678cd0e46cde7af46846c3a68f3af1afb5969db83b77c362a046a1aa290ef2be9ae71ef30a4148e1e9dd829f809e0df51de9
|
@@ -2,15 +2,15 @@ require 'active_support/dependencies'
|
|
2
2
|
|
3
3
|
module ActiveSupport
|
4
4
|
module Dependencies
|
5
|
-
undef_method :search_for_file
|
6
|
-
|
7
5
|
# ActiveSupport::Dependencies.search_for_file works pretty much like Kernel#require.
|
8
6
|
# It has a load path (AS::Dependencies.autoload_paths) and when it's looking for a file to load
|
9
7
|
# it search the load path entries one by one for a match.
|
10
8
|
# So just like for Kernel#require, this process is increasingly slow the more load path entries you have,
|
11
9
|
# and it can be optimized with exactly the same caching strategy.
|
10
|
+
alias_method :search_for_file_without_bootscale, :search_for_file
|
11
|
+
undef_method :search_for_file
|
12
12
|
def search_for_file(path)
|
13
|
-
::Bootscale::ActiveSupport.cache[path]
|
13
|
+
::Bootscale::ActiveSupport.cache[path] || search_for_file_without_bootscale(path)
|
14
14
|
end
|
15
15
|
end
|
16
16
|
end
|
data/lib/bootscale/version.rb
CHANGED