test_bench-isolated 2.0.1.1 → 2.0.1.2

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
  SHA256:
3
- metadata.gz: b8c4e50b7f2d5e1cbd86b9f23987d14fd124c395bd976017a8fcd0b3ce7b0dcb
4
- data.tar.gz: 3f395daa065a54ff9bba1737baf447ed4ccff851f52d803744a4ac16b2313e5b
3
+ metadata.gz: 338f142e04c3aea35552452cc5b0a2cf499165c70831ad730f7ebba249e10c5b
4
+ data.tar.gz: d5e56d8d262b906622654522f9deb59dc163f6a694d318ebe098a5cb58e755fa
5
5
  SHA512:
6
- metadata.gz: dfc325854c01024b2449a800bb6699c9cfaead49d14399cfdf6ef1278d8b27dc9c92eb59c526d82d487f35fbd8d25e50cda6fee9fc6db613a541a300aac02290
7
- data.tar.gz: 4e1c24ff66019d8efba5f67df2d0eaa592a9ac59be51fdd4966f5a5411025ee2d638e1940df6b1e88c325b084e323f822b0c7b44fa3b23a11155c7bb09a284cd
6
+ metadata.gz: 98165e7c104af49f5960bf8e755ebb7e014024e5b3e98c0a53cf2d31878b190027d7886d8fd2a26b87a88248a173fc35257f5d87cbeafc0f7207d68fa64be92c
7
+ data.tar.gz: 15932d57c5ec5b3d80cfdcdb63c0290c1ae26f493995b931110066cc3a784bd192ceb0c1f6da5b07bade26518b01c957c1ebfafb3cc064760d6bf8624d24ae94
@@ -0,0 +1,7 @@
1
+ module TestBenchIsolated
2
+ module TestBench
3
+ module Controls
4
+ TelemetrySink = TestBench::Telemetry::Controls::Sink
5
+ end
6
+ end
7
+ end
@@ -1,6 +1,9 @@
1
1
  require 'test_bench_isolated/test_bench/random/controls'
2
+ require 'test_bench_isolated/test_bench/telemetry/controls'
2
3
  require 'test_bench_isolated/test_bench/run/controls'
3
4
 
5
+ require 'test_bench_isolated/test_bench/controls/telemetry_sink'
6
+
4
7
  require 'test_bench_isolated/test_bench/controls/result'
5
8
 
6
9
  require 'test_bench_isolated/test_bench/controls/path'
@@ -19,10 +19,12 @@ module TestBenchIsolated
19
19
  :faint => '2',
20
20
  :italic => '3',
21
21
  :underline => '4',
22
+ :reverse_video => '7',
22
23
 
23
24
  :reset_intensity => '22',
24
25
  :reset_italic => '23',
25
26
  :reset_underline => '24',
27
+ :reset_reverse_video => '27',
26
28
 
27
29
  :black => '30',
28
30
  :red => '31',
@@ -0,0 +1,9 @@
1
+ module TestBenchIsolated
2
+ module TestBench
3
+ class Session
4
+ module Controls
5
+ TelemetrySink = Telemetry::Controls::Sink
6
+ end
7
+ end
8
+ end
9
+ end
@@ -28,6 +28,8 @@ require 'test_bench_isolated/test_bench/session/controls/events/fixture_started'
28
28
  require 'test_bench_isolated/test_bench/session/controls/events/fixture_finished'
29
29
  require 'test_bench_isolated/test_bench/session/controls/events'
30
30
 
31
+ require 'test_bench_isolated/test_bench/session/controls/telemetry_sink'
32
+
31
33
  require 'test_bench_isolated/test_bench/session/controls/substitute/path'
32
34
 
33
35
  require 'test_bench_isolated/test_bench/session/controls/event'
@@ -207,6 +207,10 @@ module TestBenchIsolated
207
207
  compare_sequence != assertion_sequence
208
208
  end
209
209
 
210
+ def register_telemetry_sink(telemetry_sink)
211
+ telemetry.register(telemetry_sink)
212
+ end
213
+
210
214
  def record_assertion
211
215
  self.assertion_sequence += 1
212
216
  end
@@ -35,6 +35,10 @@ module TestBenchIsolated
35
35
  session&.telemetry
36
36
  end
37
37
 
38
+ def self.register_telemetry_sink(telemetry_sink)
39
+ session&.register_telemetry_sink(telemetry_sink)
40
+ end
41
+
38
42
  module DeactivatedVariants
39
43
  def _context(title=nil, &)
40
44
  context(title)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: test_bench-isolated
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1.1
4
+ version: 2.0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Ladd
8
8
  autorequire:
9
9
  bindir: script
10
10
  cert_chain: []
11
- date: 2024-01-15 00:00:00.000000000 Z
11
+ date: 2024-05-24 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: nathanladd+github@gmail.com
@@ -25,6 +25,7 @@ files:
25
25
  - lib/test_bench_isolated/test_bench/controls/random.rb
26
26
  - lib/test_bench_isolated/test_bench/controls/result.rb
27
27
  - lib/test_bench_isolated/test_bench/controls/stdin.rb
28
+ - lib/test_bench_isolated/test_bench/controls/telemetry_sink.rb
28
29
  - lib/test_bench_isolated/test_bench/fixture.rb
29
30
  - lib/test_bench_isolated/test_bench/fixture/actuate/class.rb
30
31
  - lib/test_bench_isolated/test_bench/fixture/actuate/object.rb
@@ -122,6 +123,7 @@ files:
122
123
  - lib/test_bench_isolated/test_bench/session/controls/random.rb
123
124
  - lib/test_bench_isolated/test_bench/session/controls/result.rb
124
125
  - lib/test_bench_isolated/test_bench/session/controls/substitute/path.rb
126
+ - lib/test_bench_isolated/test_bench/session/controls/telemetry_sink.rb
125
127
  - lib/test_bench_isolated/test_bench/session/controls/time.rb
126
128
  - lib/test_bench_isolated/test_bench/session/controls/title.rb
127
129
  - lib/test_bench_isolated/test_bench/session/events.rb
@@ -185,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
185
187
  - !ruby/object:Gem::Version
186
188
  version: '0'
187
189
  requirements: []
188
- rubygems_version: 3.4.10
190
+ rubygems_version: 3.5.9
189
191
  signing_key:
190
192
  specification_version: 4
191
193
  summary: Isolated copy of TestBench for testing TestBench