Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to package a Ruby application?

I've got an application in Ruby that uses the Qt 4 bindings. I want to be able to package and release it.

I've looked at other applications such as rake and puppet to see how they're packaged. Both rake and puppet are packaged as gems. I started going down this route when I realized that both rake and puppet are more system level tools rather than user-level applications.

I also looked at orca, but it's windows only.

Are there other options available for packaging a Ruby GUI app other than gem or orca? I'd like something that's cross platform.

like image 846
mattr- Avatar asked Sep 22 '11 04:09

mattr-


People also ask

What is a package in Ruby?

Advertisements. RubyGems is a package utility for Ruby, which installs Ruby software packages and keeps them up-to-date.

Is a package manager for Ruby programming language?

RubyGems is a package manager for the Ruby programming language that provides a standard format for distributing Ruby programs and libraries (in a self-contained format called a "gem"), a tool designed to easily manage the installation of gems, and a server for distributing them.

How do I download RubyGems?

To install a gem, use gem install [gem] . Browsing installed gems is done with gem list . For more information about the gem command, see below or head to RubyGems' docs. There are other sources of libraries though.


1 Answers

Take a look at the platform specification for gems. You can package up a gem for each platform that your code supports.

Some gems consist of pre-compiled code (“binary gems”). It’s especially important that they set the platform attribute appropriately.

like image 54
Paul Rubel Avatar answered Sep 18 '22 15:09

Paul Rubel