Can I use Jruby to obfuscate my Ruby code so the client can’t re-use my
code? I want to deploy a Rails application to a machine operated by the
client. The client wants to operate the database, the server and
everything else, but obviously I don’t want that he can read my code. Or
do you have other suggestions?
Can I use Jruby to obfuscate my Ruby code so the client can’t re-use my
code? I want to deploy a Rails application to a machine operated by the
client. The client wants to operate the database, the server and
everything else, but obviously I don’t want that he can read my code. Or
do you have other suggestions?
if packaging it up in a jar is “obfuscation” then yes it does it pretty
readily. I think you can deploy rails apps as wars. See also rawr.
readily. I think you can deploy rails apps as wars. See also rawr.
If you have jruby compile the ruby code to java class files the results
are pretty damn good obfuscation. Certainly better than what you get
from compiling plan java code, because the ruby code goes through an
additional step, so even were someone to decompile it they’d have a hard
time making sense of it.
You can package this up in a war file for deployment, though I don’t
think war’ing by itself does much for obfuscation. It may make it
easier to handle, though.
Can I use Jruby to obfuscate my Ruby code so the client can’t re-use my
code? I want to deploy a Rails application to a machine operated by the
client. The client wants to operate the database, the server and
everything else, but obviously I don’t want that he can read my code. Or
do you have other suggestions?
Yes. Warbler 1.2 has a new feature “compiled” which does the
compile-ruby-to-a-class-file and bundles the class files in your war
file for you.
You can package this up in a war file for deployment, though I don’t think
war’ing by itself does much for obfuscation. It may make it easier to
handle, though.
AFAIK most containers expand war files into a directory by default,
so that’s not really going to offer much “obfuscation”