README.md in accent-buster-1.0.0 vs README.md in accent-buster-1.1.0
- old
+ new
@@ -1,12 +1,14 @@
# Accent Buster
Add "String#accent\_buster" that replaces diacritics marks by their non-diacritic equivalents.
+Modify "String#downcase", "String#downcase!", "String#upcase", "String#upcase!" to correctly handle diacritics.
+
I made it because I don't want to add "ActiveSupport" to the projects everytime I need that (also, I'm too lazy to type the same thing all the time).
-This lib will have NO MORE than the very strictly necessary to replace diacritics, currently, it has 2 methods: "String#accent_buster" and "String#accent_buster!" (note the bang).
+BTW, if you want to get really serious on that, the gem "UnicodeUtils" is a far better (and more complete) option. ^\_^
Accent Buster uses refinements, so, ruby 2.0+ only.
## Installation
@@ -30,9 +32,14 @@
'ação'.accent_buster # => 'acao'
x = 'é você?'
x.accent_buster!
# => x = 'e voce'
+
+'ação'.upcase # => 'AÇÃO'
+x = 'é você?'
+x.upcase!
+# => x = 'É VOCÊ?'
```
## Contributing
1. Fork it