seven1m-onebody-updateagent 0.1.0 → 0.1.1
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 +9 -5
- data/lib/updateagent/converters/acs_converter.rb +1 -0
- metadata +1 -1
data/README.markdown
CHANGED
@@ -6,6 +6,8 @@ Ruby gem that pushes data from a membership data source to a remote OneBody inst
|
|
6
6
|
Download and Install
|
7
7
|
--------------------
|
8
8
|
|
9
|
+
Install [Ruby](http://ruby-lang.org) if you don't already have it.
|
10
|
+
|
9
11
|
Run the following command ("sudo" may be required in some environments):
|
10
12
|
|
11
13
|
gem install seven1m-onebody-updateagent -s http://gems.github.com
|
@@ -19,13 +21,14 @@ Configuration
|
|
19
21
|
Your "site" address will probably be something like "http://example.com" or
|
20
22
|
"http://yoursite.beonebody.com".
|
21
23
|
|
22
|
-
You can get your user api key from OneBody (you must be a super
|
24
|
+
You can get your user api key from OneBody (you must be a super admin) by running the following
|
23
25
|
command (on the server):
|
24
26
|
|
25
27
|
cd /path/to/onebody
|
26
28
|
rake onebody:api:key EMAIL=admin@example.com
|
27
29
|
|
28
|
-
If your instance is hosted at <http://beonebody.com>, you may email <support@beonebody.com
|
30
|
+
If your instance is hosted at <http://beonebody.com>, you may email <support@beonebody.com>
|
31
|
+
to get your api key.
|
29
32
|
|
30
33
|
Preparation
|
31
34
|
-----------
|
@@ -36,8 +39,9 @@ export your people and family data to a single comma separated values (CSV) file
|
|
36
39
|
Duplicate family data should be present for each member of the same family.
|
37
40
|
|
38
41
|
The first row of the file is the attribute headings, and must match the attributes available:
|
39
|
-
* http://github.com/seven1m/onebody/tree/master/app/models/person.rb
|
40
|
-
* http://github.com/seven1m/onebody/tree/master/app/models/family.rb
|
42
|
+
* [Person Attributes](http://github.com/seven1m/onebody/tree/master/app/models/person.rb)
|
43
|
+
* [Family Attributes](http://github.com/seven1m/onebody/tree/master/app/models/family.rb)
|
44
|
+
(prefix each attribute with "family_")
|
41
45
|
|
42
46
|
Not all attributes are required.
|
43
47
|
|
@@ -67,7 +71,7 @@ To run UpdateAgent:
|
|
67
71
|
|
68
72
|
update_onebody -c path/to/config.yml path/to/people.yml
|
69
73
|
|
70
|
-
If you plan to
|
74
|
+
If you plan to schedule UpdateAgent to run periodically without human intervention,
|
71
75
|
you'll want to at least use the `-y` switch, which assumes *yes* to any questions:
|
72
76
|
|
73
77
|
update_onebody -c path/to/config.yml -y path/to/people.yml
|
@@ -43,6 +43,7 @@ class ACSConverter
|
|
43
43
|
new_record['visible_to_everyone'] = CONVERTER_CONFIG['visible'].include?(record['MemberStatus'])
|
44
44
|
new_record['visible_on_printed_directory'] = CONVERTER_CONFIG['visible_on_printed_directory'].include?(record['MemberStatus'])
|
45
45
|
new_record['full_access'] = CONVERTER_CONFIG['full_access'].include?(record['MemberStatus'])
|
46
|
+
new_record['can_sign_in'] = CONVERTER_CONFIG['full_access'].include?(record['MemberStatus'])
|
46
47
|
new_record['email'] = record['HomeEmailAddr'].to_s.any? ? record['HomeEmailAddr'] : record['BusinessEmailAddr']
|
47
48
|
end
|
48
49
|
end
|