perf_check 0.2.6 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b8364fc73d3e5ea7ac676dab58e692411390578f
4
- data.tar.gz: 5a66bfbf4e584cb179d9a386ccf25ed1bd1a2e50
3
+ metadata.gz: d80f52906352baede601135b143828f3b1983985
4
+ data.tar.gz: 3b1300b56aebd3733cd2d9bb15addcfea6f6b9ce
5
5
  SHA512:
6
- metadata.gz: 232b897bdab8301418ebe27c89bfba44cbbfef645330ed34e67db99c4824362674d10e0aa7b6763ad195c151c41d951e57e5f8432b4c2b0cc9afc72631052444
7
- data.tar.gz: 03655180b70b3d123428bb7c0ebd94e49bfd99be66e9d9abbb75a40a454d4e1ea6d5b404d75f144b7a36529fdba57fb09a5c26b5ad76a2639b4364c87c436349
6
+ metadata.gz: 75e17dca3e1e25fae73c741a3263b5247859ea9276d356d2f73f9511e82c3dd301bd8247f56eff59e4c4d6fbf1132115712073b4da66902985b87438df29f856
7
+ data.tar.gz: 4c04b113dab60e0a3b634b7c5cf7020e34369bc93bd47f4648eb3546e97b48b45deb8b43c7f32adbc2415ed59d3973d92ad94b6788bcbc032a0007c0d804af9b
@@ -25,8 +25,8 @@ class PerfCheck
25
25
  end
26
26
 
27
27
 
28
- def trigger_before_start_callbacks
29
- PerfCheck.before_start_callbacks.each{ |f| f.call(self) }
28
+ def trigger_before_start_callbacks(test_case)
29
+ PerfCheck.before_start_callbacks.each{ |f| f.call(self, test_case) }
30
30
  end
31
31
 
32
32
  def trigger_when_finished_callbacks(data={})
data/lib/perf_check.rb CHANGED
@@ -35,8 +35,6 @@ class PerfCheck
35
35
  end
36
36
 
37
37
  def run
38
- trigger_before_start_callbacks
39
-
40
38
  profile_requests
41
39
 
42
40
  if options.reference
@@ -53,6 +51,7 @@ class PerfCheck
53
51
  def profile_requests
54
52
  server.restart
55
53
  test_cases.each_with_index do |test, i|
54
+ trigger_before_start_callbacks(test)
56
55
  server.restart unless i.zero? || options.diff
57
56
 
58
57
  test.cookie = options.cookie
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.2.6
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rubytune