Gem Packaging: Best Practices gives a lot of advice, some of which include
Do not pollute the global download path. Ideally, only foo.rbin your directory liband put all other files in lib/foo.
Do not use requirefiles with __FILE__.
- . , . , -
VERSION =:: File.read(:: File.join(:: File.dirname(FILE), "..", "..", "VERSION" )).
$LOAD_PATH lib.
VERSION.
. , , rubygems, ( ). , rescue Gem::LoadError.
Rubygems. ... , .
: , , . .