Using Ruby in a commercial application?

ruby

    Next

  • 1. range object as a parameter
    I trying to use a range object from an array of ranges objects as a parameter my_range = [(0..2), (2..5), (5..10), (10..15), (15..25)] props = [] domains = Domain.find(:all) # keep track of the number of domains @ props[0] = domains.nitems k = params[:id] # can be 0, 1 ,2,3,4 1.step(domains.nitems,1) do |d| props[d] = Proposition.find_by_range( ( my_range[k ] ) , ......... ) d = d.next end I got an error : can't convert String into Integer in the line : props[d] = Proposition.find_by_range( ( my_range[k ] ) , ......... ) is is wrong ? thanks for your help joss

Using Ruby in a commercial application?

Postby Chanon Sajjamanochai » Tue, 15 Aug 2006 04:33:38 GMT

Hi all,

I just began learning Ruby a few hours ago, but it has been enough to 
convince me that it is the language I want to write in.

I first decided to learn it because I wanted to learn Rails to create a 
web application. But now that I like it so much .. I want to use it in 
my current business (which is writing shareware games).

So I'm wondering, what do I have to do to be able to use Ruby in a 
commercial application such as a shareware game?

From the License it says something about some files in the distribution 
weren't written by the author.

I've tried to search for information on this subject, but couldn't find 
anything.

Could someone who has used Ruby in a commercial app before give me some 
advice?

Thank you!

-- 
Posted via  http://www.**--****.com/ 


Re: Using Ruby in a commercial application?

Postby M. Edward (Ed) Borasky » Tue, 15 Aug 2006 06:22:08 GMT



My "advice" is to seek *legal* advice from *attorneys*, *accounting* 
advice from *accountants* and *programming* advice from *programmers*.

:)




Re: Using Ruby in a commercial application?

Postby Ken Bloom » Tue, 15 Aug 2006 06:43:43 GMT




From a purely technical standpoint, you're not going to be able to protect
your investment because Ruby is an interpreted language, and can't even be
compiled to bytecode yet.

I am not a lawyer, nor an author of Ruby, so I can't advise on anything
else.

--Ken

-- 
Ken Bloom. PhD candidate. Linguistic Cognition Laboratory.
Department of Computer Science. Illinois Institute of Technology.
 http://www.**--****.com/ ~kbloom1/

Re: Using Ruby in a commercial application?

Postby Chris Gehlker » Tue, 15 Aug 2006 07:01:29 GMT








I got a grin out of Ed's advice, but, in fact, lawyers who know  
anything about the legal aspects of the software business are very  
scarce. Most lawyers will not give you an formal opinion in this area  
that is backed by their legal malpractice insurance and without such  
backing their opinion is worth precisely as much as mine and Ed's.

Having said that, of course you can use the Ruby core in commercial  
applications just like you can use gcc. Many people have. When it  
comes to some library, you are going to have to read the license on  
the library/




Re: Using Ruby in a commercial application?

Postby Richard Conroy » Tue, 15 Aug 2006 20:38:59 GMT

With respect to licensing, I think most of the popular libraries ship with
licenses that are the same as Ruby's or very similar (i.e. they are very
friendly wrt commercial projects).

However many of Ruby's fancy graphical libraries that you may need
for game development require platform specific binaries. These binaries
may have different licenses than the libraries that wrap them.

Keep in mind that Ruby is a big download for shareware titles. This
is probably a non-issue nowadays, but keep it in mind.

If you are interested in protecting your code, and stopping people from
disabling the nag-ware (or whatever you use to solicit money from the
people who DL your games), there is very little you can do, besides perhaps
compiling your ruby code directly to an executable (some tools exist,
added bonus is that you might get a performance boost and smaller
download). You can also ship 'less game' in your shareware version -
so that a simple edit won't open up the full thing.

There is a book out there that covers game development in Ruby (and
python & lua) probably more technical oriented.


Re: Using Ruby in a commercial application?

Postby John Gabriele » Wed, 16 Aug 2006 02:26:22 GMT



You'll need to look at the licenses for each library/module you use,
and be sure to comply with their respective licensing terms.

If you package your game to include Ruby itself, then for that you'll
need to follow its licensing terms
( http://www.**--****.com/ ) for its files.


Right. Different libs that you use (say, RubyGame, SDL, etc.) may have
licensing terms different to that of Ruby itself, so if you distribute
those libs with your game, you'll need to abide by their terms
(respectively -- possibly different terms for each library).


The licensing info for a given bit of software is usually in the top
level of the source directory in a file called "COPYING", or maybe
license.txt or something similar.


No experience with that.

---John


Re: Using Ruby in a commercial application?

Postby Rich Morin » Wed, 16 Aug 2006 14:15:59 GMT

Nolo Press has a number of useful books on legal
matters, written for a lay audience.

-r
-- 
 http://www.**--****.com/ 
 http://www.**--****.com/ @XXXXX.COM 
 http://www.**--****.com/ +1 650-873-7841

Technical editing and writing, programming, and web development


Similar Threads:

1.ruby for commercial application

Hi.

I would like to use ruby for commercial application, possible embed it 
into my C/C++ application. I read the license text, but still is not 
sure abt the licensing terms. Can we use ruby for commercial 
application? Do we need to distribte our application with sources? 
Appreciate any advise. Thanks!!


2.Hiding RoR code in commercial application

3.How can I develop a Web Application using ruby without rails

4.Has anyone used Ruby for validated FDA applications?

I'm considering using Ruby for a project for a medical application; the 
production code won't be written using Ruby, but I believe that Ruby 
will be a big help for writing test scripts, and also for checking the 
source code to ensure that it conforms to our guidelines, and that 
various tables, in our specification, have been transcribed correctly.

At some point I can imagine an FDA auditor saying:"OK, your Ruby script 
says that the code conforms to your spec.  What steps have you taken to 
validate your script?"
Me "We tested with Ruby Unit"

FDA Auditor "What steps did you take to validate Ruby Unit and the Ruby 
interpreter?"

Any ideas on what to say next?


Cheers,


Simon

5.Using Tk or Fox with a ruby interpreter embedded in a C application

Hi! I'm using the ruby interpreter inside a console application written
in C. I compile the C code with the freely downloadable version of the
Microsoft Compiler (Visual C++ Toolkit 2003) and the Ruby182-15 ( the
Windows Installer version).
I'm able to interact with the ruby objects using the Ruby C API and use
several ruby standard modules.
Now, I would like to insert a GUI and use tk or fox. I tried to create
a ruby module BUT the application crashes (the interpreter seems to
crash) when I put the following instructions in a ruby module:

require 'tk'

The same happens if I require 'fox12'. The interpreter doesn't emit any
error message in the standard output; I expected to have some message
because if, for instance, I call a method that is not defined I get a
message in the standard output.
The same ruby module, if launched by the command line using the
ruby.exe program works correctly.

Do you have any idea?

Thanks
Ivan

6. relay is 127.0.0.1 when using /usr/sbin/sendmail from Ruby on Rails Application

7. public preview of new, commercial ruby ide

8. [ANN] (commercial) - Mondrian Ruby IDE beta5



Return to ruby

 

Who is online

Users browsing this forum: No registered users and 1 guest