axe-core-selenium 4.10.2.pre.720be7c → 4.10.2

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -15
  3. data/lib/axe-selenium.rb +5 -6
  4. metadata +6 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 73226ce3031647cc85a56cdbf220f6a6f0d832409953ffedc916820773a617ec
4
- data.tar.gz: 179c0973fd159cf9fcbd0df68d2a3598b1f0fd458108dc2cc10a8ddb441099d1
3
+ metadata.gz: f11e21efeff55069a5bbd24936a294b5c95824fa5697f33338b2c80e02edd56e
4
+ data.tar.gz: d87f186f33874aab741ed60d99378fcea768e75f6e56c44dac9955e7175437ac
5
5
  SHA512:
6
- metadata.gz: a335bfb68178880920bf368c2b66972273cbef943ac1b7af5241231368b50e7d0115e70fd1a3142658991bbc22311f0eba8c5b87d6bcae3f01b0b79314559f39
7
- data.tar.gz: 52ef20d32f9571f8fb3ac70ae916ccb31e6a901432aa5798ba4925f6e1957bffde433029534c32c2b1c1c9fa3ca2b34436d21bbad0f3eb9a119dea1ccd605b59
6
+ metadata.gz: a34a2d85884553bcfccb9ebd70ac2acb624857a46d6c06d95df25665ab6bee21a4fd932e2b0bc894802d8f31ba91189fa1a719cc01c04309631df6c069f6c6c0
7
+ data.tar.gz: adb683a80bbc04acf3fa07e98be8f9bdde40262c6cd99844a75b30cfccd4c937cf55e3593f25205e42f16b022f39f0f925ceb2f3de3c452512be71750a598abf
data/README.md CHANGED
@@ -20,7 +20,7 @@ require 'axe-selenium'
20
20
  # configure `AxeSelenium`
21
21
 
22
22
  driver = AxeSelenium.configure(:firefox) do |c|
23
- # see below for a full list of configuration
23
+ # see below for a full list of configuration
24
24
  c.jslib_path = "next-version/axe.js"
25
25
  end
26
26
 
@@ -28,18 +28,7 @@ end
28
28
  driver.page.navigate.to 'https://www.deque.com/'
29
29
  ```
30
30
 
31
- Custom options can be passed to the underlying driver:
32
-
33
- ```rb
34
- require 'axe-selenium'
35
-
36
- options = Selenium::WebDriver::Options.firefox
37
- options.args << '-headless'
38
-
39
- driver = AxeSelenium.configure(:firefox, options) {}
40
- ```
41
-
42
- ### API
31
+ ### API
43
32
 
44
33
  #### `AxeSelenium.configure`
45
34
 
@@ -47,7 +36,7 @@ The configure method takes 1 optional argument as a [symbol][] and a configurati
47
36
 
48
37
  The optional argument is a browser name for `selenium-webdriver`. The valid browser names are:
49
38
  - `:firefox` (default)
50
- - `:chrome`
39
+ - `:chrome`
51
40
  - `:safari`
52
41
 
53
42
  > Note: Please ensure respective drivers (eg: [`geckodriver`][]) are installed in your machine.
@@ -78,4 +67,4 @@ bundle exec rspec
78
67
  [axe API]: https://github.com/dequelabs/axe-core/blob/develop/doc/API.md
79
68
  [Selenium Webdriver]: https://rubygems.org/gems/selenium-webdriver
80
69
  [`geckodriver`]: https://github.com/mozilla/geckodriver/releases
81
- [symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html
70
+ [symbol]: https://ruby-doc.org/core-2.5.0/Symbol.html
data/lib/axe-selenium.rb CHANGED
@@ -4,10 +4,9 @@ require "axe/configuration"
4
4
  module AxeSelenium
5
5
  # configure method
6
6
  # - which takes an optional argument browser
7
- # - an optional options (sic) object to configure the underlying driver
8
7
  # - and a configuration block optional for Axe
9
- def self.configure(browser = :firefox, opts = nil)
10
- # instantiate axe configuration (singleton) with defaults or given config: opts
8
+ def self.configure(browser = :firefox)
9
+ # instantiate axe configuration (singleton) with defaults or given config
11
10
  if !block_given?
12
11
  raise Exception.new "Please provide a configure block for AxeSelenium"
13
12
  end
@@ -15,7 +14,7 @@ module AxeSelenium
15
14
  config = Axe::Configuration.instance
16
15
 
17
16
  # provide a selenium webdriver page object
18
- config.page = get_driver(browser, opts)
17
+ config.page = get_driver(browser)
19
18
 
20
19
  # await and return
21
20
  yield config
@@ -24,7 +23,7 @@ module AxeSelenium
24
23
 
25
24
  private
26
25
 
27
- def self.get_driver(browserSymbol, opts)
28
- Selenium::WebDriver.for browserSymbol, options: opts
26
+ def self.get_driver(browserSymbol)
27
+ Selenium::WebDriver.for browserSymbol
29
28
  end
30
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: axe-core-selenium
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.10.2.pre.720be7c
4
+ version: 4.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Deque Systems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2025-04-24 00:00:00.000000000 Z
11
+ date: 2024-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dumb_delegator
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 4.10.2.pre.720be7c
33
+ version: 4.10.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 4.10.2.pre.720be7c
40
+ version: 4.10.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: bundler
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -135,9 +135,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
135
135
  version: 2.3.0
136
136
  required_rubygems_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
- - - ">"
138
+ - - ">="
139
139
  - !ruby/object:Gem::Version
140
- version: 1.3.1
140
+ version: '0'
141
141
  requirements: []
142
142
  rubygems_version: 3.2.32
143
143
  signing_key: