Why not

`  gem.executables   = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } `

?

It is the convention, automatically generated via `bundle gem gemname`.