Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

The Ruby Programming Language

tree: f19478d5e3

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 bcc32 * configure.in: read API version from include/ruby/version.h. August 24, 2010
Octocat-spinner-32 benchmark * benchmark/driver.rb: Add difference column to report that averages July 06, 2011
Octocat-spinner-32 bin * lib/rdoc: Update to 3.9.1. Fixes === lines in verbatim sections. August 05, 2011
Octocat-spinner-32 bootstraptest
Octocat-spinner-32 cygwin * cygwin/GNUmakefile.in (SCRIPTPROGRAMS): ignore backup files and etc. December 10, 2010
Octocat-spinner-32 defs * defs/default_gems: separate from tool/rbinstall.rb. July 30, 2011
Octocat-spinner-32 doc * doc/re.rdoc (Repetition): fix typo. reported by Ori Avtalion February 01, 2012
Octocat-spinner-32 enc Revert r35536. May 07, 2012
Octocat-spinner-32 ext merge revision(s) 37527: [Backport #7293] November 08, 2012
Octocat-spinner-32 include
Octocat-spinner-32 lib
Octocat-spinner-32 man fix typos in man December 01, 2010
Octocat-spinner-32 misc merge revision(s) 34355: February 12, 2012
Octocat-spinner-32 missing * missing/setproctitle.c (ruby_init_setproctitle): changed prefix. January 17, 2012
Octocat-spinner-32 sample * backport r33086 from trunk. August 26, 2011
Octocat-spinner-32 spec * spec/README: update the description. May 24, 2011
Octocat-spinner-32 symbian Added HAVE_LABS and HAVE_LLABS to config.h November 13, 2010
Octocat-spinner-32 template merge revision(s) 34716: July 28, 2012
Octocat-spinner-32 test
Octocat-spinner-32 tool merge revision(s) 36533: [Backport #7316] November 09, 2012
Octocat-spinner-32 win32
Octocat-spinner-32 .document * prelude.rb, .document: Stuff in prelude.rb should be documented March 29, 2010
Octocat-spinner-32 .gdbinit * .gdbinit (rp): show type name for RTypedData. June 05, 2010
Octocat-spinner-32 .gitignore remove duplicated and change comment location March 19, 2011
Octocat-spinner-32 .indent.pro * .indent.pro: added for ruby-style. March 11, 2010
Octocat-spinner-32 .travis.yml * .travis.yml: Backport TravisCI configuration from trunk. March 02, 2012
Octocat-spinner-32 BSDL Add BSDL file. September 15, 2010
Octocat-spinner-32 COPYING * COPYING: change Ruby's License from a dual license with GPLv2 September 15, 2010
Octocat-spinner-32 COPYING.ja * COPYING: change Ruby's License from a dual license with GPLv2 September 15, 2010
Octocat-spinner-32 ChangeLog
Octocat-spinner-32 GPL * It is confusing to put the GPL license terms in the file COPYING; July 11, 2001
Octocat-spinner-32 KNOWNBUGS.rb * test/ruby/test_method.rb (test_unlinked_method_entry_in_method_obje… March 25, 2013
Octocat-spinner-32 LEGAL * util.c, include/ruby/util.h (ruby_add_suffix): remove the function. August 03, 2011
Octocat-spinner-32 Makefile.in merge revision(s) 34849,34853,34854,34855,34859,34862,35384,35385,368… October 25, 2012
Octocat-spinner-32 NEWS * NEWS: cosmetic changes. September 15, 2011
Octocat-spinner-32 README * README: update. May 06, 2010
Octocat-spinner-32 README.EXT * README.EXT: fix typo. Patch by William Blackerby. May 13, 2011
Octocat-spinner-32 README.EXT.ja * README.EXT: fix typo. Patch by William Blackerby. May 13, 2011
Octocat-spinner-32 README.ja * README: update. May 06, 2010
Octocat-spinner-32 ToDo * error.c (Init_Exception): remove Exception#to_str. [Ruby2] April 05, 2004
Octocat-spinner-32 addr2line.c * addr2line.c: use USE_ELF instead of __ELF__ because Solaris July 08, 2011
Octocat-spinner-32 addr2line.h * addr2line.c: use USE_ELF instead of __ELF__ because Solaris July 08, 2011
Octocat-spinner-32 array.c merge revisions r33453, r37542: November 07, 2012
Octocat-spinner-32 bignum.c merge revision(s) 37567: [Backport #7315] November 09, 2012
Octocat-spinner-32 class.c reverted Module#mix -- r31873, r31917 and r31918. July 10, 2011
Octocat-spinner-32 common.mk
Octocat-spinner-32 compar.c * array.c: Documentation: change => in call-seq to ->. May 17, 2010
Octocat-spinner-32 compile.c
Octocat-spinner-32 complex.c merge revision(s) 34803: February 25, 2012
Octocat-spinner-32 configure.in
Octocat-spinner-32 constant.h * constant.h, variable.c: to ensure compatibility, rb_const_get_* must January 28, 2011
Octocat-spinner-32 cont.c merge revision(s) 34629,34630: February 15, 2012
Octocat-spinner-32 debug.c * debug.c: parenthesize macro arguments. December 07, 2010
Octocat-spinner-32 debug.h * debug.h: parenthesize macro arguments. January 17, 2011
Octocat-spinner-32 dir.c merge revision(s) 32826,34732: [Backport #6681] October 26, 2012
Octocat-spinner-32 dln.c merge revision(s) 35354,35356,35357,35361: April 17, 2012
Octocat-spinner-32 dln.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. July 21, 2010
Octocat-spinner-32 dln_find.c * dln_find.c (dln_find_1): use rb_warning and return immediately January 26, 2011
Octocat-spinner-32 dmydln.c * dln_find.c: split from dln.c. February 24, 2010
Octocat-spinner-32 dmyencoding.c * encoding.c (enc_init_db): moved to enc/encdb.c. April 07, 2008
Octocat-spinner-32 dmyext.c * array.c: moved to ANSI function style from K&R function style. September 12, 2005
Octocat-spinner-32 dmyversion.c * dmyversion.c: empty load path in miniruby. February 08, 2010
Octocat-spinner-32 encoding.c merge revision(s) 34433: [Backport #6153] March 18, 2012
Octocat-spinner-32 enum.c merge revision(s) 32595: July 22, 2011
Octocat-spinner-32 enumerator.c merge revision(s) 34712: February 20, 2012
Octocat-spinner-32 error.c merge revision(s) 37068: October 12, 2012
Octocat-spinner-32 eval.c merge revision(s) 34280: January 12, 2012
Octocat-spinner-32 eval_error.c * internal.h: declare more internal functions. June 18, 2011
Octocat-spinner-32 eval_intern.h * fix for build on solaris 10. June 16, 2011
Octocat-spinner-32 eval_jump.c cancel subversion backfire. sorry March 07, 2011
Octocat-spinner-32 file.c * file.c (append_fspath): no need to do encoding trick here. November 09, 2012
Octocat-spinner-32 gc.c
Octocat-spinner-32 gc.h merge revision(s) 35978,36013,36014,36015,36052,36076,36487: [Backpor… August 23, 2012
Octocat-spinner-32 gem_prelude.rb * ruby.c (process_options): revert r30549. January 17, 2011
Octocat-spinner-32 golf_prelude.rb cancel subversion backfire. sorry March 07, 2011
Octocat-spinner-32 goruby.c stripped trailing spaces. February 22, 2009
Octocat-spinner-32 hash.c * hash.c (recursive_hash): hash value of emptied hash should be August 02, 2011
Octocat-spinner-32 ia64.s add reference. July 15, 2007
Octocat-spinner-32 id.c * id.c (Init_id): add underscore name. June 20, 2010
Octocat-spinner-32 inits.c * internal.h: declare internal functions here. June 17, 2011
Octocat-spinner-32 insns.def
Octocat-spinner-32 internal.h merge revision(s) 34849,34853,34854,34855,34859,34862,35384,35385,368… October 25, 2012
Octocat-spinner-32 io.c merge revision(s) 32826,34732: [Backport #6681] October 26, 2012
Octocat-spinner-32 iseq.c merge revision(s) 38292: [Backport #6899] December 11, 2012
Octocat-spinner-32 iseq.h
Octocat-spinner-32 lex.c.blt * defs/keywords (reserved_word): made inline function static. May 16, 2009
Octocat-spinner-32 load.c merge revision(s) 34849,34853,34854,34855,34859,34862,35384,35385,368… October 25, 2012
Octocat-spinner-32 main.c * main.c: <stdlib.h> is needed, to introduce the getenv(3) November 01, 2010
Octocat-spinner-32 marshal.c merge revision(s) 38357,38363: [Backport #7325] December 19, 2012
Octocat-spinner-32 math.c * complex.c (f_signbit): fix compile error in gcc4 on Solaris with August 05, 2011
Octocat-spinner-32 method.h reverted Module#mix -- r31873, r31917 and r31918. July 10, 2011
Octocat-spinner-32 node.c * node.c (add_id): remove duplicated rb_id2str() call. January 31, 2011
Octocat-spinner-32 node.h * internal.h: declare internal functions here. June 17, 2011
Octocat-spinner-32 numeric.c merge revision(s) 35015: October 12, 2012
Octocat-spinner-32 object.c merge revision(s) 34277: [Backport #5881] February 09, 2012
Octocat-spinner-32 pack.c merge revision(s) 34972: August 09, 2012
Octocat-spinner-32 parse.y
Octocat-spinner-32 prelude.rb * remove trailing spaces. May 15, 2011
Octocat-spinner-32 proc.c * proc.c (rb_vm_rewrite_dfp_in_errinfo): Fix `unexpected return' July 03, 2012
Octocat-spinner-32 process.c merge revision(s) 35249,35250: [Backport #6296] April 14, 2012
Octocat-spinner-32 random.c
Octocat-spinner-32 range.c * range.c (range_max): fix behavior with excluded end value. July 10, 2011
Octocat-spinner-32 rational.c merge revision(s) 34803: February 25, 2012
Octocat-spinner-32 re.c * internal.h: declare internal functions here. June 17, 2011
Octocat-spinner-32 regcomp.c Show encoding of compiling regexp. February 23, 2011
Octocat-spinner-32 regenc.c merge revision(s) 34236: [Backport #5890] February 08, 2012
Octocat-spinner-32 regenc.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. July 21, 2010
Octocat-spinner-32 regerror.c * removed spaces just before tabs. November 26, 2009
Octocat-spinner-32 regexec.c Fix type of arguments in debug prints. February 23, 2011
Octocat-spinner-32 regint.h merge revision(s) 32544: [Backport #6005] February 12, 2012
Octocat-spinner-32 regparse.c merge revision(s) 37175: October 13, 2012
Octocat-spinner-32 regparse.h * addr2line.c: suppressed shorten-64-to-32 warnings. January 31, 2011
Octocat-spinner-32 regsyntax.c stripped trailing spaces. February 22, 2009
Octocat-spinner-32 ruby.c merge revision(s) 36800: [Backport #6377] October 16, 2012
Octocat-spinner-32 ruby_atomic.h
Octocat-spinner-32 safe.c fixed very important banners. November 23, 2010
Octocat-spinner-32 signal.c
Octocat-spinner-32 siphash.c merge revision(s) 37585,37587,37591,37592,37597,37599: November 09, 2012
Octocat-spinner-32 siphash.h * siphash.h: check configure macros before include newer headers. November 09, 2012
Octocat-spinner-32 sparc.c sparc.c was missing in r34199 January 04, 2012
Octocat-spinner-32 sprintf.c * backport r33021 from trunk. August 23, 2011
Octocat-spinner-32 st.c merge revision(s) 32544: [Backport #6005] February 12, 2012
Octocat-spinner-32 strftime.c merge revision(s) 35366,35377,35399,35406: April 20, 2012
Octocat-spinner-32 string.c merge revision(s) 37585,37587,37591,37592,37597,37599: November 09, 2012
Octocat-spinner-32 struct.c * internal.h: add for internal use only. May 18, 2011
Octocat-spinner-32 thread.c merge revision(s) 36926: September 09, 2012
Octocat-spinner-32 thread_pthread.c
Octocat-spinner-32 thread_pthread.h * thread_pthread.h (rb_global_vm_lock_struct): add volatile to June 27, 2011
Octocat-spinner-32 thread_win32.c * include/ruby/intern.h, thread_pthread.c (rb_reserved_fd_p, July 03, 2011
Octocat-spinner-32 thread_win32.h fix win32 native_cond_timedwait() makes SIGSEGV. May 07, 2011
Octocat-spinner-32 time.c
Octocat-spinner-32 timev.h * timev.h (TIME_SCALE): defined as 1000000000. August 29, 2009
Octocat-spinner-32 transcode.c
Octocat-spinner-32 transcode_data.h * configure.in (XCFLAGS): use -fvisibility=hidden if possible. July 21, 2010
Octocat-spinner-32 util.c merge revision(s) 32826,34732: [Backport #6681] October 26, 2012
Octocat-spinner-32 variable.c merge revision(s) 35010: March 14, 2012
Octocat-spinner-32 version.c * math.c: Attach documentation for Math. June 29, 2011
Octocat-spinner-32 version.h
Octocat-spinner-32 vm.c
Octocat-spinner-32 vm_core.h
Octocat-spinner-32 vm_dump.c * addr2line.c: use USE_ELF instead of __ELF__ because Solaris July 08, 2011
Octocat-spinner-32 vm_eval.c merge revision(s) 37270: [Backport #7185] November 08, 2012
Octocat-spinner-32 vm_exec.c * vm_exec.c: remove conditions for clang May 31, 2011
Octocat-spinner-32 vm_exec.h * vm_exec.h: parenthesize macro arguments. January 23, 2011
Octocat-spinner-32 vm_insnhelper.c
Octocat-spinner-32 vm_insnhelper.h * vm_core.h, vm_insnhelper.h: move decl. of June 13, 2011
Octocat-spinner-32 vm_method.c merge revision(s) 33935,33936,33987: [Backport #5702] February 13, 2012
Octocat-spinner-32 vm_opts.h * vm_opts.h: enable "OPT_TRACE_INSTRUCTION" on default. August 23, 2008
Octocat-spinner-32 vsnprintf.c * vsnprintf.c (cvt): set first byte of buf to NUL for the case when January 18, 2011
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-like/POSIX compatible platforms
    as well as Windows, Mac OS X, BeOS etc.)
    cf. http://redmine.ruby-lang.org/wiki/ruby-19/SupportedPlatforms


* How to get Ruby

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

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

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}/include/ruby-${MAJOR}.${MINOR}.${TEENY}
       * ${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
       * ${DESTDIR}${prefix}/lib
       * ${DESTDIR}${prefix}/lib/ruby
       * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}
       * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
       * ${DESTDIR}${prefix}/lib/ruby/site_ruby
       * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}
       * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
       * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby
       * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}
       * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
       * ${DESTDIR}${prefix}/lib/ruby/gems/${MAJOR}.${MINOR}.${TEENY}
       * ${DESTDIR}${prefix}/share/man/man1
       * ${DESTDIR}${prefix}/share/ri/${MAJOR}.${MINOR}.${TEENY}/system

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

     NOTE: teeny of the API version may be different from one of
     Ruby's program version

     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:
Something went wrong with that request. Please try again.