# Ruby application?

**URL:** <https://www.ruby-forum.com/t/ruby-application/71049>\
**Category:** Ruby\
**Created:** [October 4, 2006, 10:39pm UTC](https://www.ruby-forum.com/t/ruby-application/71049 "2006-10-04T22:39:20Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [October 4, 2006, 10:39pm UTC](https://www.ruby-forum.com/t/ruby-application/71049/1 "2006-10-04T22:39:20Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [October 5, 2006, 12:57am UTC](https://www.ruby-forum.com/t/ruby-application/71049/2 "2006-10-05T00:57:27Z")

</div>

Rolando A. 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 V.

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [October 5, 2006, 5:21am UTC](https://www.ruby-forum.com/t/ruby-application/71049/3 "2006-10-05T05:21:46Z")

</div>

On 10/4/06, David V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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?

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [October 5, 2006, 12:26pm UTC](https://www.ruby-forum.com/t/ruby-application/71049/4 "2006-10-05T12:26:26Z")

</div>

Rolando A. 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 V.

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [October 5, 2006, 4:20pm UTC](https://www.ruby-forum.com/t/ruby-application/71049/5 "2006-10-05T16:20:56Z")

</div>

On 10/5/06, Leslie V. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![Rolando\_A](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/d9b06d/32.png) [@Rolando\_A](https://www.ruby-forum.com/u/Rolando_A)\
**Post date:** [October 5, 2006, 1:26pm UTC](https://www.ruby-forum.com/t/ruby-application/71049/6 "2006-10-05T13:26:33Z")

</div>

On 10/4/06, Rolando A. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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
