capydash 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 49eae6d67432aa999fc952f38f9268dd145275fccc64e31ebf9ec325580084f1
4
- data.tar.gz: c169ad633644fadf23a8c6a672bb0e73621fdf66c2c16d35662dcea5e7fea0a7
3
+ metadata.gz: 0c4ac0c982d52d8e79b722368df5d106ff716fd450bbc82bcad5c00461610427
4
+ data.tar.gz: 5453b6ae15d944cc97e318744788b9e8712538b93599d847991ba436dc5a7667
5
5
  SHA512:
6
- metadata.gz: 13a7e91002c75629f074f0e717f585a066296f90847599da479c6d54a6bb622cd354d0449d0e5526a7af253bc702fad7629a5bb595a3426b525f153110546880
7
- data.tar.gz: 95432cc4068cd79a74c1f569a5c239eef704d152918fe81f81e8771e451295f0d9664977cf4127680b91483424ea89945991bda8df79a325e1266d44a45c4d10
6
+ metadata.gz: 85afa448055003ea66763bf6db6c01098dc12fc3e518ce4300d452b6f659a355bdd36c744e2c6ccb07b6bd20321ec7dfeb0dd08ef63bed4474ed5a3b623d5fae
7
+ data.tar.gz: 9de10d46959fda60e26133d9d457d73f78c5d5e181b92586226c207d223b7cb32bfcd1311ab565bdce372fbc6f91460802629fed37ba5667b17888e3960e70b2
@@ -7,6 +7,9 @@ module CapyDash
7
7
  class TestDataAggregator
8
8
  class << self
9
9
  def start_test_run
10
+ # Don't start a new run if one is already in progress
11
+ return if test_run_started?
12
+
10
13
  run_id = generate_run_id
11
14
  run_data = {
12
15
  id: run_id,
@@ -24,6 +27,10 @@ module CapyDash
24
27
  set_current_test_context(run_id, nil, [])
25
28
  end
26
29
 
30
+ def test_run_started?
31
+ get_current_run_id != nil
32
+ end
33
+
27
34
  def finish_test_run
28
35
  run_id = get_current_run_id
29
36
  return unless run_id
@@ -1,3 +1,3 @@
1
1
  module Capydash
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capydash
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damon Clark