The Ruby Programming Language [mirror]
Go to file
svn 50783b870e * 2014-01-28
git-svn-id: svn+ssh://svn.ruby-lang.org/ruby/branches/ruby_1_8@44718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-01-27 18:58:00 +00:00
bcc32 * configure.in (config.h): add include guard. 2010-07-26 09:18:21 +00:00
bin
cygwin * common.mk (RBCONFIG): depends on version.h due to 2010-10-08 01:52:09 +00:00
djgpp
doc Split and move away old entries in ChangeLog and NEWS. 2010-09-03 08:25:47 +00:00
ext Merge r35953 from ruby_1_8_7. 2012-10-16 08:55:03 +00:00
lib Make an internal block of Generator return nil instead of self. 2012-12-02 13:08:52 +00:00
misc
missing * missing/*.c: include missing.h 2010-07-28 08:12:01 +00:00
sample
template
test * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_gc): Fix 2012-10-16 08:55:15 +00:00
vms
win32 * win32/win32.c (init_stdhandle): backport mistake of r29382. 2011-01-19 08:40:11 +00:00
wince
x68
.document
.gdbinit * .gdbinit: classic version. 2010-06-01 23:28:46 +00:00
.gitignore
COPYING
COPYING.ja
ChangeLog * configure.in: define USE_BUILTIN_FRAME_ADDRESS on x86_64 2014-01-27 18:57:57 +00:00
GPL
KNOWNBUGS.rb
LEGAL
LGPL
Makefile.in * Makefile.in (MINIRUBY): get rid of appending spaces for each 2010-07-27 10:03:23 +00:00
NEWS * array.c (rb_ary_sort_by_bang): Add Array#sort_by!. 2010-11-17 09:29:49 +00:00
README * README: update. 2010-05-06 03:12:28 +00:00
README.EXT
README.EXT.ja
README.ja * README: update. 2010-05-06 03:12:28 +00:00
ToDo
array.c * array.c (rb_ary_collect), enum.c (enum_collect): rb_warn() is a 2013-03-27 02:10:29 +00:00
bignum.c * bignum.c (rb_big2str0): prevent working clone from 2012-04-14 09:01:05 +00:00
class.c
common.mk * common.mk (RBCONFIG): depends on version.h due to 2010-10-08 01:52:09 +00:00
compar.c
compile_prelude.rb
config.guess
config.sub
configure.in * configure.in: define USE_BUILTIN_FRAME_ADDRESS on x86_64 2014-01-27 18:57:57 +00:00
defines.h * defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include 2010-07-27 09:33:55 +00:00
dir.c
distruby.rb
dln.c
dln.h
dmydln.c
dmyext.c
enum.c * array.c (rb_ary_collect), enum.c (enum_collect): rb_warn() is a 2013-03-27 02:10:29 +00:00
enumerator.c
env.h
error.c Merge r37148 from ruby_1_8_7. 2012-10-16 08:55:07 +00:00
eval.c stack_extend 2012-06-29 12:19:39 +00:00
file.c * file.c (file_expand_path): home directory must be absolute. 2010-07-29 23:51:53 +00:00
gc.c
hash.c
ia64.s
inits.c Forward port r34151 from ruby_1_8_7. 2012-01-26 07:10:03 +00:00
install-sh
instruby.rb * instruby.rb (ext-arch): prune directories start with '-'. 2010-07-29 22:47:22 +00:00
intern.h * eval.c (rb_thread_atfork): When a ruby process forks, its random 2011-05-20 21:21:39 +00:00
io.c * eval.c (rb_thread_atfork): When a ruby process forks, its random 2011-05-20 21:21:39 +00:00
keywords
lex.c
main.c
marshal.c * marshal.c (mark_dump_arg): mark destination string. patch by 2012-03-02 01:53:11 +00:00
math.c
mdoc2man.rb
miniprelude.c
missing.h merge from trunk (r28772) 2010-07-28 10:42:11 +00:00
mkconfig.rb * mkconfig.rb: should use RbConfig instead of Config, because the name 2010-08-11 01:55:52 +00:00
node.h * eval.c (rb_add_threadswitch_hook): wrapper for unofficial APIs 2010-09-23 18:00:46 +00:00
numeric.c * numeric.c (int_pow, fix_mul): Avoid optimization bugs of 2012-07-27 04:12:08 +00:00
object.c * object.c: Make BasicObject.new accept no parameter. 2010-10-30 02:26:25 +00:00
pack.c update doc. 2010-06-28 13:05:07 +00:00
parse.y * parse.y (opt_block_arg): Allow a trailing comma at the end of 2010-10-11 09:34:39 +00:00
prec.c
prelude.rb
process.c * io.c, eval.c, process.c: remove all condition of r26371. 2010-05-23 20:00:48 +00:00
random.c Forward port r34151 from ruby_1_8_7. 2012-01-26 07:10:03 +00:00
range.c
re.c * re.c (rb_reg_regcomp): should succeed the taint status from the 2010-11-26 01:08:55 +00:00
re.h * re.h (RMATCH_REGS): parenthesize cast expression. suggested 2011-04-20 12:42:40 +00:00
regex.c * regexp.c (re_compile_pattern): allow zero times match for 2010-06-07 06:14:46 +00:00
regex.h
ruby.1
ruby.c * ruby.c (get_arglen): skip the last terminator of argv before 2010-04-24 04:06:59 +00:00
ruby.h * pack.c: backport integer pack/unpack from 1.9 for [ruby-core:21937]. 2010-05-10 20:53:33 +00:00
rubyio.h
rubysig.h
rubytest.rb
runruby.rb
signal.c
sprintf.c
st.c Forward port r34151 from ruby_1_8_7. 2012-01-26 07:10:03 +00:00
st.h * defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include 2010-07-27 09:33:55 +00:00
string.c Forward port r34151 from ruby_1_8_7. 2012-01-26 07:10:03 +00:00
struct.c
time.c
util.c * util.c (ruby_add_suffix): fixed a bug returning uninitialized 2010-07-29 22:59:54 +00:00
util.h * defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include 2010-07-27 09:33:55 +00:00
variable.c * variable.c (rb_const_get_0): Fix previous change. There were 2011-05-25 09:44:44 +00:00
version.c * version.c (ruby_description): RUBY_REVISION_STR may be empty. 2010-05-16 15:43:51 +00:00
version.h * 2014-01-28 2014-01-27 18:58:00 +00:00

README

* What's Ruby

Ruby is the interpreted scripting language for quick and
easy object-oriented programming.  It has many features to
process text files and to do system management tasks (as in
Perl).  It is simple, straight-forward, and extensible.


* Features of Ruby

  + Simple Syntax
  + *Normal* Object-Oriented features(ex. class, method calls)
  + *Advanced* Object-Oriented features(ex. Mix-in, Singleton-method)
  + Operator Overloading
  + Exception Handling
  + Iterators and Closures
  + Garbage Collection
  + Dynamic Loading of Object files(on some architecture)
  + Highly Portable(works on many UNIX machines, and on DOS,
    Windows, Mac, BeOS etc.)


* How to get Ruby

The Ruby distribution files can be found in the following FTP site:

  ftp://ftp.ruby-lang.org/pub/ruby/

The latest source code of this version series can be checked out
through SVN with the following command:

  $ svn co http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8/

The trunk of the Ruby source tree can be checked out with the
following command:

  $ svn co http://svn.ruby-lang.org/repos/ruby/trunk/ ruby

There are some other branches under development.  Try the following
command and see the list of branches:

  $ svn ls http://svn.ruby-lang.org/repos/ruby/branches/


* Ruby home-page

The URL of the Ruby home-page is:

   http://www.ruby-lang.org/


* Mailing list

There is a mailing list to talk about Ruby.
To subscribe this list, please send the following phrase

	subscribe YourFirstName YourFamilyName
e.g.
        subscribe Joseph Smith

in the mail body (not subject) to the address <ruby-talk-ctl@ruby-lang.org>.


* How to compile and install

This is what you need to do to compile and install Ruby:

  1. If ./configure does not exist or is older than configure.in,
     run autoconf to (re)generate configure.

  2. Run ./configure, which will generate config.h and Makefile.

     Some C compiler flags may be added by default depending on your
     environment.  Specify optflags=.. and warnflags=.. as necessary
     to override them.

  3. Edit defines.h if you need.  Usually this step will not be needed.

  4. Remove comment mark(#) before the module names from ext/Setup (or
     add module names if not present), if you want to link modules
     statically.

     If you don't want to compile non static extension modules
     (probably on architectures which does not allow dynamic loading),
     remove comment mark from the line "#option nodynamic" in
     ext/Setup.

  5. Run make.

  6. Optionally, run 'make test' to check whether the compiled Ruby
     interpreter works well.  If you see the message "test succeeded",
     your ruby works as it should (hopefully).

  7. Run 'make install'

     This command will create following directories and install files
     onto them.

       * ${DESTDIR}${prefix}/bin
       * ${DESTDIR}${prefix}/lib
       * ${DESTDIR}${prefix}/lib/ruby
       * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}
       * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}/${PLATFORM}
       * ${DESTDIR}${prefix}/lib/ruby/site_ruby
       * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}
       * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}/${PLATFORM}
       * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby
       * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}
       * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}/${PLATFORM}
       * ${DESTDIR}${prefix}/share/man/man1

     If Ruby's version is `x.y.z', the ((|${MAJOR}|)) is `x' and the
     ((|${MINOR}|)) is `y'.

     You may have to be a super user to install ruby.

If you fail to compile ruby, please send the detailed error report with
the error log and machine/OS type, to help others.


* Copying

See the file COPYING.


* The Author

Feel free to send comments and bug reports to the author.  Here is the 
author's latest mail address:

  matz@netlab.jp

-------------------------------------------------------
created at: Thu Aug  3 11:57:36 JST 1995
Local variables:
mode: indented-text
end: