Ruby Accessibility Analysis Kit (RAAKT gem) 0.3

NAME

Raakt (Ruby Accessibility Analysis Kit) gem

URIS

http://raakt.rubyforge.org
http://rubyforge.org/projects/raakt/
http://peterkrantz.com/projects/raakt

SYNOPSIS

Raakt is a toolkit to find accessibility issues in HTML documents.
It can be used as part of a an automatic test procedure or as a
command line tool to evaluate remote web sites. Focus is on finding
accessibility issues that never should be present (thus, there are no
“…if applicable”), and that are machine testable (you have to test
your content some other way).

A Ruby on Rails plugin that uses Raakt is in the works and will be
released shortly.

WHY

Developers need to be able to make better web sites without having
to know the details of accessibility issues.

The web needs to be accessible for more people.

EXAMPLES

Install gem: sudo gem install raakt

Create a (minimal) command line tool for remote testing:

   require 'rubygems'
require 'net/http'
require 'uri'
require 'raakt'

url = ARGV[0]

#Get html for the url specified
uri = URI.parse(url)
res = Net::HTTP.start(uri.host, uri.port) {|http|
  http.get(uri.path)
}

# Set up the RAAKT test
raakttest = Raakt::Test.new(res.body)

#Run all checks and print result to the console
result = raakttest.all

if result.length > 0
  puts "Accessibility problems detected:"
  puts result
else
  puts "No measurable accessibility problems were detected."
end

DOCS

See unit tests for details and README for a list of checks made. A
web page with detailed instructions on how to correct issues will be
available in the future.

This is an initial release which may have severe bugs and may make
your computer burst into flames for all I know. Please report bugs at
the rubyforge project page:
http://rubyforge.org/tracker/?group_id=1861

Kind regards,

Peter K.
Stockholm, Sweden

http://www.standards-schmandards.com