selective-ruby-core 0.2.6-x86_64-linux → 0.2.8-x86_64-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: 0f5c1a25f72e25d7cb4752060e550cea7660c58e310188936af67a8d1ea5967d
4
- data.tar.gz: 9f13c61f5a3c21797ce43c3c11d03e4bd255b6df2a865e019ad8479d09662b4e
3
+ metadata.gz: a270fd09fb9cd882d558e32f7d394a39ff7c47b1c2d8762a84e72fd27113cfc0
4
+ data.tar.gz: 0a014564409691b0fa5c298aa96db0614a2702e663adefbc8577af425812e1f2
5
5
  SHA512:
6
- metadata.gz: eee22d469030b178dc73f3e4083b47067f377b4a933142f802ba2b6e9025dcef441007e76b7d1a2c23039f55ce14eaaa832574e4810fdcaef1184d2778ecf442
7
- data.tar.gz: 1e4d6c333e2a542ac23d3b08ed02bd4bdd3328cbaf3042db89b764d9d36acb77786c3b133c6b040fb8bf23c28e5c68d9d583ede912230e58cf7fa00e86784c23
6
+ metadata.gz: 93cb6c86f820709d59f5cce287516f9e0284c71375f686022c04d69ccdfb428937f1a96ec85f1574e316f11863d73fb41bd07fd9a115134c32fd17bbbadd0d05
7
+ data.tar.gz: 867a6d14e18eb8d486424bc1d09335fbf458ce286e71637e947829890d0f422babc8d20644bf7c846965b339809aa3f8171641bb6f1b2c691757abe6e3d3b40c
data/LICENSE CHANGED
File without changes
data/Rakefile CHANGED
File without changes
data/lib/bin/build_env.sh CHANGED
@@ -38,16 +38,30 @@ elif [ -n "$SEMAPHORE" ]; then
38
38
  commit_message=$(git log --format=%s -n 1 $sha)
39
39
  committer_name=$(git show -s --format='%an' -n 1 $sha)
40
40
  committer_email=$(git show -s --format='%ae' -n 1 $sha)
41
+ elif [ -n "$RWX" ]; then
42
+ platform=rwx
43
+ branch="${RWX_GIT_REF_NAME}"
44
+ actor="${RWX_ACTOR}"
45
+ sha="${RWX_GIT_COMMIT_SHA}"
46
+ run_id="${RWX_RUN_ID}"
47
+ run_attempt="${RWX_TASK_ATTEMPT_NUMBER}"
48
+ runner_id="${RWX_PARALLEL_INDEX}"
49
+ # RWX does not preserve the .git directory by default to improve the likelihood of cache hits. Instead
50
+ # of asking git for commit information, then, we rely on the git/clone package to populate the necessary
51
+ # metadata in environment variables.
52
+ commit_message="${RWX_GIT_COMMIT_SUMMARY}"
53
+ committer_name="${RWX_GIT_COMMITTER_NAME}"
54
+ committer_email="${RWX_GIT_COMMITTER_EMAIL}"
41
55
  elif [ -n "$MINT" ]; then
42
- platform=mint
56
+ platform=rwx
43
57
  branch="${MINT_GIT_REF_NAME}"
44
58
  actor="${MINT_ACTOR}"
45
59
  sha="${MINT_GIT_COMMIT_SHA}"
46
60
  run_id="${MINT_RUN_ID}"
47
61
  run_attempt="${MINT_TASK_ATTEMPT_NUMBER}"
48
62
  runner_id="${MINT_PARALLEL_INDEX}"
49
- # Mint does not preserve the .git directory by default to improve the likelihood of cache hits. Instead
50
- # of asking git for commit information, then, we rely on the mint/git-clone leaf to populate the necessary
63
+ # RWX does not preserve the .git directory by default to improve the likelihood of cache hits. Instead
64
+ # of asking git for commit information, then, we rely on the git/clone package to populate the necessary
51
65
  # metadata in environment variables.
52
66
  commit_message="${MINT_GIT_COMMIT_SUMMARY}"
53
67
  committer_name="${MINT_GIT_COMMITTER_NAME}"
@@ -154,7 +154,7 @@ module Selective
154
154
  missing = REQUIRED_CONFIGURATION.each_with_object([]) do |(key, env_var), arry|
155
155
  arry << env_var if env[key].nil? || env[key].empty?
156
156
  end
157
-
157
+
158
158
  with_error_handling do
159
159
  raise "Missing required environment variables: #{missing.join(", ")}" unless missing.empty?
160
160
  raise "Invalid host: #{env['host']}" unless env['host'].match?(/^wss?:\/\//)
@@ -165,16 +165,22 @@ module Selective
165
165
  transport_path = File.join(ROOT_GEM_PATH, "lib", "bin", "transport")
166
166
  get_transport_path = File.join(ROOT_GEM_PATH, "bin", "get_transport")
167
167
 
168
- # The get_transport script is not released with the gem, so this
169
- # code is intended for development/CI purposes.
170
- if !File.exist?(transport_path) && File.exist?(get_transport_path)
171
- output, status = Open3.capture2e(get_transport_path)
172
- if !status.success?
173
- puts <<~TEXT
174
- Failed to download transport binary.
175
-
176
- #{output}
177
- TEXT
168
+ if !File.exist?(transport_path)
169
+ # The get_transport script is not released with the gem, so this
170
+ # code is intended for development/CI purposes.
171
+ if File.exist?(get_transport_path)
172
+ output, status = Open3.capture2e(get_transport_path)
173
+ if !status.success?
174
+ puts <<~TEXT
175
+ Failed to download transport binary.
176
+
177
+ #{output}
178
+ TEXT
179
+ end
180
+ else
181
+ with_error_handling do
182
+ raise "Selective transport binary not found. Please contact support or compile it manually. See: https://github.com/selectiveci/transport"
183
+ end
178
184
  end
179
185
  end
180
186
 
@@ -201,7 +207,7 @@ module Selective
201
207
  # The message is nil until the transport opens the pipe
202
208
  # for writing. So, we must handle that here.
203
209
  next sleep(0.1) if message.nil?
204
-
210
+
205
211
  response = JSON.parse(message, symbolize_names: true)
206
212
  @connectivity = true if response[:command] == "connected"
207
213
  break
File without changes
File without changes
File without changes
@@ -3,7 +3,7 @@
3
3
  module Selective
4
4
  module Ruby
5
5
  module Core
6
- VERSION = "0.2.6"
6
+ VERSION = "0.2.8"
7
7
  end
8
8
  end
9
9
  end
File without changes
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.6
4
+ version: 0.2.8
5
5
  platform: x86_64-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: 2025-04-30 00:00:00.000000000 Z
12
+ date: 2026-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk
@@ -71,7 +71,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
71
71
  - !ruby/object:Gem::Version
72
72
  version: '0'
73
73
  requirements: []
74
- rubygems_version: 3.5.3
74
+ rubygems_version: 3.5.22
75
75
  signing_key:
76
76
  specification_version: 4
77
77
  summary: Selective Ruby Client Core