perf_check 0.5.2 → 0.5.3
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 +5 -0
- 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: eb27b471736a7098c004aa6a94a36175af01a446
|
4
|
+
data.tar.gz: 86f2e228cf811910dda9aaa352c67f759e197b73
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e8249f739a4a22512a88bf42abfe231cec80c0b433b9004081ac38b1795af33b9e734d1ed49b88ea32e583969a122ecc6fb26a384bb9174e2de1372ff429886
|
7
|
+
data.tar.gz: e3215d6a5030fca47ed1dc9ada512b68fba088de6343686f20b756baf6084e045b33fa9da40adfb85a46ee60f77d43804d835063b4cfcf2a31298d9c379b1598
|
data/lib/perf_check.rb
CHANGED
@@ -9,6 +9,7 @@ require 'logger'
|
|
9
9
|
|
10
10
|
class PerfCheck
|
11
11
|
class Exception < ::Exception; end
|
12
|
+
class ConfigLoadError < Exception; end
|
12
13
|
|
13
14
|
attr_reader :app_root, :options, :git, :server, :test_cases
|
14
15
|
attr_accessor :logger
|
@@ -47,6 +48,10 @@ class PerfCheck
|
|
47
48
|
begin
|
48
49
|
Dir.chdir(app_root)
|
49
50
|
load "#{app_root}/config/perf_check.rb"
|
51
|
+
rescue ::Exception => e
|
52
|
+
error = ConfigLoadError.new(e.message)
|
53
|
+
error.set_backtrace(e.backtrace)
|
54
|
+
raise error
|
50
55
|
ensure
|
51
56
|
Dir.chdir(dir)
|
52
57
|
Kernel.send(:remove_method, :perf_check)
|