[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Running Ruby code from a ZIP file ?

Ruby Maniac

9/28/2007 7:38:00 PM

I would like to run Ruby code from a ZIP file directly rather than
extracting the contents of the ZIP into a folder and run from there.

I am familiar with the work done by this person:

http://www.erikveen.dds.nl/tar2rubyscript/...
http://www.erikveen.dds.nl/distributingrubyapplications/...

However I find those techniques to be too limiting for my purposes.

Eventually I would want to be able to run Ruby code from an encrypted
ZIP file as a Windows app - I don't care about Linux or Unix as there
are methods for getting Windows apps running from Linux or Unix
natively (see also WINE).

The work of erikveen (see above) is interesting only because that
approach does not attempt to make the Ruby source code encrypted only
to misdirect the novice user from the actual location of the source
code while the app is running however if the user happens to go poking
around their temp folder while the app is running they get to see the
Ruby source and this is unacceptable to me.

I would have thought someone might have done this already however so
far I have not been able to find that someone.

BTW - Python allows this already in version 2.5.1 aside from the being
encrypted part.

2 Answers

Konrad Meyer

9/28/2007 7:54:00 PM

0

Quoth Ruby Maniac:
> I would like to run Ruby code from a ZIP file directly rather than
> extracting the contents of the ZIP into a folder and run from there.
>
> I am familiar with the work done by this person:
>
> http://www.erikveen.dds.nl/tar2rubyscript/...
> http://www.erikveen.dds.nl/distributingrubyapplications/...
>
> However I find those techniques to be too limiting for my purposes.
>
> Eventually I would want to be able to run Ruby code from an encrypted
> ZIP file as a Windows app - I don't care about Linux or Unix as there
> are methods for getting Windows apps running from Linux or Unix
> natively (see also WINE).

That's... not the best assumption.

> The work of erikveen (see above) is interesting only because that
> approach does not attempt to make the Ruby source code encrypted only
> to misdirect the novice user from the actual location of the source
> code while the app is running however if the user happens to go poking
> around their temp folder while the app is running they get to see the
> Ruby source and this is unacceptable to me.
>
> I would have thought someone might have done this already however so
> far I have not been able to find that someone.
>
> BTW - Python allows this already in version 2.5.1 aside from the being
> encrypted part.

You obviously love Python. If python is the-right-tool-for-the-job use it. If
ruby is, use it, and live with the consequences.

Regards,
--
Konrad Meyer <konrad@tylerc.org> http://konrad.sobertil...

James Tucker

9/29/2007 1:59:00 AM

0

Take a look at exerb...

Ruby Maniac wrote:
> I would like to run Ruby code from a ZIP file directly rather than
> extracting the contents of the ZIP into a folder and run from there.
>
> I am familiar with the work done by this person:
>
> http://www.erikveen.dds.nl/tar2rubyscript/...
> http://www.erikveen.dds.nl/distributingrubyapplications/...
>
> However I find those techniques to be too limiting for my purposes.
>
> Eventually I would want to be able to run Ruby code from an encrypted
> ZIP file as a Windows app - I don't care about Linux or Unix as there
> are methods for getting Windows apps running from Linux or Unix
> natively (see also WINE).
>
> The work of erikveen (see above) is interesting only because that
> approach does not attempt to make the Ruby source code encrypted only
> to misdirect the novice user from the actual location of the source
> code while the app is running however if the user happens to go poking
> around their temp folder while the app is running they get to see the
> Ruby source and this is unacceptable to me.
>
> I would have thought someone might have done this already however so
> far I have not been able to find that someone.
>
> BTW - Python allows this already in version 2.5.1 aside from the being
> encrypted part.
>
>
>