perf_check 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/perf_check.rb +9 -2
- 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: 2a66eabc2b36e8257419f44c113e11ec19f2f339
|
4
|
+
data.tar.gz: 7fdfbef74b3db666df336027fb63e6ec0f016795
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e2d134152bbc26848ff87509850cdbafe6adf50c30b3ce47d449eb6c16cceb2720898b18922a00401f40ef21fc9f153ca871424b5c835a70c7143d6925d4d98
|
7
|
+
data.tar.gz: 20365e6a9fcb875be86f6dec98906ad481c1f4e764d9d61cad5df384473aa01761142cbeab5462b733b66f680c04b471d08824ec7578c6c312e0c3c55ac3d13e
|
data/lib/perf_check.rb
CHANGED
@@ -42,8 +42,15 @@ class PerfCheck
|
|
42
42
|
if File.exists?("#{app_root}/config/perf_check.rb")
|
43
43
|
this = self
|
44
44
|
Kernel.send(:define_method, :perf_check){ this }
|
45
|
-
|
46
|
-
|
45
|
+
|
46
|
+
dir = Dir.pwd
|
47
|
+
begin
|
48
|
+
Dir.chdir(app_root)
|
49
|
+
load "#{app_root}/config/perf_check.rb"
|
50
|
+
ensure
|
51
|
+
Dir.chdir(dir)
|
52
|
+
Kernel.send(:remove_method, :perf_check)
|
53
|
+
end
|
47
54
|
end
|
48
55
|
end
|
49
56
|
|