insightly 0.2.4 → 0.2.5

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.
@@ -7,7 +7,7 @@ module Insightly
7
7
  @data["ADDRESSES"] = list.collect {|a| a.remote_data}
8
8
  end
9
9
  def add_address(address)
10
-
10
+ @data["ADDRESSES"] ||= []
11
11
  @data["ADDRESSES"].each do |a|
12
12
  if address.same_address?(Insightly::Address.build(a))
13
13
 
@@ -7,6 +7,7 @@ module Insightly
7
7
  @data["CONTACTINFOS"] = list.collect {|a| a.remote_data}
8
8
  end
9
9
  def add_contact_info(contact_info)
10
+ @data["CONTACTINFOS"] ||= []
10
11
  @data["CONTACTINFOS"] << contact_info.remote_data
11
12
  true
12
13
  end
@@ -7,6 +7,7 @@ module Insightly
7
7
  @data["LINKS"] = list.collect {|a| fix_for_link(a).remote_data}
8
8
  end
9
9
  def add_link(link)
10
+ @data["LINKS"] ||= []
10
11
  @data["LINKS"] << fix_for_link(link).remote_data
11
12
  true
12
13
  end
@@ -7,6 +7,7 @@ module Insightly
7
7
  @data["TASKLINKS"] = list.collect {|a| fix_for_link(a).remote_data}
8
8
  end
9
9
  def add_task_link(link)
10
+ @data["TASKLINKS"] ||= []
10
11
  @data["TASKLINKS"] << fix_for_link(link).remote_data
11
12
  true
12
13
  end
@@ -4,7 +4,7 @@ module Insightly
4
4
  module Version
5
5
  Major = 0
6
6
  Minor = 2
7
- Tiny = 4
7
+ Tiny = 5
8
8
  String = "#{Major}.#{Minor}.#{Tiny}"
9
9
  end
10
10
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: insightly
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 5
10
+ version: 0.2.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dirk Elmendorf