lib/fit_parser/file/data.rb in fit_parser-1.0.1 vs lib/fit_parser/file/data.rb in fit_parser-1.0.2
- old
+ new
@@ -62,10 +62,10 @@
end
definition.dev_fields_arr.each do |field|
data = dev_definitions[field[:developer_data_index].to_s][field[:field_number].to_s]
field.base_type_number = data[:raw_field_2]
- field.name = data[:raw_field_3].downcase.gsub(' ', '_')
+ field.name = data[:raw_field_3].downcase.gsub(' ', '_').gsub('.', '')
field.scale = data[:raw_field_6] && data[:raw_field_6] != 255 ? data[:raw_field_6] : nil
code = ''
# in case the field size is a multiple of the field length, we must build an array
if field.type != 'string' && field.field_size > field.length