0.0
No commit activity in last 3 years
No release in over 3 years
Validate iCalendar content
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
>= 0
>= 0
>= 0
>= 0

Runtime

 Project Readme

IcsValidator

Build Status Gem Version Code Climate Coverage Status

Validate iCalendar content, using http://icalvalid.cloudapp.net/. If this gem reports a failed validation, your best bet is to manually re-validate your content via the website for more actionable feedback.

Used by http://pvdtechevents.com/ to validate its generated feed.

Installation

Add this line to your application's Gemfile:

gem 'ics_validator'

And then execute:

$ bundle

Or install it yourself as:

$ gem install ics_validator

Usage

# validate an online feed by URL
IcsValidator.valid_feed?("http://example.com/valid_feed.ics") # => true
IcsValidator.valid_feed?("http://example.com/invalid_feed.ics") # => false

# validate a String snippet of iCalendar content
IcsValidator.valid_snippet?("BEGIN:VCALENDAR...")

# validate an iCalendar file
IcsValidator.valid_file?("path/to/local/feed.ics")

Contributing

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