Giter VIP home page Giter VIP logo

feedvalidator's Introduction

= FeedValidator

FeedValidator is an interface to the {W3C Feed Validation online service}[http://validator.w3.org/feed/],
based on its SOAP 1.2 support. 

It helps to find errors in RSS or ATOM feeds.

FeedValidator add a new assertion (<code>assert_valid_feed</code>) which you can use in Rails applications.
This assertion implements a cache to improve the performance of the tests and to not abuse of the 
{W3C Feed Validation online service}[http://validator.w3.org/feed/]


== Examples

* For use FeedValidator just do this:

    require 'feed_validator'

    v = W3C::FeedValidator.new()
    v.validate_url('http://www.w3.org/QA/news.rss')
    puts v.to_s unless v.valid?

* In Rails you can use it in your functional tests, just modify your /test/test_helper.rb adding this line:

    require 'feed_validator/assertions'

  And now you can use in your functional test, in this way:

    def test_bar_valid_feed
      get :bar
      assert_valid_feed
    end

  Or use the class-level method to quickly create validation tests for a bunch of actions at once:

    assert_valid_feed :bar, :foo


== Download

The latest version of FeedValidator can be found at

* http://rubyforge.org/frs/?group_id=1533

Documentation can be found at 

* http://feedvalidator.rubyforge.org


== Installation

You can install FeedValidator as a gem:
  gem install feedvalidator
  
Or you can install it from the tarball or zip packages on the download page
and then extract it to your lib directory as you would with any other
Ruby library.


== License

FeedValidator is released under the MIT license.


== Support

You can find the Feed Validator RubyForge page at http://rubyforge.org/projects/feedvalidator.

Feel free to submit commits or feature requests.

For other information, feel free to contact mailto:[email protected].

feedvalidator's People

Contributors

muffinista avatar

Watchers

Julien Desrosiers avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.