mumboe-vpim 0.7 → 0.695

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/README +1 -1
  2. data/lib/vpim/vcard.rb +2 -32
  3. metadata +3 -3
data/README CHANGED
@@ -9,7 +9,7 @@ vPim provides calendaring, scheduling, and contact support for Ruby through the
9
9
  standard iCalendar and vCard data formats for "personal information" exchange.
10
10
 
11
11
  = Mumboe
12
- This code has been modified by Mumboe, Inc. for purposes of Ruby 1.9 compatibility and adding some useful methods for vCard 3.0 specs
12
+ This code has been modified by Mumboe, Inc. for purposes of Ruby 1.9 compatibility.
13
13
 
14
14
  = Thanks
15
15
 
data/lib/vpim/vcard.rb CHANGED
@@ -1344,11 +1344,6 @@ module Vpim
1344
1344
 
1345
1345
  @card << Vpim::DirectoryInfo::Field.create( 'TITLE', title );
1346
1346
  end
1347
-
1348
- # for adding a job title
1349
- def add_title(value)
1350
- @card << Vpim::DirectoryInfo::Field.create( 'TITLE', value.to_str );
1351
- end
1352
1347
 
1353
1348
  # Set the org field, ORG.
1354
1349
  #
@@ -1358,31 +1353,11 @@ module Vpim
1358
1353
 
1359
1354
  @card << Vpim::DirectoryInfo::Field.create( 'ORG', org );
1360
1355
  end
1361
-
1362
- # for adding a company
1363
- def add_org(value)
1364
- @card << Vpim::DirectoryInfo::Field.create( 'ORG', value.to_str );
1365
- end
1356
+
1366
1357
 
1367
1358
  # Add a URL field, URL.
1368
- # Microsoft Outlook is not following the vCard 3.0 specs
1369
1359
  def add_url(url)
1370
- params = {}
1371
-
1372
- if block_given?
1373
- x = Struct.new( :location, :preferred, :purpose ).new
1374
-
1375
- yield x
1376
-
1377
- x[:preferred] = 'PREF' if x[:preferred]
1378
-
1379
- types = x.to_a.flatten.compact.map { |s| s.downcase }.uniq
1380
-
1381
- params['TYPE'] = types if types.first
1382
- end
1383
-
1384
- @card << Vpim::DirectoryInfo::Field.create( 'URL', url.to_str, params)
1385
- self
1360
+ @card << Vpim::DirectoryInfo::Field.create( 'URL', url.to_str );
1386
1361
  end
1387
1362
 
1388
1363
  # Add a Field, +field+.
@@ -1403,11 +1378,6 @@ module Vpim
1403
1378
  end
1404
1379
  end
1405
1380
 
1406
- # for marking a vCard as a company
1407
- def set_as_company
1408
- @card << Vpim::DirectoryInfo::Field.create( 'X-ABShowAs', 'COMPANY' );
1409
- end
1410
-
1411
1381
  # Copy the fields from +card+ into self using #add_field. If a block is
1412
1382
  # provided, each Field from +card+ is yielded. The block should return a
1413
1383
  # Field to add, or nil. The Field doesn't have to be the one yielded,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumboe-vpim
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.7"
4
+ version: "0.695"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sam Roberts
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-08 00:00:00 -06:00
12
+ date: 2009-12-04 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -123,7 +123,7 @@ rubyforge_project: vpim
123
123
  rubygems_version: 1.3.5
124
124
  signing_key:
125
125
  specification_version: 3
126
- summary: iCalendar and vCard support for ruby with minor modification for Ruby 1.9 compatibility and extensions to include some useful methods for vCard 3.0 specs
126
+ summary: iCalendar and vCard support for ruby with minor modification for Ruby 1.9 compatibility
127
127
  test_files:
128
128
  - test/test_agent_atomize.rb
129
129
  - test/test_agent_calendars.rb