viewpoint2 1.3.0 → 1.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ews/soap/builders/ews_builder.rb +17 -5
- data/lib/ews/soap/exchange_data_services.rb +2 -0
- data/lib/ews/templates/message.rb +3 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d18f37f5ed04d53246048ae54ce67658b7decb92
|
4
|
+
data.tar.gz: b69d2990a0acc86127b329009d108b5126c0c5ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b37365af949849688abda80aabfcbfa5f77faf0ffc7932dd626e7afec82447f37c33685d74bc2396ff686ef07b20e2ea7ebed8c84b53a6d0c80b0d37c8733029
|
7
|
+
data.tar.gz: 658bf1a2f8f7245a036ee3413ce98a3fe28f823da4839da5925902787dd14ba10e3323bb82813f16f373701b0f487110caca73a1f780dbf1c373ed40ef1047ee
|
@@ -156,6 +156,7 @@ module Viewpoint::EWS::SOAP
|
|
156
156
|
# Build the BaseShape element
|
157
157
|
# @see http://msdn.microsoft.com/en-us/library/aa580545.aspx
|
158
158
|
def base_shape!(base_shape)
|
159
|
+
|
159
160
|
@nbuild[NS_EWS_TYPES].BaseShape(camel_case(base_shape))
|
160
161
|
end
|
161
162
|
|
@@ -818,13 +819,19 @@ module Viewpoint::EWS::SOAP
|
|
818
819
|
|
819
820
|
def message!(item)
|
820
821
|
nbuild[NS_EWS_TYPES].Message {
|
821
|
-
|
822
|
-
extended_properties! item.delete(:extended_properties)
|
823
|
-
end
|
822
|
+
last_k = nil
|
824
823
|
item.each_pair {|k,v|
|
825
|
-
|
824
|
+
if k != :extended_properties
|
825
|
+
if last_k == :importance
|
826
|
+
if item[:extended_properties]
|
827
|
+
extended_properties! item.delete(:extended_properties)
|
828
|
+
end
|
829
|
+
end
|
830
|
+
self.send("#{k}!", v)
|
831
|
+
end
|
832
|
+
last_k = k
|
826
833
|
}
|
827
|
-
|
834
|
+
}
|
828
835
|
end
|
829
836
|
|
830
837
|
def is_read!(read)
|
@@ -935,6 +942,11 @@ module Viewpoint::EWS::SOAP
|
|
935
942
|
nbuild[NS_EWS_TYPES].Subject(sub)
|
936
943
|
end
|
937
944
|
|
945
|
+
|
946
|
+
def item_class!(sub)
|
947
|
+
nbuild[NS_EWS_TYPES].ItemClass(sub)
|
948
|
+
end
|
949
|
+
|
938
950
|
def importance!(sub)
|
939
951
|
nbuild[NS_EWS_TYPES].Importance(sub)
|
940
952
|
end
|
@@ -22,6 +22,7 @@ module Viewpoint::EWS
|
|
22
22
|
|
23
23
|
|
24
24
|
def init_defaults!
|
25
|
+
self.item_class ||= nil
|
25
26
|
self.subject ||= nil
|
26
27
|
self.body ||= nil
|
27
28
|
self.body_type ||= 'Text'
|
@@ -50,6 +51,8 @@ module Viewpoint::EWS
|
|
50
51
|
end
|
51
52
|
|
52
53
|
msg = {}
|
54
|
+
msg[:extended_properties] = extended_properties unless extended_properties.empty?
|
55
|
+
msg[:item_class] = item_class if item_class
|
53
56
|
msg[:subject] = subject if subject
|
54
57
|
msg[:body] = {text: body, body_type: body_type} if body
|
55
58
|
|
@@ -66,7 +69,6 @@ module Viewpoint::EWS
|
|
66
69
|
|
67
70
|
msg[:is_read] = is_read
|
68
71
|
|
69
|
-
msg[:extended_properties] = extended_properties unless extended_properties.empty?
|
70
72
|
|
71
73
|
[ews_opts, msg]
|
72
74
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: viewpoint2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Wanek
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-07-
|
11
|
+
date: 2016-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|