https://github.com/spk/ruby-vnu
Ruby wrapper for Nu HTML validator
https://github.com/spk/ruby-vnu
Last synced: 2 months ago
JSON representation
Ruby wrapper for Nu HTML validator
- Host: GitHub
- URL: https://github.com/spk/ruby-vnu
- Owner: spk
- License: mit
- Created: 2015-02-16T19:04:07.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2021-01-09T17:29:13.000Z (over 4 years ago)
- Last Synced: 2025-02-28T03:50:21.916Z (3 months ago)
- Language: Ruby
- Homepage:
- Size: 20.6 MB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ruby-vnu
## Description
Ruby wrapper for Nu HTML validator (https://validator.github.io/validator/)
## Installation
### Debian
```
aptitude install openjdk-8-jre-headless
```### RubyGems
```
gem install ruby-vnu
```## Usage
``` ruby
require 'vnu'Vnu.cli # => "java -jar GEMHOME/ruby-vnu/vnu.jar"
Vnu.cli = "java -Xss512k -jar #{Vnu::JAR_PATH}"
Vnu.validate('', errors_only: true, format: 'json')
```## Tests
```
bundle exec rake
```## License
The MIT License
Copyright (c) 2015 Laurent Arnoud
---
[](https://rubygems.org/gems/ruby-vnu)
[](https://travis-ci.org/spk/ruby-vnu)
[](https://codeclimate.com/github/spk/ruby-vnu)