onebody-updateagent 0.5.3 → 0.5.4

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.
data/README.markdown CHANGED
@@ -52,6 +52,7 @@ the OneBody database) as a starting point.
52
52
 
53
53
  Use the following attributes to track the identity/foreign keys from your existing membership
54
54
  management database. Do *not* include "id" and "family_id" columns.
55
+
55
56
  * legacy\_id
56
57
  * legacy\_family\_id
57
58
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.3
1
+ 0.5.4
@@ -49,6 +49,7 @@ class UpdateAgent
49
49
  else
50
50
  begin
51
51
  value = DateTime.parse(value)
52
+ value = DateTime.parse(value.strftime('1900-%m-%d %H:%M')) if value.year == 0
52
53
  rescue ArgumentError
53
54
  puts "Invalid date in #{filename} record #{index} (#{key}) - #{value}"
54
55
  exit(1)
@@ -19,7 +19,7 @@ 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') and !(rels = person['relationships'].split(',').sort.join(',')).blank?
22
+ if person.has_key?('relationships') and rels = person['relationships'].split(',').sort.join(',')
23
23
  person['relationships_hash'] = Digest::SHA1.hexdigest(rels)
24
24
  end
25
25
  # link to cached family or cache new family
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onebody-updateagent
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 3
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 5
9
- - 3
10
- version: 0.5.3
9
+ - 4
10
+ version: 0.5.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tim Morgan
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-04 00:00:00 -05:00
18
+ date: 2010-09-14 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency