bugsnag-maze-runner 9.9.0 → 9.10.0

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: 05620dbfd42646b2996821130544d406245079555a8b6c527af25eb1b3c66bae
4
- data.tar.gz: d58825fa3af12c8dcb65dd6d521e7eb3cc9c28afb973764db9d27679a52cfd97
3
+ metadata.gz: 3f31a10f7c03fd26a7adb3b26696fde6fb12aefccab2f115e61cd8ec2e3fef0a
4
+ data.tar.gz: 8933cafd8a45b449ff30da1f11b8df3855b881187e3cd84e42aa56713be6ad0b
5
5
  SHA512:
6
- metadata.gz: 16292e64ea5a965eb90b092e81e1daf38db6db4812275e7cbdbec12376c62ab536a9cd36d53dbc1cc20fbcdea8d3ea325d756c7c4f3d6c9fbf9b14d166851792
7
- data.tar.gz: 28f90a054e75bb4ac6f9e38e06ed4f3de214c41c01e92e94b80f5f94aeca2642a496d8515fd7be17bbec5663500fe612da9641edd22e06acb7b4e819f35a972c
6
+ metadata.gz: 4f881d7fdcc3cf4644224405ab72480ec3db8ffa7fe252ca9aef145769bf0e7e3dd48b62b20226a144c87db9a7affad66945d451ea936fe92a7e108cd9bf3a40
7
+ data.tar.gz: 8778dcf0f07489e3be5a744e7279013fd8a50b72fff6f1ce7d80d447b0dbd03fd2ff16a36032e526430392bd7ab6a05e0ea6110789277054242c5d14a6046439
@@ -40,9 +40,8 @@ module Maze
40
40
 
41
41
  start_logger
42
42
 
43
- command = "appium -a #{address} -p #{port}"
44
43
  @appium_thread = Thread.new do
45
- PTY.spawn(command) do |stdout, _stdin, pid|
44
+ PTY.spawn('appium', '-a', address, '-p', port) do |stdout, _stdin, pid|
46
45
  @pid = pid
47
46
  $logger.trace("Appium:#{@pid}") { 'Appium server started' }
48
47
  stdout.each do |line|
@@ -71,13 +71,14 @@ module Maze
71
71
  def create_hash
72
72
  hash = {
73
73
  # Classic, non-specific devices for each Android version
74
+ 'ANDROID_14' => make_android_hash('Google Pixel 8', '14.0'),
74
75
  'ANDROID_13' => make_android_hash('Google Pixel 6 Pro', '13.0'),
75
76
  'ANDROID_12' => make_android_hash('Google Pixel 5', '12.0'),
76
77
  'ANDROID_11' => make_android_hash('Google Pixel 4', '11.0'),
77
78
  'ANDROID_10' => make_android_hash('Google Pixel 4', '10.0'),
78
79
  'ANDROID_9' => make_android_hash('Google Pixel 3', '9.0'),
79
80
  'ANDROID_8' => make_android_hash('Samsung Galaxy Note 9', '8.1'),
80
- 'ANDROID_7' => make_android_hash('Google Pixel', '7.1'),
81
+ 'ANDROID_7' => make_android_hash('Samsung Galaxy S8', '7.0'),
81
82
 
82
83
  # iOS devices
83
84
  'IOS_17' => make_ios_hash('iPhone 15', '17'),
data/lib/maze.rb CHANGED
@@ -7,7 +7,7 @@ require_relative 'maze/timers'
7
7
  # Glues the various parts of MazeRunner together that need to be accessed globally,
8
8
  # providing an alternative to the proliferation of global variables or singletons.
9
9
  module Maze
10
- VERSION = '9.9.0'
10
+ VERSION = '9.10.0'
11
11
 
12
12
  class << self
13
13
  attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address,
@@ -6,9 +6,10 @@ module Selenium
6
6
  def initialize(response)
7
7
  if response.is_a? String
8
8
  super(response)
9
+ elsif response.is_a? Selenium::WebDriver::Remote::Response
10
+ super("Status code #{response.code}. Payload: #{response.payload.inspect}")
9
11
  else
10
- $logger.error "Server response: #{response.inspect}"
11
- super("status code #{response.code}")
12
+ super(response.inspect)
12
13
  end
13
14
  end
14
15
  end # ServerError
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bugsnag-maze-runner
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.9.0
4
+ version: 9.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Steve Kirkland
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-08 00:00:00.000000000 Z
11
+ date: 2024-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber