bugsnag-maze-runner 11.1.0 → 11.2.0

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: 7780fd47122f4f902c147f80354970f2f979483c9e5b294a4830e2c0dff28e2f
4
- data.tar.gz: 29419ac5dcfd8adc1504c6f024e33ef98c1faa34ef3af77d95f29ca561cd1dfc
3
+ metadata.gz: b90f53f6b4b5c7c513a0d475f66feaebea6cea2bad75236bad8217ace035a542
4
+ data.tar.gz: 9526959b5653597ab8f375df83b3087e3a9cc33ea2d21e6b44e22be913976449
5
5
  SHA512:
6
- metadata.gz: 826909ff80d3f623d4e2855fa5f3adf4a207d8ad2199f0e315a889dbb98e8070681aa7b8f1c32adfa513c8851536f5f4bbf4fab8927c98137996d55cf484e018
7
- data.tar.gz: cf7a8bc05e55104120d9fa0dffbffe36010141262b6495241a82df1f44a553c03225bae18548f16c1274628fd539dbeccb9c1eee274fd84b691b3c1a66b22fa1
6
+ metadata.gz: '0099b9b37e4703009cde97edc69c06cb5df2e199a817caeda37d73680eba99c729b1cd1298c9f246887f2a3315bb8443ddb8a4e17151f10bbd0584e3e22f2401'
7
+ data.tar.gz: 544a137b988672de99e5cdbe93037c73b46a9032042f18be8a4f7ed10ee5447e4e3c647fa78d297314ab72d555aaeecb2186fdda1feaf8435ef16d6f8639d0fd
data/bin/maze-runner CHANGED
@@ -178,7 +178,7 @@ class MazeRunnerEntry
178
178
  paths.each { |path| @args << '-r' << path }
179
179
  end
180
180
 
181
- # List devices for the given device farm, or all otherwise
181
+ # Main entrypoint for Maze Runner CLI invocation.
182
182
 
183
183
  def start(args)
184
184
  $logger.info "Maze Runner v#{Maze::VERSION}"
@@ -186,8 +186,22 @@ class MazeRunnerEntry
186
186
  # Parse args, processing any Maze Runner specific options
187
187
  @args = args.dup
188
188
  load_options_from_files
189
- options = Maze::Option::Parser.parse @args
190
189
 
190
+ # Validate required args for list-devices before option parsing.
191
+ # This avoids parser-level failures and provides a clear user-facing error.
192
+ if @args.include?('--list-devices')
193
+ farm_arg = @args.find { |a| a.start_with?('--farm=') }
194
+ farm_value = farm_arg ? farm_arg.split('=', 2)[1] : nil
195
+ unless %w[bs bb].include?(farm_value)
196
+ puts "ERROR: A --farm option must be given when using --list-devices"
197
+ puts ""
198
+ puts "Valid usage:"
199
+ puts " bundle exec maze-runner --farm=bs --list-devices"
200
+ puts " bundle exec maze-runner --farm=bb --list-devices"
201
+ exit 1
202
+ end
203
+ end
204
+ options = Maze::Option::Parser.parse @args
191
205
  if options[Maze::Option::LIST_DEVICES]
192
206
  case options[Maze::Option::FARM].to_sym
193
207
  when :bs
@@ -78,7 +78,6 @@ module Maze
78
78
  'ANDROID_12' => make_android_hash('Google Pixel 6', '12.0'),
79
79
  'ANDROID_11' => make_android_hash('Samsung Galaxy S21', '11.0'),
80
80
  'ANDROID_10' => make_android_hash('Samsung Galaxy S20', '10.0'),
81
- 'ANDROID_9' => make_android_hash('Samsung Galaxy S10', '9.0'),
82
81
  'ANDROID_8' => make_android_hash('Samsung Galaxy Note 9', '8.1'),
83
82
 
84
83
  # iOS devices
@@ -93,9 +92,10 @@ module Maze
93
92
  }
94
93
 
95
94
  # Specific Android devices
96
- add_android 'Xiaomi Redmi Note 9', '10.0', hash # ANDROID_10_0_XIAOMI_REDMI_NOTE_9
95
+ add_android 'Samsung Galaxy S20', '10.0', hash # ANDROID_10_0_SAMSUNG_GALAXY_S20
97
96
  add_android 'Samsung Galaxy Note 20', '10.0', hash # ANDROID_10_0_SAMSUNG_GALAXY_NOTE_20
98
- add_android 'Motorola Moto G9 Play', '10.0', hash # ANDROID_10_0_MOTOROLA_MOTO_G9_PLAY
97
+ add_android 'Samsung Galaxy Tab S7', '10.0', hash # ANDROID_10_0_SAMSUNG_GALAXY_TAB_S7
98
+ add_android 'Samsung Galaxy A11', '10.0', hash # ANDROID_10_0_SAMSUNG_GALAXY_A11
99
99
  add_android 'OnePlus 8', '10.0', hash # ANDROID_10_0_ONEPLUS_8
100
100
 
101
101
  add_android 'Samsung Galaxy S9', '8.0', hash # ANDROID_8_0_SAMSUNG_GALAXY_S9
@@ -158,13 +158,6 @@ android_8:
158
158
  osVersion: "8.1"
159
159
  realMobile: true
160
160
 
161
- android_9:
162
- browserName: "Android Browser"
163
- device: "Samsung Galaxy S10"
164
- os: "android"
165
- osVersion: "9.0"
166
- realMobile: true
167
-
168
161
  android_13:
169
162
  browserName: "Android Browser"
170
163
  device: "Google Pixel 7"
@@ -145,7 +145,7 @@ module Maze
145
145
  short: :none,
146
146
  type: :string
147
147
  opt Option::LIST_DEVICES,
148
- 'Lists the devices available for the configured device farm, or all devices if none are specified',
148
+ 'Lists the devices available for the configured device farm (requires --farm=bs or --farm=bb)',
149
149
  short: :none,
150
150
  default: false
151
151
  opt Option::APP_BUNDLE_ID,
data/lib/maze/runner.rb CHANGED
@@ -21,7 +21,7 @@ module Maze
21
21
  # @return [Array, Thread] If blocking, the output and exit_status are returned
22
22
  def run_command(cmd, blocking: true, success_codes: [0])
23
23
  executor = lambda do
24
- $logger.debug "Executing: #{cmd}"
24
+ # $logger.debug "Executing: #{cmd}"
25
25
 
26
26
  Open3.popen2e(environment, cmd) do |_stdin, stdout_and_stderr, wait_thr|
27
27
  # Add the pid to the list of pids to kill at the end
data/lib/maze.rb CHANGED
@@ -8,7 +8,7 @@ require_relative 'maze/timers'
8
8
  # providing an alternative to the proliferation of global variables or singletons.
9
9
  module Maze
10
10
 
11
- VERSION = '11.1.0'
11
+ VERSION = '11.2.0'
12
12
 
13
13
  class << self
14
14
  attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag-maze-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 11.1.0
4
+ version: 11.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Kirkland
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2026-04-13 00:00:00.000000000 Z
12
+ date: 2026-05-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cucumber