vcard 0.2.6 → 0.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-gemset +1 -0
- data/.ruby-version +1 -0
- data/lib/vcard/vcard.rb +3 -5
- data/lib/vcard/version.rb +1 -1
- data/test/vcard_test.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4f75edebd0dd1ec896b452016d0a34a7f5223c3
|
4
|
+
data.tar.gz: df369e737e53edabc6f3af18513fc252570ac52b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b83b1476ed86d9ac223f23bf95e435b7dd696fda6e615d5d8fdbd8c28cdfd49615bd76c91d0439a73376a29c9a64a99dd2b79e578414bddb1a7c8a4613f64d9d
|
7
|
+
data.tar.gz: feaff19112de3ed07d9784f423ca97a89bd47df8393c0085783d61346543605273a31eeebecf35bd184eada5558a8e842a44df2015c9ec142f7ad5c33d435361
|
data/.ruby-gemset
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
vcard
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby-2.0.0-p195
|
data/lib/vcard/vcard.rb
CHANGED
@@ -1318,13 +1318,11 @@ module Vcard
|
|
1318
1318
|
@card << ::Vcard::DirectoryInfo::Field.create( "ORG", org );
|
1319
1319
|
end
|
1320
1320
|
|
1321
|
-
#
|
1321
|
+
# Add a role field, ROLE.
|
1322
1322
|
#
|
1323
1323
|
# It can be set to a single String.
|
1324
|
-
def
|
1325
|
-
|
1326
|
-
|
1327
|
-
@card << ::Vcard::DirectoryInfo::Field.create( "ROLE", ::Vcard.encode_text(role));
|
1324
|
+
def add_role(role)
|
1325
|
+
@card << ::Vcard::DirectoryInfo::Field.create("ROLE", ::Vcard.encode_text(role));
|
1328
1326
|
end
|
1329
1327
|
|
1330
1328
|
# Add a URL field, URL.
|
data/lib/vcard/version.rb
CHANGED
data/test/vcard_test.rb
CHANGED
@@ -490,7 +490,7 @@ EOF
|
|
490
490
|
n.given = "John"
|
491
491
|
n.family = "Woe"
|
492
492
|
end
|
493
|
-
m.
|
493
|
+
m.add_role "Office Manager\r\n;Something Else"
|
494
494
|
end
|
495
495
|
assert_equal "Office Manager\n;Something Else", card.role
|
496
496
|
assert_match /Office Manager\\n\\;Something Else/, card.to_s
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vcard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kuba Kuźma
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Vcard extracted from Vpim
|
14
14
|
email:
|
@@ -18,6 +18,8 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- .gitignore
|
21
|
+
- .ruby-gemset
|
22
|
+
- .ruby-version
|
21
23
|
- .travis.yml
|
22
24
|
- Gemfile
|
23
25
|
- LICENSE.txt
|