bugsnag-maze-runner 8.3.0 → 8.4.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 +4 -4
- data/lib/features/support/internal_hooks.rb +3 -0
- data/lib/maze/api/appium/file_manager.rb +4 -2
- data/lib/maze/configuration.rb +4 -0
- data/lib/maze.rb +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f3d1e632ba5e9853751cbe8dfafd2fc77b754754ef9c3036ff9f68ccce5f983
|
4
|
+
data.tar.gz: 54a4d8d1341998c95f15af9a0a15b901eeeb9af00974dd74d196ec2779958883
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 225110ab9babc625e187c005217d0b4ea7568b1c55c137a55583dc1713b1728196ae5d3aa5c64ec51fcfb6640118e1ee7e5eb110cab753be718c9e64a1a28c6c
|
7
|
+
data.tar.gz: 3cf95b41ed9dfa2695f73563d5da3e9d7b32e1a4629bdd74b64f9132e206450a18dd09590ee16976091bb0372a945801982aa81c16535246bd9888ce477c189e
|
@@ -9,7 +9,8 @@ module Maze
|
|
9
9
|
end
|
10
10
|
|
11
11
|
# Creates a file with the given contents on the device (using Appium). The file will be located in the app's
|
12
|
-
#
|
12
|
+
# documents directory for iOS. On Android, it will be /sdcard/Android/data/<app-id>/files unless
|
13
|
+
# Maze.config.android_app_files_directory has been set.
|
13
14
|
# @param contents [String] Content of the file to be written
|
14
15
|
# @param filename [String] Name (with no path) of the file to be written on the device
|
15
16
|
def write_app_file(contents, filename)
|
@@ -17,7 +18,8 @@ module Maze
|
|
17
18
|
when 'ios'
|
18
19
|
"@#{@driver.app_id}/Documents/#{filename}"
|
19
20
|
when 'android'
|
20
|
-
"/sdcard/Android/data/#{@driver.app_id}/files
|
21
|
+
directory = Maze.config.android_app_files_directory || "/sdcard/Android/data/#{@driver.app_id}/files"
|
22
|
+
"#{directory}/#{filename}"
|
21
23
|
end
|
22
24
|
|
23
25
|
$logger.trace "Pushing file to '#{path}' with contents: #{contents}"
|
data/lib/maze/configuration.rb
CHANGED
@@ -11,6 +11,7 @@ module Maze
|
|
11
11
|
self.receive_requests_slow_threshold = 10
|
12
12
|
self.enforce_bugsnag_integrity = true
|
13
13
|
self.captured_invalid_requests = Set[:errors, :sessions, :builds, :uploads, :sourcemaps]
|
14
|
+
self.android_app_files_directory = nil
|
14
15
|
@legacy_driver = false
|
15
16
|
end
|
16
17
|
|
@@ -102,6 +103,9 @@ module Maze
|
|
102
103
|
# Whether the device farm secure tunnel should be started
|
103
104
|
attr_accessor :start_tunnel
|
104
105
|
|
106
|
+
# Folder to push app files to on Android
|
107
|
+
attr_accessor :android_app_files_directory
|
108
|
+
|
105
109
|
#
|
106
110
|
# Device farm specific configuration
|
107
111
|
#
|
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 = '8.
|
10
|
+
VERSION = '8.4.0'
|
11
11
|
|
12
12
|
class << self
|
13
13
|
attr_accessor :check, :driver, :internal_hooks, :mode, :start_time, :dynamic_retry, :public_address,
|
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: 8.
|
4
|
+
version: 8.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Steve Kirkland
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-08-
|
11
|
+
date: 2023-08-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -447,11 +447,11 @@ files:
|
|
447
447
|
- lib/maze/wait.rb
|
448
448
|
- lib/utils/deep_merge.rb
|
449
449
|
- lib/utils/selenium_money_patch.rb
|
450
|
-
homepage:
|
450
|
+
homepage:
|
451
451
|
licenses:
|
452
452
|
- MIT
|
453
453
|
metadata: {}
|
454
|
-
post_install_message:
|
454
|
+
post_install_message:
|
455
455
|
rdoc_options: []
|
456
456
|
require_paths:
|
457
457
|
- lib
|
@@ -467,7 +467,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
467
467
|
version: '0'
|
468
468
|
requirements: []
|
469
469
|
rubygems_version: 3.1.6
|
470
|
-
signing_key:
|
470
|
+
signing_key:
|
471
471
|
specification_version: 4
|
472
472
|
summary: Bugsnag API request validation harness
|
473
473
|
test_files: []
|