brewster / vcardigan

Ruby vCard Builder/Parser
MIT License
71 stars 23 forks source link

Wrong Email Type #19

Open ghost opened 7 years ago

ghost commented 7 years ago

Hallo, I use version vcardigan 0.0.9 on ruby 2.3.2p217 (2016-11-15 revision 56796) [x86_64-linux]

When I use your example:

vcard = VCardigan.create(:version => '3.0')
vcard.fullname 'Joe Strummer'
vcard.email 'joe@strummer.com', :type => ['work', 'internet'], :preferred => 1
puts vcard

I got

BEGIN:VCARD
VERSION:3.0
FN:Joe Strummer
EMAIL;TYPE=["work", "internet"];TYPE=pref:joe@strummer.com
END:VCARD

This Email-Type (Array) is wrong it should be

EMAIL;TYPE=work,internet;PREF=1:joe@strummer.com

How can I change this? Miss I some required modules?

ghost commented 7 years ago

OK I found a pull request https://github.com/brewster/vcardigan/pull/15 to this.