rexchange 0.3.0 → 0.3.1

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/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ -- 0.3.1:
2
+ * Disabled a warning about overwriting GenericItem::CONTENT_CLASS
3
+ * Added a "rescue" for Time::parse failures that reverts to the original element text
4
+
1
5
  -- 0.3.0:
2
6
  * Added support for Appointments
3
7
  * Options hash for Session creation is gone. The new form is: "RExchange::Session.new(url, username, password)"
data/RAKEFILE CHANGED
@@ -8,7 +8,7 @@ require 'rake/gempackagetask'
8
8
  require 'rake/contrib/rubyforgepublisher'
9
9
  require 'pscp'
10
10
 
11
- PACKAGE_VERSION = '0.3.0'
11
+ PACKAGE_VERSION = '0.3.1'
12
12
 
13
13
  PACKAGE_FILES = FileList[
14
14
  'README',
@@ -23,7 +23,7 @@ module RExchange
23
23
  namespaced_name = element.namespace + element.name
24
24
 
25
25
  if element.name =~ /date$/i || self.class::ATTRIBUTE_MAPPINGS.find { |k,v| v == namespaced_name && k.to_s =~ /\_(at|on)$/ }
26
- @attributes[namespaced_name] = Time::parse(element.text)
26
+ @attributes[namespaced_name] = Time::parse(element.text) rescue element.text
27
27
  else
28
28
  @attributes[namespaced_name] = element.text
29
29
  end
@@ -70,7 +70,9 @@ module RExchange
70
70
  # a Contact. So that's what we call our class, and we use this method
71
71
  # to make sure everything still works as it should.
72
72
  def self.set_content_class(dav_name)
73
+ verbosity, $VERBOSE = $VERBOSE, nil # disable warnings for the next operation
73
74
  const_set('CONTENT_CLASS', dav_name)
75
+ $VERBOSE = verbosity # revert to the original verbosity
74
76
  end
75
77
 
76
78
  # Defines what attributes are used in queries, and
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: rexchange
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.3.0
6
+ version: 0.3.1
7
7
  date: 2007-01-05 00:00:00 -06:00
8
8
  summary: A simple wrapper around Microsoft Exchange Server's WebDAV API
9
9
  require_paths: