[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

ruby application?

Rolando Abarca

10/4/2006 8:37:00 PM

Hi all,
I've written a library to read/write the ipod tracklist, now I want to
write a small application that can put/remove songs from an ipod (as a
replacement for itunes), for that I want to use FOX GUI.
Is there a standard way to create a ruby application? I've looked at
rubyscript2exe, but haven't tested it with FOX yet... are there more
options?

--
rolando -- [[ knowledge is empty, fill it ]] --
"Tam pro papa quam pro rege bibunt omnes sine lege."

5 Answers

David Vallner

10/4/2006 10:56:00 PM

0

Rolando Abarca wrote:
> Hi all,
> I've written a library to read/write the ipod tracklist, now I want to
> write a small application that can put/remove songs from an ipod (as a
> replacement for itunes), for that I want to use FOX GUI.
> Is there a standard way to create a ruby application? I've looked at
> rubyscript2exe, but haven't tested it with FOX yet... are there more
> options?
>

If it's personal code, just use a starter script? Rubyscript2exe is more
of a workaround when dealing with people that would be dead scared of
Ruby without having stuff in an .exe file.

David Vallner

Rolando Abarca

10/5/2006 3:21:00 AM

0

On 10/4/06, David Vallner <david@vallner.net> wrote:
> If it's personal code, just use a starter script? Rubyscript2exe is more
> of a workaround when dealing with people that would be dead scared of
> Ruby without having stuff in an .exe file.

that's the problem... I would like the app to be in the ipod and use
it in any computer, no matter if the pc has ruby && fox or not.
Is this posible or not?

> David Vallner

--
rolando -- [[ knowledge is empty, fill it ]] --
"Tam pro papa quam pro rege bibunt omnes sine lege."

David Vallner

10/5/2006 10:25:00 AM

0

Rolando Abarca wrote:
> that's the problem... I would like the app to be in the ipod and use
> it in any computer, no matter if the pc has ruby && fox or not.
> Is this posible or not?
>

The PC -has- to have Ruby and Fox in one way or another for that app to
work. With rubyscript2exe, you just stuff all of the Ruby libraries you
use, and the Fox libraries into the .exe file. If you have enough place
spare on the iPod to just copy over your C:\Ruby folder on it, maybe
without third-party libraries you don't need for the application (likely
any gems that aren't Fox and the whole of site_ruby if you're using the
one-click installer), it will work just as well with a .bat file to set
up things - e.g. put the current directory into PATH and use rubyw.exe
your_app.rb

The difference is basically that rubyscript2exe lets you hide Ruby being
involved under the carpet - so go for that if that's what you need. Both
alternatives work if you just need to run the script on another
computer, I haven't really used rubyscript2exe, so I can't tell if it's
easier to set up with a binary gem dependency involved than this.

David Vallner

Leslie Viljoen

10/5/2006 11:26:00 AM

0

On 10/4/06, Rolando Abarca <funkaster@gmail.com> wrote:
> Hi all,
> I've written a library to read/write the ipod tracklist, now I want to
> write a small application that can put/remove songs from an ipod (as a
> replacement for itunes), for that I want to use FOX GUI.
> Is there a standard way to create a ruby application? I've looked at
> rubyscript2exe, but haven't tested it with FOX yet... are there more
> options?

I have used it fine with Fox. But I have noticed that it often seems
to include files it doesn't need. I'm not sure why that is, but in my
own projects, if I need the EXE to be small, I extract all the files
and cut things down by hand.

Les

Rolando Abarca

10/5/2006 2:19:00 PM

0

On 10/5/06, Leslie Viljoen <leslieviljoen@gmail.com> wrote:
> I have used it fine with Fox. But I have noticed that it often seems
> to include files it doesn't need. I'm not sure why that is, but in my
> own projects, if I need the EXE to be small, I extract all the files
> and cut things down by hand.
>
> Les

ok, thanks. I'll give it a try then.

--
rolando -- [[ knowledge is empty, fill it ]] --
"Tam pro papa quam pro rege bibunt omnes sine lege."