viewpoint_reloaded 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/Changelog.txt +1004 -0
- data/README.md +201 -0
- data/TODO +17 -0
- data/lib/ews/calendar_accessors.rb +34 -0
- data/lib/ews/connection.rb +130 -0
- data/lib/ews/connection_helper.rb +35 -0
- data/lib/ews/convert_accessors.rb +56 -0
- data/lib/ews/errors.rb +56 -0
- data/lib/ews/ews_client.rb +103 -0
- data/lib/ews/exceptions/exceptions.rb +61 -0
- data/lib/ews/folder_accessors.rb +264 -0
- data/lib/ews/impersonation.rb +30 -0
- data/lib/ews/item_accessors.rb +231 -0
- data/lib/ews/mailbox_accessors.rb +92 -0
- data/lib/ews/message_accessors.rb +93 -0
- data/lib/ews/push_subscription_accessors.rb +33 -0
- data/lib/ews/room_accessors.rb +48 -0
- data/lib/ews/roomlist_accessors.rb +47 -0
- data/lib/ews/soap.rb +64 -0
- data/lib/ews/soap/builders/ews_builder.rb +1266 -0
- data/lib/ews/soap/ews_response.rb +84 -0
- data/lib/ews/soap/ews_soap_availability_response.rb +58 -0
- data/lib/ews/soap/ews_soap_free_busy_response.rb +119 -0
- data/lib/ews/soap/ews_soap_response.rb +103 -0
- data/lib/ews/soap/ews_soap_room_response.rb +53 -0
- data/lib/ews/soap/ews_soap_roomlist_response.rb +54 -0
- data/lib/ews/soap/exchange_availability.rb +61 -0
- data/lib/ews/soap/exchange_data_services.rb +780 -0
- data/lib/ews/soap/exchange_notification.rb +146 -0
- data/lib/ews/soap/exchange_synchronization.rb +93 -0
- data/lib/ews/soap/exchange_time_zones.rb +56 -0
- data/lib/ews/soap/exchange_user_configuration.rb +33 -0
- data/lib/ews/soap/exchange_web_service.rb +264 -0
- data/lib/ews/soap/parsers/ews_parser.rb +43 -0
- data/lib/ews/soap/parsers/ews_sax_document.rb +70 -0
- data/lib/ews/soap/response_message.rb +80 -0
- data/lib/ews/soap/responses/create_attachment_response_message.rb +47 -0
- data/lib/ews/soap/responses/create_item_response_message.rb +25 -0
- data/lib/ews/soap/responses/find_item_response_message.rb +80 -0
- data/lib/ews/soap/responses/get_events_response_message.rb +53 -0
- data/lib/ews/soap/responses/send_notification_response_message.rb +59 -0
- data/lib/ews/soap/responses/subscribe_response_message.rb +35 -0
- data/lib/ews/soap/responses/sync_folder_hierarchy_response_message.rb +36 -0
- data/lib/ews/soap/responses/sync_folder_items_response_message.rb +36 -0
- data/lib/ews/templates/calendar_item.rb +79 -0
- data/lib/ews/templates/forward_item.rb +24 -0
- data/lib/ews/templates/message.rb +73 -0
- data/lib/ews/templates/reply_to_item.rb +25 -0
- data/lib/ews/templates/task.rb +74 -0
- data/lib/ews/types.rb +194 -0
- data/lib/ews/types/attachment.rb +77 -0
- data/lib/ews/types/attendee.rb +27 -0
- data/lib/ews/types/calendar_folder.rb +50 -0
- data/lib/ews/types/calendar_item.rb +130 -0
- data/lib/ews/types/contact.rb +7 -0
- data/lib/ews/types/contacts_folder.rb +8 -0
- data/lib/ews/types/copied_event.rb +51 -0
- data/lib/ews/types/created_event.rb +24 -0
- data/lib/ews/types/deleted_event.rb +24 -0
- data/lib/ews/types/distribution_list.rb +7 -0
- data/lib/ews/types/event.rb +62 -0
- data/lib/ews/types/export_items_response_message.rb +52 -0
- data/lib/ews/types/file_attachment.rb +65 -0
- data/lib/ews/types/folder.rb +60 -0
- data/lib/ews/types/free_busy_changed_event.rb +24 -0
- data/lib/ews/types/generic_folder.rb +418 -0
- data/lib/ews/types/item.rb +441 -0
- data/lib/ews/types/item_attachment.rb +84 -0
- data/lib/ews/types/item_field_uri_map.rb +208 -0
- data/lib/ews/types/mailbox_user.rb +156 -0
- data/lib/ews/types/meeting_cancellation.rb +7 -0
- data/lib/ews/types/meeting_message.rb +7 -0
- data/lib/ews/types/meeting_request.rb +7 -0
- data/lib/ews/types/meeting_response.rb +7 -0
- data/lib/ews/types/message.rb +7 -0
- data/lib/ews/types/modified_event.rb +48 -0
- data/lib/ews/types/moved_event.rb +51 -0
- data/lib/ews/types/new_mail_event.rb +24 -0
- data/lib/ews/types/out_of_office.rb +147 -0
- data/lib/ews/types/search_folder.rb +8 -0
- data/lib/ews/types/status_event.rb +39 -0
- data/lib/ews/types/task.rb +41 -0
- data/lib/ews/types/tasks_folder.rb +27 -0
- data/lib/viewpoint.rb +109 -0
- data/lib/viewpoint/logging.rb +27 -0
- data/lib/viewpoint/logging/config.rb +24 -0
- data/lib/viewpoint/string_utils.rb +76 -0
- metadata +192 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
=begin
|
2
|
+
This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
3
|
+
|
4
|
+
Copyright © 2011 Dan Wanek <dan.wanek@gmail.com>
|
5
|
+
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
you may not use this file except in compliance with the License.
|
8
|
+
You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
=end
|
18
|
+
|
19
|
+
module Viewpoint
|
20
|
+
module EWS
|
21
|
+
attr_reader :logger
|
22
|
+
|
23
|
+
def self.root_logger
|
24
|
+
Logging.logger.root
|
25
|
+
end
|
26
|
+
end # EWS
|
27
|
+
end
|
@@ -0,0 +1,24 @@
|
|
1
|
+
=begin
|
2
|
+
This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
3
|
+
|
4
|
+
Copyright © 2011 Dan Wanek <dan.wanek@gmail.com>
|
5
|
+
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
you may not use this file except in compliance with the License.
|
8
|
+
You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
=end
|
18
|
+
|
19
|
+
module Viewpoint
|
20
|
+
module EWS
|
21
|
+
Logging.logger.root.level = :debug
|
22
|
+
Logging.logger.root.appenders = Logging.appenders.stdout
|
23
|
+
end # EWS
|
24
|
+
end
|
@@ -0,0 +1,76 @@
|
|
1
|
+
=begin
|
2
|
+
This file is part of Viewpoint; the Ruby library for Microsoft Exchange Web Services.
|
3
|
+
|
4
|
+
Copyright © 2011 Dan Wanek <dan.wanek@gmail.com>
|
5
|
+
|
6
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
you may not use this file except in compliance with the License.
|
8
|
+
You may obtain a copy of the License at
|
9
|
+
|
10
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
|
12
|
+
Unless required by applicable law or agreed to in writing, software
|
13
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
See the License for the specific language governing permissions and
|
16
|
+
limitations under the License.
|
17
|
+
=end
|
18
|
+
|
19
|
+
module Viewpoint
|
20
|
+
|
21
|
+
class StringFormatException < ::Exception; end
|
22
|
+
|
23
|
+
# Collection of utility methods for working with Strings
|
24
|
+
module StringUtils
|
25
|
+
|
26
|
+
DURATION_RE = /
|
27
|
+
(?<start>P)
|
28
|
+
((?<weeks>\d+)W)?
|
29
|
+
((?<days>\d+)D)?
|
30
|
+
(?<time>T
|
31
|
+
((?<hours>\d+)H)?
|
32
|
+
((?<minutes>\d+)M)?
|
33
|
+
((?<seconds>\d+)S)?
|
34
|
+
)?
|
35
|
+
/x
|
36
|
+
|
37
|
+
def self.included(klass)
|
38
|
+
klass.extend StringUtils
|
39
|
+
end
|
40
|
+
|
41
|
+
private
|
42
|
+
|
43
|
+
# Change CamelCased strings to ruby_cased strings
|
44
|
+
# It uses the lookahead assertion ?= In this case it basically says match
|
45
|
+
# anything followed by a capital letter, but not the capital letter itself.
|
46
|
+
# @see http://www.pcre.org/pcre.txt The PCRE guide for more details
|
47
|
+
def ruby_case(input)
|
48
|
+
input.to_s.split(/(?=[A-Z])/).join('_').downcase
|
49
|
+
end
|
50
|
+
|
51
|
+
# Change a ruby_cased string to CamelCased
|
52
|
+
def camel_case(input)
|
53
|
+
input.to_s.split(/_/).map { |i|
|
54
|
+
i.sub(/^./) { |s| s.upcase }
|
55
|
+
}.join
|
56
|
+
end
|
57
|
+
|
58
|
+
# Convert an ISO8601 Duration format to seconds
|
59
|
+
# @see http://tools.ietf.org/html/rfc2445#section-4.3.6
|
60
|
+
# @param [String] input
|
61
|
+
# @return [nil,Fixnum] the number of seconds in this duration
|
62
|
+
# nil if there is no known duration
|
63
|
+
def iso8601_duration_to_seconds(input)
|
64
|
+
return nil if input.nil? || input.empty?
|
65
|
+
match_data = DURATION_RE.match(input)
|
66
|
+
raise(StringFormatException, "Invalid duration given") if match_data.nil?
|
67
|
+
duration = 0
|
68
|
+
duration += match_data[:weeks].to_i * 604800
|
69
|
+
duration += match_data[:days].to_i * 86400
|
70
|
+
duration += match_data[:hours].to_i * 3600
|
71
|
+
duration += match_data[:minutes].to_i * 60
|
72
|
+
duration += match_data[:seconds].to_i
|
73
|
+
end
|
74
|
+
|
75
|
+
end # StringUtils
|
76
|
+
end # Viewpoint
|
metadata
ADDED
@@ -0,0 +1,192 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: viewpoint_reloaded
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Dan Wanek
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-05-21 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: httpclient
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubyntlm
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: logging
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: 'A Ruby client access library for Microsoft Exchange Web Services (EWS). Examples
|
70
|
+
can be found here: http://distributed-frostbite.blogspot.com'
|
71
|
+
email: dan.wanek@gmail.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files:
|
75
|
+
- README.md
|
76
|
+
files:
|
77
|
+
- Changelog.txt
|
78
|
+
- README.md
|
79
|
+
- TODO
|
80
|
+
- lib/ews/calendar_accessors.rb
|
81
|
+
- lib/ews/connection.rb
|
82
|
+
- lib/ews/connection_helper.rb
|
83
|
+
- lib/ews/convert_accessors.rb
|
84
|
+
- lib/ews/errors.rb
|
85
|
+
- lib/ews/ews_client.rb
|
86
|
+
- lib/ews/exceptions/exceptions.rb
|
87
|
+
- lib/ews/folder_accessors.rb
|
88
|
+
- lib/ews/impersonation.rb
|
89
|
+
- lib/ews/item_accessors.rb
|
90
|
+
- lib/ews/mailbox_accessors.rb
|
91
|
+
- lib/ews/message_accessors.rb
|
92
|
+
- lib/ews/push_subscription_accessors.rb
|
93
|
+
- lib/ews/room_accessors.rb
|
94
|
+
- lib/ews/roomlist_accessors.rb
|
95
|
+
- lib/ews/soap.rb
|
96
|
+
- lib/ews/soap/builders/ews_builder.rb
|
97
|
+
- lib/ews/soap/ews_response.rb
|
98
|
+
- lib/ews/soap/ews_soap_availability_response.rb
|
99
|
+
- lib/ews/soap/ews_soap_free_busy_response.rb
|
100
|
+
- lib/ews/soap/ews_soap_response.rb
|
101
|
+
- lib/ews/soap/ews_soap_room_response.rb
|
102
|
+
- lib/ews/soap/ews_soap_roomlist_response.rb
|
103
|
+
- lib/ews/soap/exchange_availability.rb
|
104
|
+
- lib/ews/soap/exchange_data_services.rb
|
105
|
+
- lib/ews/soap/exchange_notification.rb
|
106
|
+
- lib/ews/soap/exchange_synchronization.rb
|
107
|
+
- lib/ews/soap/exchange_time_zones.rb
|
108
|
+
- lib/ews/soap/exchange_user_configuration.rb
|
109
|
+
- lib/ews/soap/exchange_web_service.rb
|
110
|
+
- lib/ews/soap/parsers/ews_parser.rb
|
111
|
+
- lib/ews/soap/parsers/ews_sax_document.rb
|
112
|
+
- lib/ews/soap/response_message.rb
|
113
|
+
- lib/ews/soap/responses/create_attachment_response_message.rb
|
114
|
+
- lib/ews/soap/responses/create_item_response_message.rb
|
115
|
+
- lib/ews/soap/responses/find_item_response_message.rb
|
116
|
+
- lib/ews/soap/responses/get_events_response_message.rb
|
117
|
+
- lib/ews/soap/responses/send_notification_response_message.rb
|
118
|
+
- lib/ews/soap/responses/subscribe_response_message.rb
|
119
|
+
- lib/ews/soap/responses/sync_folder_hierarchy_response_message.rb
|
120
|
+
- lib/ews/soap/responses/sync_folder_items_response_message.rb
|
121
|
+
- lib/ews/templates/calendar_item.rb
|
122
|
+
- lib/ews/templates/forward_item.rb
|
123
|
+
- lib/ews/templates/message.rb
|
124
|
+
- lib/ews/templates/reply_to_item.rb
|
125
|
+
- lib/ews/templates/task.rb
|
126
|
+
- lib/ews/types.rb
|
127
|
+
- lib/ews/types/attachment.rb
|
128
|
+
- lib/ews/types/attendee.rb
|
129
|
+
- lib/ews/types/calendar_folder.rb
|
130
|
+
- lib/ews/types/calendar_item.rb
|
131
|
+
- lib/ews/types/contact.rb
|
132
|
+
- lib/ews/types/contacts_folder.rb
|
133
|
+
- lib/ews/types/copied_event.rb
|
134
|
+
- lib/ews/types/created_event.rb
|
135
|
+
- lib/ews/types/deleted_event.rb
|
136
|
+
- lib/ews/types/distribution_list.rb
|
137
|
+
- lib/ews/types/event.rb
|
138
|
+
- lib/ews/types/export_items_response_message.rb
|
139
|
+
- lib/ews/types/file_attachment.rb
|
140
|
+
- lib/ews/types/folder.rb
|
141
|
+
- lib/ews/types/free_busy_changed_event.rb
|
142
|
+
- lib/ews/types/generic_folder.rb
|
143
|
+
- lib/ews/types/item.rb
|
144
|
+
- lib/ews/types/item_attachment.rb
|
145
|
+
- lib/ews/types/item_field_uri_map.rb
|
146
|
+
- lib/ews/types/mailbox_user.rb
|
147
|
+
- lib/ews/types/meeting_cancellation.rb
|
148
|
+
- lib/ews/types/meeting_message.rb
|
149
|
+
- lib/ews/types/meeting_request.rb
|
150
|
+
- lib/ews/types/meeting_response.rb
|
151
|
+
- lib/ews/types/message.rb
|
152
|
+
- lib/ews/types/modified_event.rb
|
153
|
+
- lib/ews/types/moved_event.rb
|
154
|
+
- lib/ews/types/new_mail_event.rb
|
155
|
+
- lib/ews/types/out_of_office.rb
|
156
|
+
- lib/ews/types/search_folder.rb
|
157
|
+
- lib/ews/types/status_event.rb
|
158
|
+
- lib/ews/types/task.rb
|
159
|
+
- lib/ews/types/tasks_folder.rb
|
160
|
+
- lib/viewpoint.rb
|
161
|
+
- lib/viewpoint/logging.rb
|
162
|
+
- lib/viewpoint/logging/config.rb
|
163
|
+
- lib/viewpoint/string_utils.rb
|
164
|
+
homepage: http://github.com/zenchild/Viewpoint
|
165
|
+
licenses: []
|
166
|
+
metadata: {}
|
167
|
+
post_install_message:
|
168
|
+
rdoc_options:
|
169
|
+
- "-x"
|
170
|
+
- test/
|
171
|
+
- "-x"
|
172
|
+
- examples/
|
173
|
+
require_paths:
|
174
|
+
- lib
|
175
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
176
|
+
requirements:
|
177
|
+
- - ">="
|
178
|
+
- !ruby/object:Gem::Version
|
179
|
+
version: '0'
|
180
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
|
+
requirements:
|
182
|
+
- - ">="
|
183
|
+
- !ruby/object:Gem::Version
|
184
|
+
version: '0'
|
185
|
+
requirements: []
|
186
|
+
rubyforge_project:
|
187
|
+
rubygems_version: 2.2.2
|
188
|
+
signing_key:
|
189
|
+
specification_version: 4
|
190
|
+
summary: A Ruby client access library for Microsoft Exchange Web Services (EWS)
|
191
|
+
test_files: []
|
192
|
+
has_rdoc:
|