vcard_parser 0.0.5 → 0.0.6

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: f3479e4f93c58986ca30ad48b26cb80ca4807c72
4
- data.tar.gz: 03c8d810f5e7cb038893cc1a1e537832a5c19d06
3
+ metadata.gz: 1ece135ca1e00568dd56799e5c0d1d8f4632df4f
4
+ data.tar.gz: 3e28c28ae6a4faa8a88dfee4f4f03d6dc1583ae3
5
5
  SHA512:
6
- metadata.gz: 6bcb4e02b567e421c39aacb35bd6a611ed2d76d7c7d7f92f67d12b64f2a90085aa81ff54fb177e96041c5bba682f888c269705bfc9ce8eff514ed9570d7db1a6
7
- data.tar.gz: fbfd66dc07e07afaeaed3813e4e4990cf83221591173dba1e19000a6d30b6df3ae5ac36fe2b2e6effe57734907c743574d5d6c1860b1c9ea61a99ecd2b63a237
6
+ metadata.gz: 06ca2a247cac67355b0a8327637aba50fe0614a60c120a3cfa10bede712049fac0abb98811d69cd5ab8ef49a16453f3e565e5def1200487ee40324c3295e86ff
7
+ data.tar.gz: 7f44c5c40776e944150b00d16855e6fe3f060f68445de262d858f17b05cd3837522d28aae7bda8790dab227de4333d18731669a8c6aaf9b5c3ffbbe260d3fdf6
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ # 0.0.6
2
+ - fixed parsing for field name with numbers (X-HomeAddress1)
3
+
1
4
  # 0.0.5
2
5
  - added support for NOTE field
3
6
 
@@ -8,7 +8,7 @@ module VCardParser
8
8
 
9
9
  FORMAT = /^
10
10
  (?:(?<group>[a-zA-Z0-9-]+)\.)?
11
- (?<name>[a-zA-Z-]+)
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.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -39,6 +39,14 @@ describe 'Field 3.0' do
39
39
  f.params.should == {}
40
40
  end
41
41
 
42
+ should 'parse extension field with numbers' do
43
+ f = VCardParser::V30::Field.parse("X-HomeAddress1:5 rue de la Roguenette")
44
+ f.group.should == nil
45
+ f.name.should == "X-HomeAddress1"
46
+ f.value.should == "5 rue de la Roguenette"
47
+ f.params.should == {}
48
+ end
49
+
42
50
  should 'parse simple line' do
43
51
  f = VCardParser::V30::Field.parse("PRODID:-//Apple Inc.//Mac OS X 10.8.2//EN")
44
52
  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.5
4
+ version: 0.0.6
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-04-24 00:00:00.000000000 Z
11
+ date: 2013-05-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A vCard parser
14
14
  email: