rails_accessibility_testing 1.1.1 → 1.1.4

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: 99ea6418071abffd165614423b475ee2589b90c7dd391a39900d07f75333dca8
4
- data.tar.gz: 13991a21d41b0f3022f13170f0f4f496b7941c2054821b53843b0900d871eda6
3
+ metadata.gz: d58abecc3e5e128753499732dea24b016875593af005f776a9e94002f5d779e9
4
+ data.tar.gz: 51f98255eb1ae6042b55310532c59adfb9ebaeedb5a9415d4e1be652986df1c7
5
5
  SHA512:
6
- metadata.gz: 6fa7ebb5006c244df0de3cf26e653d1db9d7d9c40f7e7d018b698388845400deccaaf435153519ba42f190b4a6a2ee40628f675560fa0d11b5975065bec36b76
7
- data.tar.gz: a1aeae1ffb499f6cc40d1661351d83e0d51eebc5ed221ba40fd8c525f45d5da5f4cd020f4527efe5d19a36e29d96e81b9b1b2f36ea55b8ff995a9a3705528c7d
6
+ metadata.gz: 4d554890949ccc6009accdcac4f6740e43237192f075fee2345b8468edab548a32da307577967409922fe2275361bbf19ef89de51f3fc0bd89dbf3f09c9747d3
7
+ data.tar.gz: 6be04fb755999ece4ab602dbfe014257f61243542f3c36ffea3dd0984fd58f5d425a8f94d7d4fdc97664b275502c6a0c6220aae032db07c3e683e4888c49c79d
data/CHANGELOG.md CHANGED
@@ -5,6 +5,18 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [1.1.4] - 2024-12-XX
9
+
10
+ ### Fixed
11
+ - Fixed CLI tool chromedriver discovery issue by automatically requiring webdrivers gem when available
12
+ - CLI tool now works properly with projects that use webdrivers for driver management
13
+
14
+ ## [1.1.3] - 2024-12-XX
15
+
16
+ ### Fixed
17
+ - Fixed CLI tool (`rails_a11y`) failing when RSpec is not available by conditionally loading RSpec-specific components
18
+ - CLI tool can now run independently without requiring RSpec to be loaded
19
+
8
20
  ## [1.1.0] - 2024-11-15
9
21
 
10
22
  ### Added
@@ -76,6 +88,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
76
88
  - Compatible with RSpec Rails 6.0+
77
89
  - Modular architecture with rule engine and check definitions
78
90
 
91
+ [1.1.4]: https://github.com/rayraycodes/rails-accessibility-testing/releases/tag/v1.1.4
92
+ [1.1.3]: https://github.com/rayraycodes/rails-accessibility-testing/releases/tag/v1.1.3
79
93
  [1.1.0]: https://github.com/rayraycodes/rails-accessibility-testing/releases/tag/v1.1.0
80
94
  [1.0.0]: https://github.com/rayraycodes/rails-accessibility-testing/releases/tag/v1.0.0
81
95
 
@@ -110,6 +110,13 @@ module RailsAccessibilityTesting
110
110
  require 'capybara/dsl'
111
111
  require 'selenium-webdriver'
112
112
 
113
+ # Try to require webdrivers for automatic chromedriver management
114
+ begin
115
+ require 'webdrivers'
116
+ rescue LoadError
117
+ # webdrivers gem not available, selenium-webdriver will try to manage drivers
118
+ end
119
+
113
120
  # Setup Capybara
114
121
  Capybara.default_driver = :selenium_chrome_headless
115
122
  Capybara.app = Rails.application if defined?(Rails)
@@ -1,4 +1,4 @@
1
1
  module RailsAccessibilityTesting
2
- VERSION = "1.1.1"
2
+ VERSION = "1.1.4"
3
3
  end
4
4
 
@@ -47,8 +47,11 @@ require_relative 'rails_accessibility_testing/configuration'
47
47
  require_relative 'rails_accessibility_testing/change_detector'
48
48
  require_relative 'rails_accessibility_testing/error_message_builder'
49
49
  require_relative 'rails_accessibility_testing/accessibility_helper'
50
- require_relative 'rails_accessibility_testing/shared_examples'
51
- require_relative 'rails_accessibility_testing/rspec_integration'
50
+ # Only load RSpec-specific components when RSpec is available
51
+ if defined?(RSpec)
52
+ require_relative 'rails_accessibility_testing/shared_examples'
53
+ require_relative 'rails_accessibility_testing/rspec_integration'
54
+ end
52
55
 
53
56
  # Load engine components
54
57
  require_relative 'rails_accessibility_testing/engine/violation'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_accessibility_testing
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Regan Maharjan