nu gem抛出YAJL deprecation警告,偶尔会完全失败,并引用HTTPStream的问题有没有稳定的ruby gems可以验证html5文档?
例如
req1.9.2p320 :001 > require 'validator.nu'
DEPRECATION WARNING: Yajl::HttpStream is going to be removed in 2.0
DEPRECATION WARNING: Yajl's Gzip support is going to be removed in 2.0
DEPRECATION WARNING: Yajl's Deflate support is going to be removed in 2.0
=> true
最佳答案
gem不依赖于living-validator
而支持YAJL
和HTTParty
。github项目在这里:https://github.com/DynamiX-Web-Design/living-validator。它还与托管您自己的活生生的验证器实例兼容。
关于ruby - ruby HTML5验证的Validator.nu gem的替代品,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/13612492/