vpim 0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/vpim/vpim.rb ADDED
@@ -0,0 +1,96 @@
1
+ =begin
2
+ $Id: vpim.rb,v 1.20 2005/02/04 21:31:12 sam Exp $
3
+
4
+ Copyright (C) 2005 Sam Roberts
5
+
6
+ This library is free software; you can redistribute it and/or modify it
7
+ under the same terms as the ruby language itself, see the file COPYING for
8
+ details.
9
+ =end
10
+
11
+ #:main:Vpim
12
+ #:title:vpim - a library to manipulate vCards and iCalendars
13
+ #
14
+ # Author:: Sam Roberts <sroberts@uniserve.com>
15
+ # Copyright:: Copyright (C) 2006 Sam Roberts
16
+ # License:: May be distributed under the same terms as Ruby
17
+ # Version:: 0.16
18
+ # Homepage:: http://vpim.rubyforge.org
19
+ #
20
+ # An implementation of the MIME Content-Type for Directory Information (RFC
21
+ # 2425), and profiles of this format. The basic RFC 2425 format is implemented
22
+ # by the DirectoryInfo class.
23
+ #
24
+ # Currently the only IETF-defined profile is vCard (RFC 2426), implemented by
25
+ # the Vcard class.
26
+ #
27
+ # iCalendar (RFC 2445) was not specified as a profile of RFC 2425, could have
28
+ # been, and is implemented by the Icalendar class.
29
+ #
30
+ # Both of these "v-formats" are for personal information management, thus the
31
+ # name "vPim".
32
+ #
33
+ # This is my first Ruby library, and I would love to have feedback on
34
+ # useability. In particular, if anybody using this library could send me
35
+ # any code showing how they call vPim, that would be very useful to me. It
36
+ # doesn't have to be complete, I would just like to see how the APIs are
37
+ # being called, to give me ideas for how to improve them.
38
+ #
39
+ # Particularly, I'm interested in examples of encoding.
40
+ #
41
+ # Sam Roberts <sroberts@uniserve.com>
42
+ #
43
+ # = Project Information
44
+ #
45
+ # The latest release can be downloaded from the Ruby Forge project page:
46
+ #
47
+ # - http://rubyforge.org/projects/vpim
48
+ #
49
+ # If you are interested in notifications about new releases, or
50
+ # asking questions about vPim, please subscribe to "vpim-talk":
51
+ #
52
+ # - http://rubyforge.org/mailman/listinfo/vpim-talk
53
+ #
54
+ # = Examples
55
+ #
56
+ # Sample utilities are provided as examples of using vPim in samples/.
57
+ #
58
+ # vCard examples are:
59
+ # - link:ex_mkvcard.txt: an example of making a vCard
60
+ # - link:mutt-aliases-to-vcf.txt: convert a mutt aliases file to vCards
61
+ # - link:ex_get_vcard_photo.txt: pull photo data from a vCard
62
+ # - link:ab-query.txt: query the OS X Address Book to find vCards
63
+ # - link:vcf-to-mutt.txt: query vCards for matches, output in formats useful
64
+ # with Mutt (see link:README.mutt for details)
65
+ # - link:vcard-dump.txt: dump all the fields in a vCard
66
+ # - link:tabbed-file-to-vcf.txt: convert a tab-delimited file to vCards, a
67
+ # (small but) complete application contributed by Dane G. Avilla, thanks!
68
+ # - link:vcf-to-ics.txt: example of how to create calendars of birthdays from vcards
69
+ #
70
+ # iCalendar examples are:
71
+ # - link:ics-to-rss.txt: prints todos as RSS, or starts a WEBrick servlet
72
+ # that publishes todos as a RSS feed. Thanks to Dave Thomas for this idea,
73
+ # from http://pragprog.com/pragdave/Tech/Blog/ToDos.rdoc.
74
+ # - link:cmd-itip.txt: prints emailed iCalendar invitations in human-readable
75
+ # form, and see link:README.mutt for instruction on mutt integration. I get
76
+ # a lot of meeting invitations from Lotus Notes/Domino users at work, and
77
+ # this is pretty useful in figuring out where and when I am supposed to be.
78
+ # - link:reminder.txt: prints upcoming events and todos, by default from
79
+ # Apple's iCal calendars
80
+ # - link:rrule.txt: utility for printing recurrence rules
81
+ # - link:ical-dump.txt: utility for dumping contents of .ics files
82
+ module Vpim
83
+ VERSION = "0.16"
84
+
85
+ # Return the API version as a string.
86
+ def Vpim.version
87
+ VERSION
88
+ end
89
+ end
90
+
91
+ module Vpim
92
+ # Exception used to indicate that data being decoded is invalid, the message
93
+ # usually gives some clue as to exactly what is invalid.
94
+ class InvalidEncodingError < StandardError; end
95
+ end
96
+
data/lib/vpim/vpim.rb~ ADDED
@@ -0,0 +1,96 @@
1
+ =begin
2
+ $Id: vpim.rb,v 1.20 2005/02/04 21:31:12 sam Exp $
3
+
4
+ Copyright (C) 2005 Sam Roberts
5
+
6
+ This library is free software; you can redistribute it and/or modify it
7
+ under the same terms as the ruby language itself, see the file COPYING for
8
+ details.
9
+ =end
10
+
11
+ #:main:Vpim
12
+ #:title:vpim - a library to manipulate vCards and iCalendars
13
+ #
14
+ # Author:: Sam Roberts <sroberts@uniserve.com>
15
+ # Copyright:: Copyright (C) 2006 Sam Roberts
16
+ # License:: May be distributed under the same terms as Ruby
17
+ # Version:: 0.16
18
+ # Homepage:: http://vpim.rubyforge.org
19
+ #
20
+ # An implementation of the MIME Content-Type for Directory Information (RFC
21
+ # 2425), and profiles of this format. The basic RFC 2425 format is implemented
22
+ # by the DirectoryInfo class.
23
+ #
24
+ # Currently the only IETF-defined profile is vCard (RFC 2426), implemented by
25
+ # the Vcard class.
26
+ #
27
+ # iCalendar (RFC 2445) was not specified as a profile of RFC 2425, could have
28
+ # been, and is implemented by the Icalendar class.
29
+ #
30
+ # Both of these "v-formats" are for personal information management, thus the
31
+ # name "vPim".
32
+ #
33
+ # This is my first Ruby library, and I would love to have feedback on
34
+ # useability. In particular, if anybody using this library could send me
35
+ # any code showing how they call vPim, that would be very useful to me. It
36
+ # doesn't have to be complete, I would just like to see how the APIs are
37
+ # being called, to give me ideas for how to improve them.
38
+ #
39
+ # Particularly, I'm interested in examples of encoding.
40
+ #
41
+ # Sam Roberts <sroberts@uniserve.com>
42
+ #
43
+ # = Project Information
44
+ #
45
+ # The latest release can be downloaded from the Ruby Forge project page:
46
+ #
47
+ # - http://rubyforge.org/projects/vpim
48
+ #
49
+ # If you are interested in notifications about new releases, or
50
+ # asking questions about vPim, please subscribe to "vpim-talk":
51
+ #
52
+ # - http://rubyforge.org/mailman/listinfo/vpim-talk
53
+ #
54
+ # = Examples
55
+ #
56
+ # Sample utilities are provided as examples of using vPim in samples/.
57
+ #
58
+ # vCard examples are:
59
+ # - link:ex_mkvcard.txt: an example of making a vCard
60
+ # - link:mutt-aliases-to-vcf.txt: convert a mutt aliases file to vCards
61
+ # - link:ex_get_vcard_photo.txt: pull photo data from a vCard
62
+ # - link:ab-query.txt: query the OS X Address Book to find vCards
63
+ # - link:vcf-to-mutt.txt: query vCards for matches, output in formats useful
64
+ # with Mutt (see link:README.mutt for details)
65
+ # - link:vcard-dump.txt: dump all the fields in a vCard
66
+ # - link:tabbed-file-to-vcf.txt: convert a tab-delimited file to vCards, a
67
+ # (small but) complete application contributed by Dane G. Avilla, thanks!
68
+ # - link:vcf-to-ics.txt: example of how to create calendars of birthdays from vcards
69
+ #
70
+ # iCalendar examples are:
71
+ # - link:ics-to-rss.txt: prints todos as RSS, or starts a WEBrick servlet
72
+ # that publishes todos as a RSS feed. Thanks to Dave Thomas for this idea,
73
+ # from http://pragprog.com/pragdave/Tech/Blog/ToDos.rdoc.
74
+ # - link:cmd-itip.txt: prints emailed iCalendar invitations in human-readable
75
+ # form, and see link:README.mutt for instruction on mutt integration. I get
76
+ # a lot of meeting invitations from Lotus Notes/Domino users at work, and
77
+ # this is pretty useful in figuring out where and when I am supposed to be.
78
+ # - link:reminder.txt: prints upcoming events and todos, by default from
79
+ # Apple's iCal calendars
80
+ # - link:rrule.txt: utility for printing recurrence rules
81
+ # - link:ical-dump.txt: utility for dumping contents of .ics files
82
+ module Vpim
83
+ VERSION = "0.16"
84
+
85
+ # Return the API version as a string.
86
+ def Vpim.version
87
+ VERSION
88
+ end
89
+ end
90
+
91
+ module Vpim
92
+ # Exception used to indicate that data being decoded is invalid, the message
93
+ # usually gives some clue as to exactly what is invalid.
94
+ class InvalidEncodingError < StandardError; end
95
+ end
96
+
metadata ADDED
@@ -0,0 +1,60 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.11
3
+ specification_version: 1
4
+ name: vpim
5
+ version: !ruby/object:Gem::Version
6
+ version: "0.16"
7
+ date: 2006-02-19 00:00:00 -08:00
8
+ summary: a library to manipulate vCards and iCalendars
9
+ require_paths:
10
+ - lib
11
+ email: sroberts@uniserve.com
12
+ homepage: http://vpim.rubyforge.org
13
+ rubyforge_project:
14
+ description:
15
+ autorequire: vpim
16
+ default_executable:
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ authors:
29
+ - Sam Roberts
30
+ files:
31
+ - lib/vpim
32
+ - lib/vpim/date.rb
33
+ - lib/vpim/dirinfo.rb
34
+ - lib/vpim/duration.rb
35
+ - lib/vpim/enumerator.rb
36
+ - lib/vpim/field.rb
37
+ - lib/vpim/icalendar.rb
38
+ - lib/vpim/maker
39
+ - lib/vpim/rfc2425.rb
40
+ - lib/vpim/rrule.rb
41
+ - lib/vpim/time.rb
42
+ - lib/vpim/vcard.rb
43
+ - lib/vpim/vevent.rb
44
+ - lib/vpim/vpim.rb
45
+ - lib/vpim/vpim.rb~
46
+ - lib/vpim/maker/vcard.rb
47
+ test_files: []
48
+
49
+ rdoc_options: []
50
+
51
+ extra_rdoc_files: []
52
+
53
+ executables: []
54
+
55
+ extensions: []
56
+
57
+ requirements: []
58
+
59
+ dependencies: []
60
+