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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/perf_check.rb +5 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2a66eabc2b36e8257419f44c113e11ec19f2f339
4
- data.tar.gz: 7fdfbef74b3db666df336027fb63e6ec0f016795
3
+ metadata.gz: eb27b471736a7098c004aa6a94a36175af01a446
4
+ data.tar.gz: 86f2e228cf811910dda9aaa352c67f759e197b73
5
5
  SHA512:
6
- metadata.gz: 9e2d134152bbc26848ff87509850cdbafe6adf50c30b3ce47d449eb6c16cceb2720898b18922a00401f40ef21fc9f153ca871424b5c835a70c7143d6925d4d98
7
- data.tar.gz: 20365e6a9fcb875be86f6dec98906ad481c1f4e764d9d61cad5df384473aa01761142cbeab5462b733b66f680c04b471d08824ec7578c6c312e0c3c55ac3d13e
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: perf_check
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubytune