module Vpim
Copyright (C) 2008 Sam Roberts This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details.
Notes on a CAL-ADDRESS
When used with ATTENDEE, the parameters are:
CN CUTYPE DELEGATED-FROM DELEGATED-TO DIR LANGUAGE MEMBER PARTSTAT ROLE RSVP SENT-BY
When used with ORGANIZER, the parameters are:
CN DIR LANGUAGE SENT-BY
What I've seen in Notes invitations, and iCal responses:
ROLE PARTSTAT RSVP CN
Support these last 4, for now.
TODO Pasting of webcal links, conversion to webcal links?
Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details.
Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details.
Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details.
Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details.
Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details.
require 'pp'
$debug = ENV
class Date
def inspect self.to_s end
end
def debug(*objs)
if $debug pp(*objs) print ' (', caller(1)[0], ')', "\n" end
end
Copyright (C) 2008 Sam Roberts
This library is free software; you can redistribute it and/or modify it under the same terms as the ruby language itself, see the file COPYING for details.
Constants
- PRODID
- VERSION
Public Class Methods
Convert a RFC 2425 date into a Date object.
# File lib/vpim/rfc2425.rb, line 124 def self.decode_date_to_date(v) Date.new(*decode_date(v)) end
param-value = paramtext / quoted-string paramtext = *SAFE-CHAR quoted-string = DQUOTE *QSAFE-CHAR DQUOTE
# File lib/vpim/rfc2425.rb, line 291 def Vpim.encode_paramtext(value) case value when %r{\A#{Bnf::SAFECHAR}*\z} value else raise Vpim::Unencodeable, "paramtext #{value.inspect}" end end
# File lib/vpim/rfc2425.rb, line 300 def Vpim.encode_paramvalue(value) case value when %r{\A#{Bnf::SAFECHAR}*\z} value when %r{\A#{Bnf::QSAFECHAR}*\z} '"' + value + '"' else raise Vpim::Unencodeable, "param-value #{value.inspect}" end end
Return the API version as a string.
# File lib/vpim/version.rb, line 15 def Vpim.version VERSION end