File tree Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Expand file tree Collapse file tree 3 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -443,7 +443,7 @@ def get_full_field_ref(field)
443
443
extra_fields = ( data . extra_fields if data ) || [ ]
444
444
if field . to_s . start_with? ( 'data.' )
445
445
field
446
- elsif extra_fields . include? ( field . to_sym )
446
+ elsif extra_fields . include? ( field . split ( '.' ) [ 0 ] . to_sym )
447
447
classify ( field , :json )
448
448
else
449
449
"data.#{ field } "
Original file line number Diff line number Diff line change @@ -285,6 +285,7 @@ def get_data_ref_from_data(data)
285
285
end
286
286
287
287
def is_data_ref? ( ref )
288
+ return false unless ref . is_a? ( String )
288
289
source , _ = ref . split ( '.' , 2 )
289
290
not ::Plotrb ::Kernel . find_data ( source ) . nil?
290
291
end
Original file line number Diff line number Diff line change @@ -415,6 +415,7 @@ def attribute_post_processing
415
415
process_truncate_value
416
416
process_zip_key
417
417
process_zip_with_key
418
+ process_zip_as
418
419
process_geo_lon
419
420
process_geo_lat
420
421
process_link_source
@@ -501,6 +502,11 @@ def process_zip_with_key
501
502
@with_key = get_full_field_ref ( @with_key )
502
503
end
503
504
505
+ def process_zip_as
506
+ return unless @type == :zip && @as
507
+ @extra_fields . concat ( [ @as . to_sym ] )
508
+ end
509
+
504
510
def process_geo_lon
505
511
return unless @type == :geo && @lon
506
512
@lon = get_full_field_ref ( @lon )
You can’t perform that action at this time.
0 commit comments