vcard_parser 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/ChangeLog +3 -0
- data/lib/vcard_parser/3.0/field.rb +8 -0
- data/lib/vcard_parser/version.rb +1 -1
- data/specs/unit/3.0/field_spec.rb +7 -1
- metadata +5 -5
data/ChangeLog
CHANGED
data/lib/vcard_parser/version.rb
CHANGED
@@ -70,7 +70,13 @@ describe 'Field 3.0' do
|
|
70
70
|
f = VCardParser::V30::Field.parse(line)
|
71
71
|
f.to_s.should == line
|
72
72
|
end
|
73
|
-
|
73
|
+
|
74
|
+
should 'return an array of values' do
|
75
|
+
line = %{ORG:ABC, Inc.;North American Division;Marketing}
|
76
|
+
f = VCardParser::V30::Field.parse(line)
|
77
|
+
f.to_s.should == line
|
78
|
+
f.values.should == ["ABC, Inc.", "North American Division", "Marketing"]
|
79
|
+
end
|
74
80
|
|
75
81
|
|
76
82
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcard_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: A vCard parser
|
15
15
|
email:
|
@@ -51,7 +51,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
51
51
|
version: '0'
|
52
52
|
segments:
|
53
53
|
- 0
|
54
|
-
hash:
|
54
|
+
hash: 1022099259668470761
|
55
55
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
56
56
|
none: false
|
57
57
|
requirements:
|
@@ -60,10 +60,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
60
60
|
version: '0'
|
61
61
|
segments:
|
62
62
|
- 0
|
63
|
-
hash:
|
63
|
+
hash: 1022099259668470761
|
64
64
|
requirements: []
|
65
65
|
rubyforge_project:
|
66
|
-
rubygems_version: 1.8.
|
66
|
+
rubygems_version: 1.8.23
|
67
67
|
signing_key:
|
68
68
|
specification_version: 3
|
69
69
|
summary: A simple vCard parser
|