-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrails_accessibility_testing.gemspec
More file actions
61 lines (50 loc) · 2.51 KB
/
rails_accessibility_testing.gemspec
File metadata and controls
61 lines (50 loc) · 2.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# frozen_string_literal: true
require_relative "lib/rails_accessibility_testing/version"
Gem::Specification.new do |spec|
spec.name = "rails_accessibility_testing"
spec.version = RailsAccessibilityTesting::VERSION
spec.authors = ["Regan Maharjan"]
spec.email = ["imregan@umich.edu"]
spec.summary = "The RSpec + RuboCop of accessibility for Rails. Catch WCAG violations before they reach production."
spec.description = "Comprehensive, opinionated but configurable accessibility testing gem for Rails. Integrates seamlessly into your test suite with RSpec and Minitest support. Includes CLI tool, Rails generator, YAML configuration, and 11+ WCAG 2.1 AA aligned checks with actionable error messages."
spec.homepage = "https://rayraycodes.github.io/rails-accessibility-testing/"
spec.license = "MIT"
# Include all necessary files
spec.files = Dir[
"lib/**/*.rb",
"lib/**/*.rake",
"lib/**/*.md",
"lib/**/*.erb", # Include ERB templates for generators
"exe/**/*",
"GUIDES/**/*.md",
"docs_site/**/*",
"README.md",
"LICENSE",
"CHANGELOG.md",
"CONTRIBUTING.md",
"CODE_OF_CONDUCT.md",
"ARCHITECTURE.md"
].reject { |f| f.match?(/\.yardoc|doc\//) }
spec.require_paths = ["lib"]
# Add executables (they're in exe/ directory)
spec.bindir = "exe"
spec.executables = ["rails_a11y", "rails_server_safe", "a11y_static_scanner"]
# Runtime dependencies
# Only essential dependencies for RSpec system specs
spec.add_dependency "axe-core-capybara", "~> 4.0"
spec.add_dependency "nokogiri", ">= 1.10" # For static file scanning
# Optional dependencies (users provide these in their own Gemfile)
# - rspec-rails (for RSpec integration)
# - capybara (for system specs - users configure their own drivers)
# - selenium-webdriver (only needed if using CLI tool, which users can opt into)
# Development dependencies
spec.add_development_dependency "bundler", "~> 2.0"
spec.add_development_dependency "rake", "~> 13.0"
spec.add_development_dependency "rspec", "~> 3.12"
# Metadata for RubyGems
spec.metadata["homepage_uri"] = spec.homepage
spec.metadata["source_code_uri"] = "https://github.com/rayraycodes/rails-accessibility-testing"
spec.metadata["changelog_uri"] = "https://github.com/rayraycodes/rails-accessibility-testing/blob/main/CHANGELOG.md"
spec.metadata["documentation_uri"] = "https://rayraycodes.github.io/rails-accessibility-testing/"
spec.metadata["rubygems_mfa_required"] = "true"
end