axe-core-api 4.3.0 → 4.3.2.pre.dc71aca

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/axe/api/run.rb +4 -4
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 53f781965ce5d668e87746782539e2cab9792cac81fd06fa9b0d654eda42e6bc
4
- data.tar.gz: 14f7c636dc64aeae731270380481c7d22c3fe12986e9674205762734f57d2f0c
3
+ metadata.gz: 324cb0d9b37858d7bd8b48fecad8a34c21ae237149a068b7e393ee5229aada4d
4
+ data.tar.gz: edbfa69c577297d5d64508f24151c451216f376adef96a654cc2673f774377bc
5
5
  SHA512:
6
- metadata.gz: 8b8bd10eff63ff9a09fc02ea298e9af21b284be90ed480a37179b24e115d6da26f5224b58c76538cb0d960242f70aa5b8a4dc61b33c8891ee49a82ca5de64761
7
- data.tar.gz: c293ad2c74a993de04bea6c86cf3fd0472d7ba233f2dd1fc8f44f6c54554b384bb122a869848d6f87e526cb9a5c6dc02354fe49269f18840d799e67be77a7040
6
+ metadata.gz: 142647deea813c04888826c06fddac2e4e415bcf260daef1051810d07fb109c6b2ee7c3c53d6522cbfdc2d5aa560902abc5afc0245ae01888b4b191b383d5b19
7
+ data.tar.gz: 4b633e0e4e5709c5e3f6eb8e1a5d4824fc516eb66e9526e428bdcc0d0ec1d8e8f4b264ecf2157bddb9697e8251b7b1282d17c92682f44d9a8b62411e2c12ff78
data/lib/axe/api/run.rb CHANGED
@@ -40,7 +40,7 @@ module Axe
40
40
  begin
41
41
  axe_finish_run page, partial_results
42
42
  rescue
43
- raise StandardError.new "axe.finishRun failed. Please check out https://github.com/dequelabs/axe-core-gems/error-handling.md`"
43
+ raise StandardError.new "axe.finishRun failed. Please check out https://github.com/dequelabs/axe-core-gems/blob/develop/error-handling.md"
44
44
  end
45
45
  }
46
46
  Audit.new to_js, Results.new(results)
@@ -53,7 +53,7 @@ module Axe
53
53
  var callback = arguments[arguments.length - 1];
54
54
  var context = arguments[0] || document;
55
55
  var options = arguments[1] || {};
56
- #{METHOD_NAME}(context, options).then(callback);
56
+ #{METHOD_NAME}(context, options).then(res => JSON.parse(JSON.stringify(res))).then(callback);
57
57
  JS
58
58
  page.execute_async_script_fixed script, *js_args
59
59
  end
@@ -79,7 +79,7 @@ module Axe
79
79
  end
80
80
  driver.switch_to.window page.window_handles[-1]
81
81
  rescue
82
- raise StandardError.new "switchToWindow failed. Are you using updated browser drivers?"
82
+ raise StandardError.new "switchToWindow failed. Are you using updated browser drivers? Please check out https://github.com/dequelabs/axe-core-gems/blob/develop/error-handling.md"
83
83
  end
84
84
  driver.get "about:blank"
85
85
 
@@ -160,7 +160,7 @@ module Axe
160
160
  const options = arguments[1];
161
161
  const cb = arguments[arguments.length - 1];
162
162
  try {
163
- const ret = window.axe.runPartial(context, options);
163
+ const ret = window.axe.runPartial(context, options).then(res => JSON.parse(JSON.stringify(res)));
164
164
  cb(ret);
165
165
  } catch (err) {
166
166
  const ret = {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axe-core-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.0
4
+ version: 4.3.2.pre.dc71aca
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deque Systems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-20 00:00:00.000000000 Z
11
+ date: 2021-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dumb_delegator
@@ -189,9 +189,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
189
189
  version: 2.3.0
190
190
  required_rubygems_version: !ruby/object:Gem::Requirement
191
191
  requirements:
192
- - - ">="
192
+ - - ">"
193
193
  - !ruby/object:Gem::Version
194
- version: '0'
194
+ version: 1.3.1
195
195
  requirements: []
196
196
  rubygems_version: 3.0.3
197
197
  signing_key: