selective-ruby-core 0.2.1-aarch64-linux → 0.2.2-aarch64-linux

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: e9b871062a3db2f156165ab4be91906c242b18a8e0bd87a361e451516f33bee3
4
- data.tar.gz: 75568e987c50990fd9190f4a4d41c99addc2fcc52c61ed9d75291a0c5cb8fc93
3
+ metadata.gz: dce8983e6c53ad56dc5d7829282ca44f413f7b5cf86c29929810c4c893e5a6a9
4
+ data.tar.gz: 51142c78c87a1de76ca42368e8d2259c7c564c92ef25aa55a0126a9b8f12a522
5
5
  SHA512:
6
- metadata.gz: 84c8560f213e25eb79442482ec01a3fb178d24bb3a0a747442108f202e55014d3fa1a986d6451331680d4c6100d70808f42d70dede255c90a338adb734c4aa82
7
- data.tar.gz: abba3e8715e279286484f1ad585fbde8275d5cf82fe1cd7ed1981845fe847cb2cb4fa28f32fad3f1be8e411e3b6d22cc1a97e4df42d0c160a66408f66a3300b3
6
+ metadata.gz: ff8ae6e7d6350bbe66b95d4898f043ce70c29212982a8b586d97b50c55361a467dcbb4cd4fd79f6b7a07af7a59b4c8d5de3e6c588efd4d4f40254c2462b4b8eb
7
+ data.tar.gz: ebeda0af47053f8766bd207f5bf8933f94b6afce83939f0361f510d1a5d362b106eaca3d0fa40a41701d02e55688bd56e79424e5d2026c3a24c555882f296d1d
@@ -14,12 +14,13 @@ module Selective
14
14
  "api_key" => "SELECTIVE_API_KEY",
15
15
  "platform" => "SELECTIVE_PLATFORM",
16
16
  "run_id" => "SELECTIVE_RUN_ID",
17
+ "run_attempt" => "SELECTIVE_RUN_ATTEMPT",
17
18
  "branch" => "SELECTIVE_BRANCH"
18
19
  }.freeze
19
20
 
20
- def initialize(runner, debug: false, log: false)
21
+ def initialize(runner_class, runner_args, debug: false, log: false)
21
22
  @debug = debug
22
- @runner = runner
23
+ @runner = runner_class.new(runner_args, method(:test_case_callback))
23
24
  @retries = 0
24
25
  @runner_id = safe_filename(get_runner_id)
25
26
  @logger = init_logger(log)
@@ -113,7 +114,6 @@ module Selective
113
114
  host = build_env.delete("host")
114
115
  run_id = build_env.delete("run_id")
115
116
  run_attempt = build_env.delete("run_attempt")
116
- run_attempt = SecureRandom.uuid if run_attempt.nil? || run_attempt.empty?
117
117
 
118
118
  params = {
119
119
  "run_id" => run_id,
@@ -267,7 +267,7 @@ module Selective
267
267
  end
268
268
 
269
269
  def handle_run_test_cases(data)
270
- runner.run_test_cases(data[:test_case_ids], method(:test_case_callback))
270
+ runner.run_test_cases(data[:test_case_ids])
271
271
  end
272
272
 
273
273
  def handle_remove_failed_test_case_result(data)
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Core
6
- VERSION = "0.2.1"
6
+ VERSION = "0.2.2"
7
7
  end
8
8
  end
9
9
  end
@@ -44,7 +44,7 @@ module Selective
44
44
  attr_reader :debug, :log, :runner_name, :args, :command
45
45
 
46
46
  def run
47
- Selective::Ruby::Core::Controller.new(runner, debug: debug, log: log).send(command)
47
+ Selective::Ruby::Core::Controller.new(runner_class, args, debug: debug, log: log).send(command)
48
48
  end
49
49
 
50
50
  def parse_args(args)
@@ -56,8 +56,8 @@ module Selective
56
56
  end
57
57
  end
58
58
 
59
- def runner
60
- Selective::Ruby::Core.runner_for(runner_name).new(args)
59
+ def runner_class
60
+ Selective::Ruby::Core.runner_for(runner_name)
61
61
  end
62
62
 
63
63
  def require_runner
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selective-ruby-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: aarch64-linux
6
6
  authors:
7
7
  - Benjamin Wood
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2024-01-19 00:00:00.000000000 Z
12
+ date: 2024-01-26 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk