lib/csv2hash/definition.rb in csv2hash-0.6.4 vs lib/csv2hash/definition.rb in csv2hash-0.6.5
- old
+ new
@@ -50,10 +50,10 @@
cell.rules.fetch(:position)
default_position cell
unless cell.rules.has_key? :message
if cell.rules.has_key? :values
- cell.rules.merge! message: ':key not supported, please use one of :values'
+ cell.rules.merge! message: 'value :found not supported for :key, please use one of :values'
else
cell.rules.merge! message: 'undefined :key on :position'
end
end
cell.rules.merge! mappable: true unless cell.rules.has_key? :mappable