README.rdoc in enumerate_it-0.7.0 vs README.rdoc in enumerate_it-0.7.1

- old
+ new

@@ -53,24 +53,24 @@ This will create some nice stuff: * Each enumeration's value will turn into a constant: - RelationshipsStatus::SINGLE # returns 1 + RelationshipStatus::SINGLE # returns 1 RelationshipStatus::MARRIED # returns 2 and so on... * You can retrieve a list with all the enumeration codes: RelationshipStatus.list # [1,2,3,4] * You can get an array of options, ready to use with the 'select', 'select_tag', etc family of Rails helpers. RelationshipStatus.to_a # [["Divorced", 4],["Married", 2],["Single", 1],["Widow", 3]] -* You can retrive a list with values for a group of enumeration constants. +* You can retrieve a list with values for a group of enumeration constants. - RelationshipStatus.valus_for %w(MARRIED SINGLE) # [2, 1] + RelationshipStatus.values_for %w(MARRIED SINGLE) # [2, 1] * You can manipulate the hash used to create the enumeration: RelationshipStatus.enumeration # returns the exact hash used to define the enumeration @@ -159,11 +159,11 @@ # your locale file pt: enumerations: relationship_status: - single: Casado + married: Casado p = Person.new p.relationship_status = RelationshipStatus::MARRIED p.relationship_status_humanize # => 'Casado' @@ -193,10 +193,10 @@ end end == Ruby 1.9 -EnumerateIt is fully compatible with Ruby 1.9.1 (all tests pass) +EnumerateIt is fully compatible with Ruby 1.9.1 and 1.9.2 (all tests pass) == Why did you reinvent the wheel? There are other similar solutions to the problem out there, but I could not find one that worked both with strings and integers as the enumerations' codes. I had both situations in