README.md in csv2hash-0.4.0 vs README.md in csv2hash-0.5.0

- old
+ new

@@ -225,11 +225,11 @@ ### Parser and configuration Pasrer can take several parameters like that: ``` - definition, file_path_or_data, ignore_blank_line=false + definition, file_path_or_data, ignore_blank_line: false ``` in file_path_or_data attribute you can pass directly an Array of data (Array with 2 dimensions) really useful for testing, if you don't care about blank lines in your CSV you can ignore them. ### Response @@ -264,11 +264,11 @@ You need call `.parse()` return `data_wrapper` if `.parse()` is invalid, you can code your own behavior: in your code ``` - parser = Csv2hash::Main.new(definition, file_path_or_data, ignore_blank_line=false).new + parser = Csv2hash::Main.new(definition, file_path_or_data, ignore_blank_line: false).new response = parser.parse return response if response.valid? # Whatever ``` @@ -350,22 +350,39 @@ Csv data ``` [ [ 'Foo' ] ] ``` + +# Upgrading from 0.4 to 0.5 + +Signature of ```Csv2hash::Main#new``` has changed too + +Prior to 0.5 : + +``` + Csv2Hash::Main.new(definition, file_path_or_data, ignore_blank_line=false) +``` + +Starting from 0.5 : + +``` + Csv2Hash::Main.new(definition, file_path_or_data, ignore_blank_line: false) +``` + # Upgrading from 0.3 to 0.4 Signature of ```Csv2hash::Main#new``` has changed too -Prior to 0.3 : +Prior to 0.4 : ``` Csv2Hash::Main.new(definition, file_path_or_data, break_on_failure=true, ignore_blank_line=false) ``` call ```.parse!``` for same result -Starting from 0.3 : +Starting from 0.4 : ``` Csv2Hash::Main.new(definition, file_path_or_data, ignore_blank_line=false) ```