osm 1.2.18.dev.1 → 1.2.18.dev.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +8 -8
  2. data/.gitignore +1 -0
  3. data/lib/osm/member.rb +7 -7
  4. data/version.rb +1 -1
  5. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZjQ5NjZiNGQwODJlMGU1YzJhZDc4NzY3OGEyZGYyMmJiNTg4NmJlMg==
4
+ YzQ3YWVlNzUzYTIzZjUyYWZjMzM0YmE2MWI1NTUzNTk3NjEyZmVmZg==
5
5
  data.tar.gz: !binary |-
6
- N2IxMjkxMjk0MWMwOTQ1YmFhNjcwZjAyMTQ1NzYxZTYzYmZjYzBiNQ==
6
+ NGNmNGM3YjVhYWM2NWViNTAzOWVmNDczMjhkYzEyODRjODUxZjQ4Ng==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZDVmNDVlNjBhYWNmZTY1YjgzMTY1MGRmMmE4YzFlMGU2OTc4NDQ2ZTJhMWE2
10
- NTYwOGQzZjExMjQ5YmRhNDFkMDc5MWEzOWZiMTk5ODY0Y2Y4YWZjN2JkYWM0
11
- MmM4ZmIzZjI0ZDQwNjBhYzY2NjZhMTZjZDdlNTlhZTRmYWUyMmU=
9
+ ZjQ2YmRiMzI5NmUyNjliOTcxMzE4OTY2OTE4MzZiNWZkYjgzNGUzODVjNjY5
10
+ N2I4NTk2NTM0MTUzYTZkNWY5YjQ3MmM1NDFhZDk4NDVkZmY4NzVmYWE5NzUx
11
+ NjM2M2ViMjFjNDI5ZDQ5YjAzMmIwMWU0ZGZmODM2NTJhMjg3NDE=
12
12
  data.tar.gz: !binary |-
13
- NjJkNGIyOTAxNWZjNzI1YzQ4NjI5ZDk4MWNlNzdkYmM1OWU5OGM1YjhlZTRh
14
- NTE2NTE3NjczODAzNThiMDg5M2E0ODIyYTYyZDRjNDNhZWY5OWEyZDdhOWY2
15
- YmQ2MjI5NmM5YzUzY2RjZDAzMjkzMGE3NDJiZTQ3MzJjMzM0M2U=
13
+ NThkMTIyMTk1MDQ3NGYxZjI0MDgzZmMyZTZjNTUzOTViMzE4NzcwYzJiZWEw
14
+ ZTIyZDk4OWIwOTE5ZTQwOWY2YTcxYTIxNWNmMDJiMDQ0OTI4ZjE0NGI3YTJh
15
+ NWE5NGRmMGQ5NjdmMjdkN2I5MzhjNDZhNzlmODU3YzU2ZDAxM2Q=
data/.gitignore CHANGED
@@ -5,6 +5,7 @@ Gemfile.lock
5
5
  # And because this is Ruby, ignore the following
6
6
  # (source: https://github.com/github/gitignore/blob/master/Ruby.gitignore):
7
7
 
8
+ todo.txt
8
9
  *.gem
9
10
  *.rbc
10
11
  .bundle
data/lib/osm/member.rb CHANGED
@@ -158,7 +158,7 @@ module Osm
158
158
 
159
159
  custom_labels = {}
160
160
  structure.each do |gid, group|
161
- columns = group['columns']
161
+ columns = group['columns'] || []
162
162
  columns.map!{ |c| [c['column_id'].to_i, c['label']] }
163
163
  columns.select!{ |a| (gid == GID_CUSTOM) || (a[0] > CORE_FIELD_IDS_FINISH_AT) }
164
164
  labels = DirtyHashy[ columns ]
@@ -206,7 +206,7 @@ module Osm
206
206
  receive_email_1: member_contact[CID_RECIEVE_EMAIL_1],
207
207
  receive_email_2: member_contact[CID_RECIEVE_EMAIL_2],
208
208
  custom: DirtyHashy[ item_data[GID_MEMBER_CONTACT].map{ |k,v| [k.to_i, v] }.select{ |i| i[0] > CORE_FIELD_IDS_FINISH_AT } ],
209
- custom_labels: custom_labels[GID_MEMBER_CONTACT],
209
+ custom_labels: custom_labels[GID_MEMBER_CONTACT] || DirtyHashy.new,
210
210
  ),
211
211
  :primary_contact => PrimaryContact.new(
212
212
  first_name: primary_contact[CID_FIRST_NAME],
@@ -225,7 +225,7 @@ module Osm
225
225
  receive_email_1: primary_contact[CID_RECIEVE_EMAIL_1],
226
226
  receive_email_2: primary_contact[CID_RECIEVE_EMAIL_2],
227
227
  custom: DirtyHashy[ item_data[GID_PRIMARY_CONTACT].map{ |k,v| [k.to_i, v] }.select{ |i| i[0] > CORE_FIELD_IDS_FINISH_AT } ],
228
- custom_labels: custom_labels[GID_PRIMARY_CONTACT],
228
+ custom_labels: custom_labels[GID_PRIMARY_CONTACT] || DirtyHashy.new,
229
229
  ),
230
230
  :secondary_contact => PrimaryContact.new(
231
231
  first_name: secondary_contact[CID_FIRST_NAME],
@@ -244,7 +244,7 @@ module Osm
244
244
  receive_email_1: secondary_contact[CID_RECIEVE_EMAIL_1],
245
245
  receive_email_2: secondary_contact[CID_RECIEVE_EMAIL_2],
246
246
  custom: DirtyHashy[ item_data[GID_SECONDARY_CONTACT].map{ |k,v| [k.to_i, v] }.select{ |i| i[0] > CORE_FIELD_IDS_FINISH_AT } ],
247
- custom_labels: custom_labels[GID_SECONDARY_CONTACT],
247
+ custom_labels: custom_labels[GID_SECONDARY_CONTACT] || DirtyHashy.new,
248
248
  ),
249
249
  :emergency_contact => EmergencyContact.new(
250
250
  first_name: emergency_contact[CID_FIRST_NAME],
@@ -259,7 +259,7 @@ module Osm
259
259
  email_1: emergency_contact[CID_EMAIL_1],
260
260
  email_2: emergency_contact[CID_EMAIL_2],
261
261
  custom: DirtyHashy[ item_data[GID_EMERGENCY_CONTACT].map{ |k,v| [k.to_i, v] }.select{ |i| i[0] > CORE_FIELD_IDS_FINISH_AT } ],
262
- custom_labels: custom_labels[GID_EMERGENCY_CONTACT],
262
+ custom_labels: custom_labels[GID_EMERGENCY_CONTACT] || DirtyHashy.new,
263
263
  ),
264
264
  :doctor => DoctorContact.new(
265
265
  first_name: doctor_contact[CID_FIRST_NAME],
@@ -273,10 +273,10 @@ module Osm
273
273
  phone_1: doctor_contact[CID_PHONE_1],
274
274
  phone_2: doctor_contact[CID_PHONE_2],
275
275
  custom: DirtyHashy[ item_data[GID_DOCTOR_CONTACT].map{ |k,v| [k.to_i, v] }.select{ |i| i[0] > CORE_FIELD_IDS_FINISH_AT } ],
276
- custom_labels: custom_labels[GID_DOCTOR_CONTACT],
276
+ custom_labels: custom_labels[GID_DOCTOR_CONTACT] || DirtyHashy.new,
277
277
  ),
278
278
  custom: DirtyHashy[ item_data[GID_CUSTOM].map{ |k,v| [k.to_i, v] } ],
279
- custom_labels: custom_labels[GID_CUSTOM],
279
+ custom_labels: custom_labels[GID_CUSTOM] || DirtyHashy.new,
280
280
  )
281
281
  end
282
282
 
data/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Osm
2
- VERSION = "1.2.18.dev.1"
2
+ VERSION = "1.2.18.dev.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osm
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.18.dev.1
4
+ version: 1.2.18.dev.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gauld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-21 00:00:00.000000000 Z
11
+ date: 2015-05-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport