kuali_toolbox 0.40 → 0.41

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 61426bf943a693faacbdd6e65b107492979b22ec
4
- data.tar.gz: e83c477f4620573a79375250ea88c15f60182ec9
3
+ metadata.gz: ff0fe7e4b41d157f2dbe3bcbd892eb81328b050e
4
+ data.tar.gz: 70060a8d700825d2dc643359a8526f52e0fc0407
5
5
  SHA512:
6
- metadata.gz: 8e29fae6e9c6caa6ef52a7021c875e9d900b213b2dcc743b61d2ef865c64a48a2127b70470a8d757c15615fd751dbd43b33e4d09c5bc6ea8ee5001b45a5b4cb6
7
- data.tar.gz: ecd14a53bc9403fd4eb49fd6aa952a3dec074827e1a0c501b813a3ae96a88281b79faeaf2a8c30f54930328cc8a8e3b89cfaf9618d97c305ee6ae7bcf53c446f
6
+ metadata.gz: 6dc410080bf76e551112d3d628e881ba40ce4ae00194bccdc7a4757829411279b9d88bd7c9c426765d8c667a1afd9348c2193a50b4bf6e666abd499a0a94cf8d
7
+ data.tar.gz: ed51b281d44b15579f43fc485d142401bad7a50067dfb6433786d0e2c988b2955e62f2434a9b9f945d4f5cce08c42fb3df576d4891f479192daa40604905b84e
@@ -96,9 +96,13 @@ def buildName(row)
96
96
  nm[:lastName] = last_nm unless last_nm.empty?
97
97
  nm[:suffix] = suffix_nm unless suffix_nm.empty?
98
98
  nm[:title] = title_nm unless title_nm.empty?
99
- nm[:default] = true
100
- nm[:active] = true
101
- return nm.empty? ? nil : nm
99
+ if (!nm.empty?)
100
+ nm[:default] = true
101
+ nm[:active] = true
102
+ return nm
103
+ else
104
+ return nil
105
+ end
102
106
  end
103
107
 
104
108
  def buildExtendedAttributes(row)
@@ -170,8 +174,6 @@ def buildAffiliations(row)
170
174
  campus = ETL.parse_string row[:campus_cd], name: 'CAMPUS_CD', length: 2
171
175
  aff[:affiliationType] = afltn_typ_cd unless afltn_typ_cd.empty?
172
176
  aff[:campus] = campus unless campus.empty?
173
- aff[:default] = true
174
- aff[:active] = true
175
177
 
176
178
  emp = {}
177
179
  emp_stat_cd = GRM.parse_emp_stat_cd row[:emp_stat_cd]
@@ -184,13 +186,19 @@ def buildAffiliations(row)
184
186
  emp[:baseSalaryAmount] = base_slry_amt unless base_slry_amt.nil?
185
187
  emp[:primaryDepartment] = prmry_dept_cd unless prmry_dept_cd.empty?
186
188
  emp[:employeeId] = emp_id unless emp_id.empty?
187
- emp[:primaryEmployment] = true
188
189
 
189
190
  if (!emp.empty?)
191
+ emp[:primaryEmployment] = true
190
192
  aff[:employment] = []
191
193
  aff[:employment].push(emp);
192
194
  end
193
- return aff.empty? ? nil : aff
195
+ if (!aff.empty?)
196
+ aff[:default] = true
197
+ aff[:active] = true
198
+ return aff
199
+ else
200
+ return nil
201
+ end
194
202
  end
195
203
 
196
204
  def buildAddress(row)
@@ -211,8 +219,12 @@ def buildAddress(row)
211
219
  address[:stateOrProvince] = state_pvc_cd unless state_pvc_cd.empty?
212
220
  address[:postalCode] = postal_cd unless postal_cd.empty?
213
221
  address[:country] = postal_cntry_cd unless postal_cntry_cd.empty?
214
- address[:default] = true
215
- return address.empty? ? nil : address
222
+ if (!address.empty?)
223
+ address[:default] = true
224
+ return address
225
+ else
226
+ return nil
227
+ end
216
228
  end
217
229
 
218
230
  def buildPhone(row)
@@ -225,9 +237,13 @@ def buildPhone(row)
225
237
  ph[:phoneNumber] = phone_nbr unless phone_nbr.empty?
226
238
  ph[:extension] = phone_extn_nbr unless phone_extn_nbr.empty?
227
239
  ph[:country] = phone_cntry_cd unless phone_cntry_cd.empty?
228
- ph[:default] = true
229
- ph[:active] = true
230
- return ph.empty? ? nil : ph
240
+ if (!ph.empty?)
241
+ ph[:default] = true
242
+ ph[:active] = true
243
+ return ph
244
+ else
245
+ return nil
246
+ end
231
247
  end
232
248
 
233
249
  def buildAppointment(row)
@@ -257,9 +273,13 @@ def buildEmail(row)
257
273
  email_addr = GRM.parse_email_address( row[:email_addr] )
258
274
  em[:emailType] = email_typ_cd unless email_typ_cd.empty?
259
275
  em[:emailAddress] = email_addr unless email_addr.empty?
260
- em[:default] = true
261
- em[:active] = true
262
- return em.empty? ? nil : em
276
+ if (!em.empty?)
277
+ em[:default] = true
278
+ em[:active] = true
279
+ return em
280
+ else
281
+ return nil
282
+ end
263
283
  end
264
284
 
265
285
  def addToListIfNotIncluded(item, list)
@@ -16,5 +16,5 @@
16
16
 
17
17
  module KualiCo
18
18
  # The gem version number.
19
- VERSION = "0.40"
19
+ VERSION = "0.41"
20
20
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kuali_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.40'
4
+ version: '0.41'
5
5
  platform: ruby
6
6
  authors:
7
7
  - KualiCo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-08 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: builder