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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f7c6bc7ab0a66ba5048d00c1b970c55f46547818
4
- data.tar.gz: dfc1d33439763b8fd8d11b729e6440a2565de503
3
+ metadata.gz: d18f37f5ed04d53246048ae54ce67658b7decb92
4
+ data.tar.gz: b69d2990a0acc86127b329009d108b5126c0c5ad
5
5
  SHA512:
6
- metadata.gz: a7903209dff406fdd9fb9eb68bb2b8c1b9586394cde6a8f59dc1e64c383bed4e54115284e9a52b2e3adf4bb27ba26d62059ed2efac1eccf5c164b6cabcc0b931
7
- data.tar.gz: aba3ad47e9951fc7a2c247c3fc28133fddac8180f7d2315ce9099fb104bdfb66050a3c019e20640b7c72ee4cbec6bd9c8d2cb96a7fd9bace536d5886ff613e62
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
- if item[:extended_properties]
822
- extended_properties! item.delete(:extended_properties)
823
- end
822
+ last_k = nil
824
823
  item.each_pair {|k,v|
825
- self.send("#{k}!", v)
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
@@ -1,5 +1,7 @@
1
+ require 'pp'
1
2
  module Viewpoint::EWS::SOAP
2
3
 
4
+
3
5
  # Exchange Data Service operations as listed in the EWS Documentation.
4
6
  # @see http://msdn.microsoft.com/en-us/library/bb409286.aspx
5
7
  module ExchangeDataServices
@@ -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.0
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-01 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri