onebody-updateagent 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.1
@@ -19,8 +19,8 @@ class PeopleUpdater < UpdateAgent
19
19
  if person.has_key?('email')
20
20
  person['email_changed'] = false
21
21
  end
22
- if person.has_key?('relationships')
23
- person['relationships_hash'] = Digest::SHA1.hexdigest(person['relationships'].split(',').sort.join(','))
22
+ if person.has_key?('relationships') and !(rels = person['relationships'].split(',').sort.join(',')).blank?
23
+ person['relationships_hash'] = Digest::SHA1.hexdigest(rels)
24
24
  end
25
25
  # link to cached family or cache new family
26
26
  if existing_family = family_data[family['legacy_id']]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebody-updateagent
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Morgan