Closed osamunmun closed 8 years ago
Good catch! I have some points for this change:
IMO, this plugin should do these for missing specified key-values:
ignore_key_not_exist
suppress this warning)reserve_data
is NOT specifiedreserve_data
is specified@osamunmun How do you think about updating your patch like this?
out_parser.rb
and its test?@tagomoris I agree with your suggestion about warn
, skip
and emit same record
. I have changed them, and added same code into out_parser.
Thanks! LGTM.
Released v0.6.1 with this change.
If 'key_name' doesn't exist, I got "ArgumentError parser io argument must be a String or respond to readpartial() or read()." from Oj.load(nil) at line45
@parser.parse
.Adding "oj" to gemspec may not be good idea, I couldn't catch up with any good idea about testing the case of "oj".