This is a vCard parser/generator released under te MIT license
For now only v3.0 is supported and the testing was done mostly with Apple Addressbook and iOS contacts.
This gem is tested against these ruby by travis-ci.org:
- mri 1.9.3
require 'vcard_parser'
vcard = File.read('specs/data/vcard3.0.vcf')
cards = VCardParser::VCard.parse(vcard)
puts cards[0].fields
puts cards[0]['N']
# dump back the vcard
puts cards[0].to_s# clone the repository and:
$ bundle
$ bundle exec guard