From: Phrogz Date: 2010-01-27T00:40:19+09:00 Subject: Re: Installing Ruby Application On Jan 26, 8:19 am, Tony Meier wrote: > I've tried adding a launcher script into /bin and adding it to the > gemspec like this > > spec = Gem::Specification.new do |s| >   s.name = 'appname' >   s.version = '0.0.3' >   s.summary = 'desc' >   s.description = %{desc} >   s.test_files = Dir['test/*.rb'] >   s.bindir = 'bin' You also need to specify the executable(s) inside the bindir that you want installed: s.executables << 'my_app_name' You don't even need it to have a .rb extension if you have a shebang line at the top. (Even works on Windows.) #!/usr/bin/env ruby -KU