viewpoint2 1.3.1 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d18f37f5ed04d53246048ae54ce67658b7decb92
4
- data.tar.gz: b69d2990a0acc86127b329009d108b5126c0c5ad
3
+ metadata.gz: ecf22b9d52f5cf2ec3c3b91204db2153f0650aec
4
+ data.tar.gz: 17852305be06e5e7194615fc916dd848d761cbc7
5
5
  SHA512:
6
- metadata.gz: b37365af949849688abda80aabfcbfa5f77faf0ffc7932dd626e7afec82447f37c33685d74bc2396ff686ef07b20e2ea7ebed8c84b53a6d0c80b0d37c8733029
7
- data.tar.gz: 658bf1a2f8f7245a036ee3413ce98a3fe28f823da4839da5925902787dd14ba10e3323bb82813f16f373701b0f487110caca73a1f780dbf1c373ed40ef1047ee
6
+ metadata.gz: b504e5d7ba112be9f0cf623eac4aa92f2f4d2a582fc0ed22a8b9f6cd3b4e40b0a1dcbce9fb97e307dfd97867303ffa6f7ca1dd0f4729a49806d20b412ecca9f4
7
+ data.tar.gz: cd0308ac197fa664cb7637e429dd5ccf6c3bff975a8204ff822ca82ff737f28250022aee7b98554403e7ec72f75a6a5033d99ecaeea32e7b27c30fc5e0d3f08f
@@ -8,7 +8,7 @@ module Viewpoint::EWS::Types
8
8
  # @param [DateTime] start_date the time to start fetching Items from
9
9
  # @param [DateTime] end_date the time to stop fetching Items from
10
10
  def items_between(start_date, end_date, opts={})
11
- items do |obj|
11
+ items(opts) do |obj|
12
12
  obj.restriction = { :and =>
13
13
  [
14
14
  {:is_greater_than_or_equal_to =>
@@ -69,6 +69,11 @@ module Viewpoint::EWS::Types
69
69
 
70
70
  # Remap attributes because ews_builder #dispatch_field_item! uses #build_xml!
71
71
  item_attributes = item.to_ews_item.map do |name, value|
72
+
73
+ # Force HTML if attribute is body
74
+ if name == :body
75
+ value[:body_type] = 'HTML'
76
+ end
72
77
  if value.is_a? String
73
78
  {name => {text: value}}
74
79
  elsif value.is_a? Hash
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.1
4
+ version: 1.3.2
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-19 00:00:00.000000000 Z
11
+ date: 2016-07-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri