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.


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.


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



I could wrap the Repo/Calendar/Atomize in a small class that would memoize ical data and atom output. Maybe even do an HTTP head for fast detection of change? Does a calendar have updated information? Can we memoize atom when ics doesn't change?

Constants

PRODID
VERSION

Public Class Methods

decode_date_to_date(v) click to toggle source

Convert a RFC 2425 date into a Date object.

# File lib/vpim/rfc2425.rb, line 117
def self.decode_date_to_date(v)
  Date.new(*decode_date(v))
end
encode_paramtext(value) click to toggle source

param-value = paramtext / quoted-string paramtext = *SAFE-CHAR quoted-string = DQUOTE *QSAFE-CHAR DQUOTE

# File lib/vpim/rfc2425.rb, line 284
def Vpim.encode_paramtext(value)
  case value
  when %{\A#{Bnf::SAFECHAR}*\z}
    value
  else
    raise Vpim::Unencodable, "paramtext #{value.inspect}"
  end
end
encode_paramvalue(value) click to toggle source
# File lib/vpim/rfc2425.rb, line 293
def Vpim.encode_paramvalue(value)
  case value
  when %{\A#{Bnf::SAFECHAR}*\z}
    value
  when %{\A#{Bnf::QSAFECHAR}*\z}
    '"' + value + '"'
  else
    raise Vpim::Unencodable, "param-value #{value.inspect}"
  end
end
version() click to toggle source

Return the API version as a string.

# File lib/vpim/version.rb, line 15
def Vpim.version
  VERSION
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.