vcard_parser 0.0.9 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/vcard_parser/vcard.rb +1 -1
- data/lib/vcard_parser/version.rb +1 -1
- data/specs/data/malformed3.0.vcf +15 -0
- data/specs/unit/vcard_spec.rb +7 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7757928503f1a96c20a5a2702a6e82598c606ae4
|
4
|
+
data.tar.gz: cf11adf713c276a3364a5fad5172ed3556d3017d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3310d4a575db0de6a473e781542e2d994df6a5abab9e02f88ce3c69ea5fecffe0ddd1767f7b2a2f58277a775aee708efb72e900a2c0081208e04b1b27e24d681
|
7
|
+
data.tar.gz: 7a1bdef1cb665819652f3272fb8917d534a05a430a18d8c5627d0bd027e2271123804e2bd884c0d9f55ebb8aef30ad954cb68085bc0b6521a4041a7fff4a3078
|
data/lib/vcard_parser/vcard.rb
CHANGED
data/lib/vcard_parser/version.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
BEGIN:VCARD
|
2
|
+
VERSION:3.0
|
3
|
+
|
4
|
+
PRODID:-//Apple Inc.//iOS 5.0.1//EN
|
5
|
+
N:Durand;Christophe;;;
|
6
|
+
FN:Christophe Durand
|
7
|
+
ORG:Op;
|
8
|
+
item1.TEL;type=pref:2 56 38 54
|
9
|
+
item2.TEL;type=pref:5 66
|
10
|
+
TEL;type=CELL;type=VOICE:3 55
|
11
|
+
item2.ADR;type=HOME;type=pref:;;3 rue du chat;Dris;;90880;FRANCE
|
12
|
+
BDAY;value=date:1900-01-01
|
13
|
+
REV:2012-10-31T16:08:22Z
|
14
|
+
UID:11
|
15
|
+
END:VCARD
|
data/specs/unit/vcard_spec.rb
CHANGED
@@ -22,6 +22,13 @@ describe 'VCard' do
|
|
22
22
|
end
|
23
23
|
|
24
24
|
describe 'vCard 3.0' do
|
25
|
+
should 'handle blank lines' do
|
26
|
+
vcards = VCardParser::VCard.parse( data_file('malformed3.0.vcf') )
|
27
|
+
vcards.size.should == 1
|
28
|
+
|
29
|
+
vcards[0].version.should == "3.0"
|
30
|
+
end
|
31
|
+
|
25
32
|
should 'parse simple card' do
|
26
33
|
vcards = VCardParser::VCard.parse( data_file('vcard3.0.vcf') )
|
27
34
|
vcards.size.should == 1
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcard_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Julien Ammous
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: A vCard parser
|
14
14
|
email:
|
@@ -29,6 +29,7 @@ files:
|
|
29
29
|
- lib/vcard_parser/3.0/field.rb
|
30
30
|
- lib/vcard_parser/vcard.rb
|
31
31
|
- lib/vcard_parser/version.rb
|
32
|
+
- specs/data/malformed3.0.vcf
|
32
33
|
- specs/data/two_vcard3.0.vcf
|
33
34
|
- specs/data/vcard2.1.vcf
|
34
35
|
- specs/data/vcard3.0.vcf
|