It depends on what gem builder you used. Having a separate file makes it easy to stomp and rebuild as you bump version numbers with rake tasks, for example. this is a lot easier than fiddling with a source file and trying not to damage anything.

Some packagers use a separate VERSION file.

Email codedump link for What&#39;s the benefit of version.rb in Ruby gem