rexchange 0.3.1 → 0.3.2

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,6 @@
1
+ -- 0.3.2:
2
+ * Quick hack to make Message#move_to work
3
+
1
4
  -- 0.3.1:
2
5
  * Disabled a warning about overwriting GenericItem::CONTENT_CLASS
3
6
  * Added a "rescue" for Time::parse failures that reverts to the original element text
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2006 Samuel Smoot
2
+
3
+ Permission is hereby granted, free of charge, to any person
4
+ obtaining a copy of this software and associated documentation
5
+ files (the "Software"), to deal in the Software without
6
+ restriction, including without limitation the rights to use,
7
+ copy, modify, merge, publish, distribute, sublicense, and/or sell
8
+ copies of the Software, and to permit persons to whom the
9
+ Software is furnished to do so, subject to the following
10
+ conditions:
11
+
12
+ The above copyright notice and this permission notice shall be
13
+ included in all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
16
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
17
+ OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
18
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
19
+ HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
20
+ WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
21
+ FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
22
+ OTHER DEALINGS IN THE SOFTWARE.
data/RAKEFILE CHANGED
@@ -8,12 +8,13 @@ require 'rake/gempackagetask'
8
8
  require 'rake/contrib/rubyforgepublisher'
9
9
  require 'pscp'
10
10
 
11
- PACKAGE_VERSION = '0.3.1'
11
+ PACKAGE_VERSION = '0.3.2'
12
12
 
13
13
  PACKAGE_FILES = FileList[
14
14
  'README',
15
15
  'CHANGELOG',
16
16
  'RAKEFILE',
17
+ 'MIT-LICENSE',
17
18
  'lib/**/*.rb',
18
19
  'test/*.rb'
19
20
  ].to_a
@@ -22,7 +22,8 @@ module RExchange
22
22
  :mobile => 'urn:schemas:contacts:mobile',
23
23
  :email => 'urn:schemas:contacts:email1',
24
24
  :website => 'urn:schemas:contacts:businesshomepage',
25
- :company => 'urn:schemas:contacts:o'
25
+ :company => 'urn:schemas:contacts:o',
26
+ :notes => 'urn:schemas:httpmail:textdescription'
26
27
 
27
28
  end
28
29
  end
@@ -4,6 +4,8 @@ require 'rexchange/dav_search_request'
4
4
  require 'rexchange/message'
5
5
  require 'rexchange/contact'
6
6
  require 'rexchange/appointment'
7
+ require 'rexchange/note'
8
+ require 'rexchange/task'
7
9
 
8
10
  module RExchange
9
11
 
@@ -29,7 +29,7 @@ module RExchange
29
29
  @session.uri.path.ensure_ends_with('/') + folder.to_s.ensure_ends_with('/') + source.split('/').last
30
30
  end
31
31
 
32
- $log.debug "move_to: source => \"#{source}\", destination => \"#{destination}\""
32
+ # $log.debug "move_to: source => \"#{source}\", destination => \"#{destination}\""
33
33
  DavMoveRequest.execute(@session, source, destination)
34
34
  end
35
35
 
@@ -0,0 +1,16 @@
1
+ require 'rexchange/generic_item'
2
+
3
+ module RExchange
4
+ class Note < GenericItem
5
+
6
+ set_folder_type 'note'
7
+
8
+ attribute_mappings :displayname => 'DAV:displayname',
9
+ :created_at => 'DAV:creationdate',
10
+ :subject =>'urn:schemas:httpmail:subject',
11
+ :body => 'urn:schemas:httpmail:textdescription'
12
+
13
+ end
14
+
15
+
16
+ end
@@ -0,0 +1,26 @@
1
+ require 'rexchange/generic_item'
2
+
3
+ module RExchange
4
+ class Task < GenericItem
5
+
6
+ set_folder_type 'task'
7
+
8
+ attribute_mappings :displayname => 'DAV:displayname',
9
+ :created_at => 'DAV:creationdate',
10
+ :subject =>'urn:schemas:httpmail:subject',
11
+ :body => 'urn:schemas:httpmail:textdescription',
12
+ :percent_complete =>'http://schemas.microsoft.com/exchange/tasks/percentcomplete',
13
+ :owner =>'http://schemas.microsoft.com/exchange/tasks/owner',
14
+ :is_complete =>'http://schemas.microsoft.com/exchange/tasks/is_complete',
15
+ :date_start =>'http://schemas.microsoft.com/exchange/tasks/dtstart',
16
+ :date_due =>'http://schemas.microsoft.com/exchange/tasks/dtdue',
17
+ :actual_effort =>'http://schemas.microsoft.com/exchange/tasks/actualeffort',
18
+ :estimated_effort =>'http://schemas.microsoft.com/exchange/tasks/estimatedeffort',
19
+ :priority =>'http://schemas.microsoft.com/mapi/priority',
20
+ :status =>'http://schemas.microsoft.com/exchange/tasks/status',
21
+ :state =>'http://schemas.microsoft.com/exchange/tasks/state'
22
+
23
+ end
24
+
25
+
26
+ end
metadata CHANGED
@@ -3,8 +3,8 @@ 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.1
7
- date: 2007-01-05 00:00:00 -06:00
6
+ version: 0.3.2
7
+ date: 2007-01-09 00:00:00 -06:00
8
8
  summary: A simple wrapper around Microsoft Exchange Server's WebDAV API
9
9
  require_paths:
10
10
  - lib
@@ -33,6 +33,7 @@ files:
33
33
  - README
34
34
  - CHANGELOG
35
35
  - RAKEFILE
36
+ - MIT-LICENSE
36
37
  - lib/rexchange.rb
37
38
  - lib/r_exchange.rb
38
39
  - lib/rexchange/appointment.rb
@@ -44,7 +45,9 @@ files:
44
45
  - lib/rexchange/folder.rb
45
46
  - lib/rexchange/generic_item.rb
46
47
  - lib/rexchange/message.rb
48
+ - lib/rexchange/note.rb
47
49
  - lib/rexchange/session.rb
50
+ - lib/rexchange/task.rb
48
51
  - test/functional.rb
49
52
  test_files: []
50
53
 
@@ -57,6 +60,7 @@ extra_rdoc_files:
57
60
  - README
58
61
  - CHANGELOG
59
62
  - RAKEFILE
63
+ - MIT-LICENSE
60
64
  executables: []
61
65
 
62
66
  extensions: []