Added GGem.ebuild_name to convert gem names to ebuild names
commit35f6deb4212b470f0ca9ea39f8e8ec82455d4575
authorNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 24 Sep 2006 04:42:40 +0000 (24 11:42 +0700)
committerNguyễn Thái Ngọc Duy <pclouds@gmail.com>
Sun, 24 Sep 2006 04:42:40 +0000 (24 11:42 +0700)
treeeb08283de96efda6a4336f8fc53514bc3cf8e989
parent14b4e5a3b99d6c357369f9191de1de4b8b6f402f
Added GGem.ebuild_name to convert gem names to ebuild names

Rules:
1. everything is lowercase
2. split words if possible
3. preserve acronyms
4. remove non-alphanumeric characters (replaced with dashes)
5. if there are corresponding ebuilds already in the main tree, use those names and forget all the above rules
g-gem.rb
test/test_ebuild_name.rb [new file with mode: 0644]