viewpoint 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
@@ -101,7 +101,6 @@ module Viewpoint
101
101
  # :home_fax, :home_phone, :home_phone2, :isdn, :mobile_phone, :other_fax, :other_telephone, :pager, :primary_phone,
102
102
  # :radio_phone, :telex, :tty_tdd_phone
103
103
  # @param [String] phone_number The phone number
104
- # @TODO: Check to make sure the passed type is valid
105
104
  def set_phone_number(phone_type, phone_number)
106
105
  valid_types = [:assistant_phone, :business_fax, :business_phone, :business_phone2, :callback, :car_phone, :company_main_phone,
107
106
  :home_fax, :home_phone, :home_phone2, :isdn, :mobile_phone, :other_fax, :other_telephone, :pager, :primary_phone,
@@ -122,6 +121,7 @@ module Viewpoint
122
121
  # :business, :home, :other
123
122
  # @param [Hash] address the address elements to set. It may include the following keys
124
123
  # :street, :city, :state, :country_or_region, :postal_code
124
+ # @TODO check for empty address hash
125
125
  def set_address(address_type, address)
126
126
  valid_types = [:business, :home, :other]
127
127
  raise EwsError, "Invalid address type (#{address_type}) passed to Contact#set_address." unless valid_types.index address_type
@@ -215,6 +215,7 @@ module Viewpoint
215
215
 
216
216
  # Find Items
217
217
  def find_items(opts = {})
218
+ opts = opts.clone # clone the passed in object so we don't modify it in case it's being used in a loop
218
219
  item_shape = opts.has_key?(:item_shape) ? opts.delete(:item_shape) : {:base_shape => 'Default'}
219
220
  item_shape[:additional_properties] = {:field_uRI => ['item:ParentFolderId']}
220
221
  resp = (Viewpoint::EWS::EWS.instance).ews.find_item([@folder_id], 'Shallow', item_shape, opts)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: viewpoint
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.21
5
+ version: 0.1.22
6
6
  platform: ruby
7
7
  authors:
8
8
  - Dan Wanek
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-10 00:00:00 -06:00
13
+ date: 2011-04-04 00:00:00 -05:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency