rexchange 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +4 -0
- data/RAKEFILE +1 -1
- data/lib/rexchange/generic_item.rb +3 -1
- metadata +1 -1
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
@@ -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