ruby: wrap script to disable gems if not installed
authorLuiz Angelo Daros de Luca <luizluca@gmail.com>
Sat, 4 Oct 2014 19:54:24 +0000 (16:54 -0300)
committerLuiz Angelo Daros de Luca <luizluca@gmail.com>
Tue, 7 Oct 2014 17:14:52 +0000 (14:14 -0300)
commita0e65256e93dac17d221bf788507285ba0eca632
tree12ecde3d01a06fe2b74415051d14d23112298eba
parent205becb6e8557810f6759372b679b49a96c9a66e
ruby: wrap script to disable gems if not installed

ruby, by default, try to load gems on start. If not
present, it fails. As gems brings many deps, this make ruby
unsuitable for routers limited resources.

ruby can avoid to load gems with the option "--disable-gems".
So, a wrap script in the place of /usr/bin/ruby adds this option
if gems are not found.

Also add vendor/site directories

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
lang/ruby/Makefile
lang/ruby/files/ruby [new file with mode: 0644]