Socket
Book a DemoInstallSign in
Socket

middleman-xmlvalidator

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

middleman-xmlvalidator

0.2.1
bundlerRubygems
Version published
Maintainers
1
Created
Source

Middleman::Xmlvalidator

This gem is used with middleman to validate the RSS and XML files that are generated in the build folder. The gem uses NokoGiri and some different XML schemas to validate the files in question. Dig into the code to see how it works. It's pretty straight forward.

Installation

Add this line to your application's Gemfile:

gem 'middleman-xmlvalidator', '>= 0.1.0'

And then execute:

$ bundle install

Or install it yourself as:

$ gem install middleman-xmlvalidator

Usage

inside your config.rb file, add something like this:

	configure :build do

	  activate :validate

	end

When you call

	$ middleman build

your .xml and .rss files will be validated against standard schema.

Contributing

  • Fork it
  • Create your feature branch (git checkout -b my-new-feature)
  • Commit your changes (git commit -am 'Add some feature')
  • Push to the branch (git push origin my-new-feature)
  • Create new Pull Request

FAQs

Package last updated on 17 Dec 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.