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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3c2ef2a283e0f9ae5c01e3e793b168180a27bedd
4
- data.tar.gz: 5d18623c35560ec4aa4c414e5717d4722b1dae8f
3
+ metadata.gz: d4f75edebd0dd1ec896b452016d0a34a7f5223c3
4
+ data.tar.gz: df369e737e53edabc6f3af18513fc252570ac52b
5
5
  SHA512:
6
- metadata.gz: 2accc8617384161cab0e8aba53f87f5c4093d716c8318ab1fd18414addec87f6fa82555fd8a131beb3c9e49997388fbb44ef0a5c248deebe812b31b75516ffa2
7
- data.tar.gz: 3e8cdc45d84873083cd8a56076712b7bd4e6cfba9b6500ea62cce0d208ce762c518462fb7537724d82f1351b3b79e108246d6a52d4da9f4e692d0c265986b977
6
+ metadata.gz: b83b1476ed86d9ac223f23bf95e435b7dd696fda6e615d5d8fdbd8c28cdfd49615bd76c91d0439a73376a29c9a64a99dd2b79e578414bddb1a7c8a4613f64d9d
7
+ data.tar.gz: feaff19112de3ed07d9784f423ca97a89bd47df8393c0085783d61346543605273a31eeebecf35bd184eada5558a8e842a44df2015c9ec142f7ad5c33d435361
@@ -0,0 +1 @@
1
+ vcard
@@ -0,0 +1 @@
1
+ ruby-2.0.0-p195
@@ -1318,13 +1318,11 @@ module Vcard
1318
1318
  @card << ::Vcard::DirectoryInfo::Field.create( "ORG", org );
1319
1319
  end
1320
1320
 
1321
- # Set the role field, ROLE.
1321
+ # Add a role field, ROLE.
1322
1322
  #
1323
1323
  # It can be set to a single String.
1324
- def role=(role)
1325
- delete_if { |l| l.name == "ROLE" }
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.
@@ -1,3 +1,3 @@
1
1
  module Vcard
2
- VERSION = "0.2.6"
2
+ VERSION = "0.2.7"
3
3
  end
@@ -490,7 +490,7 @@ EOF
490
490
  n.given = "John"
491
491
  n.family = "Woe"
492
492
  end
493
- m.role = "Office Manager\r\n;Something Else"
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.6
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-19 00:00:00.000000000 Z
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