Gem with DATA section

I’m trying to pack an executable ruby script into a gem. The script uses
the DATA section, but this does not work, because what’s installed in
/usr/local/bin is a wrapper which does not have this DATA section, but
points to the actual script which contains it. So the DATA section is
not found. Is there a way to circumvent this?