selective-ruby-core 0.2.6-x86_64-darwin → 0.2.7-x86_64-darwin

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: 2138c1cc0528889abc16fa25a417e3f9391de9a146ddd1982271852f4b5d4ef0
4
- data.tar.gz: 3928cd59dc16a7b0ae0dbed19cf2c5adb357f9a9d600fce77c2ebb8aaa076ebc
3
+ metadata.gz: 15855b8632caae65254cade6f2f7bfd0e8a24803a4d358eaa3839a791ba0203e
4
+ data.tar.gz: a704583d7eab09aac89e4ac84378f14ed87b25dacac73353cbfc95b085696735
5
5
  SHA512:
6
- metadata.gz: 1e1838fdce5c44bbcebe184705df0970fa72fe897efe91c1513ef14c4d1901b355aced39a1eb43a013697684e0c57a48a33553cbfe4710a9f69a1a551e2f1d51
7
- data.tar.gz: 82eeb9a8bc58d213da801d5a17dd8ad75082f724b2e4a5e04f1b7c21e63209ecc5f8ca71e178c1fc310634fa6130e411edc20ac6658f20fdd41965a577d62b78
6
+ metadata.gz: e7a2dfb4d3d9cd8574fea9282afc44a71f0c4787a0e53836c7eabf952888f8ac0f54a44e356c714cf9ff07e7ba3651c0c8da24403c28facf3ac162766ce73a3b
7
+ data.tar.gz: 16eeae588a65897f170f6d127071ba906d06d8390cd367800e00d2a1f2aa92a3b508e4e5bb50d0a35676e91d5780341e0a9aca73b67144019a229325dc4358d5
@@ -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
@@ -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.7"
7
7
  end
8
8
  end
9
9
  end
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.7
5
5
  platform: x86_64-darwin
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: 2025-06-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: zeitwerk