Git Product home page Git Product logo

vcard's Introduction

Vcard CI

Vcard gem extracts Vcard support from Vpim gem.

Installation

Add this line to your application's Gemfile:

gem "vcard"

And then execute:

$ bundle

Or install it yourself as:

$ gem install vcard

Configuration

You can configure how to deal with invalid lines. The gem supports three behaviours:

  1. raise_on_invalid_line = true

Vcard::InvalidEncodingError will be raised if any invalid line is found.

  1. raise_on_invalid_line = false, ignore_invalid_vcards = true

If the vcard source has an invalid line, this vcard object will be ignored. If you have only one vcard object in your source string, an empty array will be returned from Vcard.decode.

  1. raise_on_invalid_line = false, ignore_invalid_vcards = false

If the vcard is marked as invalid, invalid fields will be ignored, but the vcard will be present in the results of Vcard#decode.

Vcard.configure do |config|
  config.raise_on_invalid_line = false # default true
  config.ignore_invalid_vcards = false # default true
end

Upgrade Notes

We are no longer testing against Ruby 1.8.7.

vcard's People

Contributors

brendon avatar hannesm avatar knu avatar qoobaa avatar senzpo avatar seth-macpherson avatar solenko 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.