vcard_parser 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1ece135ca1e00568dd56799e5c0d1d8f4632df4f
4
- data.tar.gz: 3e28c28ae6a4faa8a88dfee4f4f03d6dc1583ae3
3
+ metadata.gz: 31f4bb56578d60423c5bb534f3995abf21cbbf86
4
+ data.tar.gz: bd369eb37cd9395ec8a901dbde9c4369c45ccded
5
5
  SHA512:
6
- metadata.gz: 06ca2a247cac67355b0a8327637aba50fe0614a60c120a3cfa10bede712049fac0abb98811d69cd5ab8ef49a16453f3e565e5def1200487ee40324c3295e86ff
7
- data.tar.gz: 7f44c5c40776e944150b00d16855e6fe3f060f68445de262d858f17b05cd3837522d28aae7bda8790dab227de4333d18731669a8c6aaf9b5c3ffbbe260d3fdf6
6
+ metadata.gz: 3f2a0b9dfbfd9ed97cec5b4fa195a885085d392fa6beec29fc5bdc3a198af3ee70f850e508ad62177961eb1a921380eaee665eb253dac3373f78d1e365336b2e
7
+ data.tar.gz: 3ce6d864c0af73acdab5248ce17a5acc420eedd60ef89992762ce102439992146da7533824041ad5b8a7f7f41f2587dc558a3f8c76386074ddbd50145119e1a7
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.0.7
2
+ - fixed parsing for field name with / (X-HomeState/Prov)
3
+
1
4
  # 0.0.6
2
5
  - fixed parsing for field name with numbers (X-HomeAddress1)
3
6
 
@@ -8,7 +8,7 @@ module VCardParser
8
8
 
9
9
  FORMAT = /^
10
10
  (?:(?<group>[a-zA-Z0-9-]+)\.)?
11
- (?<name>[a-zA-Z0-9-]+)
11
+ (?<name>[a-zA-Z0-9-\/]+)
12
12
  (?<params> (?:;[A-Za-z]+=[^;]+)+ )?
13
13
  :(?<value>.*)
14
14
  $/x
@@ -1,3 +1,3 @@
1
1
  module VcardParser
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -47,6 +47,15 @@ describe 'Field 3.0' do
47
47
  f.params.should == {}
48
48
  end
49
49
 
50
+ # X-HomeState/Prov
51
+ should 'parse extension field with /' do
52
+ f = VCardParser::V30::Field.parse("X-HomeState/Prov:5 rue de la Roguenette")
53
+ f.group.should == nil
54
+ f.name.should == "X-HomeState/Prov"
55
+ f.value.should == "5 rue de la Roguenette"
56
+ f.params.should == {}
57
+ end
58
+
50
59
  should 'parse simple line' do
51
60
  f = VCardParser::V30::Field.parse("PRODID:-//Apple Inc.//Mac OS X 10.8.2//EN")
52
61
  f.group.should == nil
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.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Ammous
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-05-06 00:00:00.000000000 Z
11
+ date: 2013-05-16 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A vCard parser
14
14
  email: