README.md in inifile-2.0.2 vs README.md in inifile-3.0.0

- old
+ new

@@ -133,11 +133,24 @@ The backslash escape sequence is only needed if you want one of the escape sequences to appear literally in your value. For example: property = this is not a tab \\t character +### Value Type Casting +Some values will be type cast when parsed by the code. Those values are +booleans, integers, floats, and empty strings are cast to `nil`. + +* "" --> nil +* "42" --> 42 +* "3.14159" --> 3.14159 +* "true" --> true +* "false" --> false +* "normal string" --> "normal string" + +Pretty basic stuff. + Install ------- gem install inifile @@ -148,10 +161,19 @@ To run the tests: $ rake +Examples +-------- + + require 'inifile' + myini = IniFile.load('mytest.ini') + myini.each_section do |section| + puts "I want #{myini[section]['somevar']} printed here!" + end + Contributing ------------ Contributions are gladly welcome! For small modifications (fixing typos, improving documentation) you can use GitHub's in-browser editing capabilities @@ -169,10 +191,10 @@ License ------- MIT License -Copyright (c) 2006 - 2012 +Copyright (c) 2006 - 2014 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish,