lib/rews.rb in rews-0.2.12 vs lib/rews.rb in rews-0.5.0
- old
+ new
@@ -2,21 +2,39 @@
require 'net/ntlm'
# require 'httpclient' # don't need httpclient now ntlm-http is fixed too
require 'savon'
require 'fetch_in'
+require 'rsxml'
# Ruby Exchange Web Services
module Rews
WSDL = File.expand_path("../../Services.wsdl", __FILE__)
SCHEMA_MESSAGES = "http://schemas.microsoft.com/exchange/services/2006/messages"
SCHEMA_TYPES = "http://schemas.microsoft.com/exchange/services/2006/types"
+
+ class << self
+ attr_accessor :logdev
+ end
+
+ module_function
+
+ def logger
+ return @logger if @logger
+ @logger = Logger.new(logdev) if logdev
+ end
+
+ def log
+ yield(logger) if logger
+ nil
+ end
end
require 'rews/util'
require 'rews/restriction'
require 'rews/shape'
require 'rews/sort_order'
+require 'rews/update'
require 'rews/view'
require 'rews/folder'
require 'rews/item'
require 'rews/client'