lib/vcard/field.rb in vcard-0.2.11 vs lib/vcard/field.rb in vcard-0.2.12

- old
+ new

@@ -39,11 +39,15 @@ # A reminder of the line format: # [<group>.]<name>;<pname>=<pvalue>,<pvalue>:<value> if group - line << group << "." + if group.class == Symbol + # Explicitly allow symbols + group = group.to_s + end + line << group.to_str << "." end line << name params.each do |pname, pvalues| @@ -86,10 +90,10 @@ when Array line << value.map { |v| Field.value_str(v) }.join(";") when Symbol - line << value + line << value.to_s else # FIXME - somewhere along here, values with special chars need escaping... line << value.to_str end