vcard_parser 1.0.0 → 1.0.1

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: 7757928503f1a96c20a5a2702a6e82598c606ae4
4
- data.tar.gz: cf11adf713c276a3364a5fad5172ed3556d3017d
3
+ metadata.gz: 4a9accfba5bf860e975f97d990d2cae54f17eca6
4
+ data.tar.gz: cc74fb2db60fb1c9278e4fde2981424137d62e74
5
5
  SHA512:
6
- metadata.gz: 3310d4a575db0de6a473e781542e2d994df6a5abab9e02f88ce3c69ea5fecffe0ddd1767f7b2a2f58277a775aee708efb72e900a2c0081208e04b1b27e24d681
7
- data.tar.gz: 7a1bdef1cb665819652f3272fb8917d534a05a430a18d8c5627d0bd027e2271123804e2bd884c0d9f55ebb8aef30ad954cb68085bc0b6521a4041a7fff4a3078
6
+ metadata.gz: fd5ef6ee7cf1341976a8b2211f26ceb35c09d03cd4dab9dea2f9cd12a6e040eeddd9040d3d447dd5c40fb02d81d6dadf96a478fa1f1fffa67fa216ffbdfe3ee8
7
+ data.tar.gz: 212256186ca48cc2bc29eca1a999b4ba88c37863b722eee4b4ae7b29e9e4b16e209f9c09cd58bbdf7f3752ade3fc93f5a858686142d113d8c69645ae73e5bf29
data/ChangeLog CHANGED
@@ -1,3 +1,6 @@
1
+ # 1.0.1
2
+ - Allow more characters in parameters name (fix support for some apple naming)
3
+
1
4
  # 0.0.8
2
5
  - fixed field regexp (- not escaped)
3
6
 
@@ -9,7 +9,7 @@ module VCardParser
9
9
  FORMAT = /^
10
10
  (?:(?<group>[a-zA-Z0-9\-]+)\.)?
11
11
  (?<name>[a-zA-Z0-9\-\/]+)
12
- (?<params> (?:;[A-Za-z]+=[^;]+)+ )?
12
+ (?<params> (?:;[A-Za-z-]+=[^;]+)+ )?
13
13
  :(?<value>.*)
14
14
  $/x
15
15
 
@@ -1,3 +1,3 @@
1
1
  module VcardParser
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -1,6 +1,14 @@
1
1
  require_relative '../../spec_helper'
2
2
 
3
3
  describe 'Field 3.0' do
4
+ should 'parse field' do
5
+ f = VCardParser::V30::Field.parse("item3.IMPP;X-SERVICE-TYPE=Jabber;type=pref:xmpp:Admin@localhost")
6
+ f.group.should == "item3"
7
+ f.name.should == "IMPP"
8
+ f.value.should == "Admin@localhost"
9
+ f.params.should == {'type' => ['pref:xmpp'], 'x-service-type' => ['Jabber']}
10
+ end
11
+
4
12
  should 'parse grouped field' do
5
13
  f = VCardParser::V30::Field.parse("item1.TEL;type=pref:1 24 54 36")
6
14
  f.group.should == "item1"
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: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Ammous
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-04 00:00:00.000000000 Z
11
+ date: 2015-12-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A vCard parser
14
14
  email: