The Ruby Programming Language [mirror]
Go to file
svn 6d728bdae9 * 2016-04-22
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_1@54691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-04-22 09:10:35 +00:00
benchmark merge revision(s) 44772: [Backport #9430] 2014-02-22 07:22:12 +00:00
bin * NEWS (with all sufficient information): 2013-10-11 21:35:01 +00:00
bootstraptest merge revision(s) 44601: 2014-01-15 02:30:50 +00:00
cygwin
defs * compile.c (iseq_compile_each): emit opt_str_freeze if the #freeze 2013-11-09 21:17:06 +00:00
doc merge revision(s) 53299: [Backport #11870] 2016-02-25 09:00:06 +00:00
enc merge revision(s) 54129,54130,54132: [Backport #11844] 2016-03-25 09:39:56 +00:00
ext merge revision(s) 54258: [Backport #12182] 2016-03-29 12:17:03 +00:00
include merge revision(s) 49096,51353,53168,53169: [Backport #11834] 2016-03-25 08:13:18 +00:00
lib Revert previous commit because it was a mistake. 2016-04-22 09:10:34 +00:00
man merge revision(s) r45896: [Backport #9773] 2014-07-03 15:43:12 +00:00
misc misc/ruby-electric.el: Import version 2.1.1. 2013-12-17 08:33:01 +00:00
missing
nacl
sample merge revision(s) 44403: 2013-12-25 07:38:17 +00:00
spec merge revision(s) r49752,r49753: [Backport #10953] 2015-03-09 13:39:18 +00:00
symbian
template * remove trailing spaces. 2013-12-11 04:01:06 +00:00
test * test/rubygems/test_gem_commands_environment_command.rb (test_execute): 2016-03-31 15:42:25 +00:00
tool merge revision(s) 54129,54130,54132: [Backport #11844] 2016-03-25 09:39:56 +00:00
win32 merge revision(s) 51202,51203,51204: [Backport #11340] 2015-08-17 08:13:33 +00:00
.document
.editorconfig
.gdbinit .gdbinit: initialize 2013-12-13 01:36:29 +00:00
.gitignore * .gitignore: ignored *.old files. 2013-12-17 11:23:23 +00:00
.indent.pro
.travis.yml merge revision(s) 51409,51453: [Backport #10910] 2015-08-17 08:30:08 +00:00
BSDL
COPYING
COPYING.ja
ChangeLog Revert previous commit because it was a mistake. 2016-04-22 09:10:34 +00:00
GPL
KNOWNBUGS.rb
LEGAL
Makefile.in Makefile.in, configure.in: cppflags 2013-12-17 04:32:51 +00:00
NEWS merge revision(s) 51583,51594,51638: [Backport #11444] 2015-12-01 08:00:58 +00:00
README
README.EXT merge revision(s) r45495: [Backport #9662] 2014-07-02 16:55:39 +00:00
README.EXT.ja merge revision(s) r45495: [Backport #9662] 2014-07-02 16:55:39 +00:00
README.ja
addr2line.c * addr2line.c: Include ELF header after system headers (especially 2013-10-26 03:04:27 +00:00
addr2line.h
array.c merge revision(s) 50827,50921: [Backport #11235] 2015-08-17 07:21:29 +00:00
bignum.c merge revision(s) r47860: [Backport #10350] 2014-11-06 14:19:59 +00:00
class.c merge revision(s) 49875: [Backport #10946] 2015-04-13 07:52:40 +00:00
common.mk merge revision(s) 50887,50896,50902: [Backport #11060] 2015-07-03 08:51:59 +00:00
compar.c merge revision(s) 49224,49225,49234,49235: [Backport #10711] 2015-06-30 02:58:36 +00:00
compile.c merge revision(s) 48609: [Backport #10449] [Backport #11651] 2015-11-18 11:24:36 +00:00
complex.c merge revision(s) r45375,r48260,r48320,r48746: [Backport #10526] 2015-01-21 15:50:58 +00:00
configure.in merge revision(s) 52199: [Backport #11792] 2015-12-16 07:08:26 +00:00
constant.h
cont.c merge revision(s) 46373: [Backport #9905] 2016-03-25 09:08:03 +00:00
debug.c * include/ruby/ruby.h: rename FL_OLDGEN to FL_PROMOTED. 2013-11-04 15:04:10 +00:00
dir.c merge revision(s) r47850: [Backport #10294] 2014-10-15 14:10:21 +00:00
dln.c merge revision(s) 50416: [Backport #11111] 2015-05-11 02:12:09 +00:00
dln.h dln.c: extra arguments 2013-06-30 01:58:51 +00:00
dln_find.c dln.c: extra arguments 2013-06-30 01:58:51 +00:00
dmydln.c
dmyext.c
encoding.c merge revision(s) 52856,52906: [Backport #11760] 2015-12-08 02:51:38 +00:00
enum.c merge revision(s) r46095: [Backport #9819] 2014-07-03 15:44:54 +00:00
enumerator.c merge revision(s) r46099: [Backport #9814] 2014-07-03 15:46:17 +00:00
error.c merge revision(s) r47820: [Backport #10330] 2014-10-15 14:06:27 +00:00
eval.c merge revision(s) r48744,r48752: [Backport #10579] 2015-01-21 16:09:59 +00:00
eval_error.c * eval_error.c (warn_printf): use rb_vsprintf instead so ruby specific 2013-06-24 13:03:35 +00:00
eval_intern.h merge revision(s) r45503,r45504,r45508,r45509,r47275: [Backport #9692] 2014-08-25 15:03:42 +00:00
eval_jump.c eval_jump.c: reuse same tag 2013-11-19 17:01:10 +00:00
file.c merge revision(s) 50887,50896,50902: [Backport #11060] 2015-07-03 08:51:59 +00:00
gc.c merge revision(s) 49792: [Backport #10918] 2015-05-21 00:49:44 +00:00
gc.h * gc.h (rb_objspace_reachable_objects_from_root): added. 2013-10-15 10:22:33 +00:00
gem_prelude.rb
golf_prelude.rb * golf_prelude.rb: syntax formatting for whitespace [Fixes GH-425] 2013-11-07 16:03:48 +00:00
goruby.c * goruby.c (init_golf): append suffix. 2013-10-28 06:32:22 +00:00
hash.c merge revision(s) 51423,51425: [Backport #9381] 2015-08-17 08:52:39 +00:00
ia64.s
inits.c ext/rbconfig/sizeof: move to an extension library 2013-11-18 14:19:16 +00:00
insns.def merge revision(s) 54028: [Backport #12158] 2016-03-25 08:48:04 +00:00
internal.h merge revision(s) 49096,51353,53168,53169: [Backport #11834] 2016-03-25 08:13:18 +00:00
io.c * io.c (io_read_nonblock): decrement argc before calling io_readpartical() if 2016-02-25 10:19:39 +00:00
iseq.c merge revision(s) 50541,50542: [Backport #11159] 2015-05-20 08:39:12 +00:00
iseq.h * include/ruby/ruby.h (struct rb_data_type_struct), gc.c: add 2013-06-19 06:26:01 +00:00
lex.c.blt
load.c merge revision(s) 50515: [Backport #11155] 2015-06-09 07:16:31 +00:00
loadpath.c
localeinit.c localeinit.c: split 2013-07-14 17:47:25 +00:00
main.c
marshal.c merge revision(s) 54105,54108,54136,54138: [Backport #12188] 2016-03-25 09:19:56 +00:00
math.c math.c: fix for Bignum argument 2013-09-28 14:25:59 +00:00
method.h merge revision(s) r49222,r49480,r49493: [Backport #10765] 2015-03-17 16:12:28 +00:00
miniinit.c ext/rbconfig/sizeof: move to an extension library 2013-11-18 14:19:16 +00:00
node.c merge revision(s) r46649: [Backport #10005] 2014-08-02 15:14:49 +00:00
node.h * node.h: catch up comments for last commit. 2013-11-04 15:06:14 +00:00
numeric.c revert r54276 because of incompatibility. 2016-03-25 13:56:36 +00:00
object.c merge revision(s) 52856,52906: [Backport #11760] 2015-12-08 02:51:38 +00:00
pack.c merge revision(s) r46778: [Backport #10019] 2014-07-13 13:59:09 +00:00
parse.y merge revision(s) 54172: [Backport #12192] 2016-03-25 09:25:20 +00:00
prelude.rb
probes.d vm_method.c: add new ruby::method-cache-clear dtrace probe 2013-12-09 22:50:44 +00:00
probes_helper.h
proc.c merge revision(s) 45576: [Backport #11572] 2015-10-29 14:56:00 +00:00
process.c merge revision(s) 53346,53347,53348,53349,53391,53928: [Backport #11898] 2016-02-25 09:58:20 +00:00
random.c * random.c (rand_init): Make it possible to specify arbitrary array 2013-11-20 11:05:38 +00:00
range.c merge revision(s) 52868: [Backport #11767] 2015-12-04 01:56:19 +00:00
rational.c merge revision(s) 50406,50407: [Backport #11075] 2015-05-21 05:02:07 +00:00
re.c merge revision(s) 53784: [Backport #11495] 2016-02-25 11:00:43 +00:00
regcomp.c merge r47598 partially. extracted commits are as follows. [Bug #9728] 2014-10-15 15:05:45 +00:00
regenc.c Revert r41786 "broken utf-8" 2013-07-09 07:38:15 +00:00
regenc.h
regerror.c merge r46831 partially. extracted commits are as follows. 2014-08-19 15:03:26 +00:00
regexec.c merge r47598 partially. extracted commits are as follows. [Bug #9728] 2014-10-15 15:05:45 +00:00
regint.h
regparse.c merge r46831 partially. extracted commits are as follows. [Bug #9344] 2014-09-10 14:30:48 +00:00
regparse.h
regsyntax.c
ruby.c gc.c: Load GC tuning settings earlier during boot. 2013-12-05 00:19:13 +00:00
ruby_atomic.h merge revision(s) 52892: [Backport #11775] 2015-12-08 02:54:17 +00:00
safe.c safe.c: ruby_safe_level_4_warning 2013-07-20 06:02:54 +00:00
signal.c merge revision(s) r49463: [Backport #10814] 2015-02-01 17:58:02 +00:00
siphash.c siphash.c: fix missing condition 2013-11-30 04:28:15 +00:00
siphash.h
sparc.c
sprintf.c merge revision(s) r46569: [Backport #9982] 2014-09-03 15:25:51 +00:00
st.c merge revision(s) r45642,r45643: [Backport #9646] [Backport #9729] 2014-07-06 14:28:18 +00:00
strftime.c
string.c merge revision(s) 54210: [Backport #12204] 2016-03-25 09:41:52 +00:00
struct.c merge revision(s) r45462,r45463,r45466: [Backport #9684] 2014-07-03 15:37:51 +00:00
thread.c merge revision(s) r49428: [Backport #10694] 2015-03-09 17:40:36 +00:00
thread_native.h * thread_native.h: add rb_nativethread_self() which returns 2013-07-23 10:46:37 +00:00
thread_pthread.c merge revision(s) 54256: [Backport #12118] [Backport #12218] 2016-03-29 12:07:49 +00:00
thread_pthread.h * thread_(pthread|win32).h: rename rb_thread_cond_t to 2013-07-23 10:50:32 +00:00
thread_win32.c merge revision(s) r45947,r45951: [Backport #9739] [Backport #9844] 2014-06-23 15:08:11 +00:00
thread_win32.h * thread_(pthread|win32).h: rename rb_thread_cond_t to 2013-07-23 10:50:32 +00:00
time.c merge revision(s) r47196: [Backport #10144] 2014-09-09 18:10:18 +00:00
timev.h
transcode.c merge revision(s) 49096,51353,53168,53169: [Backport #11834] 2016-03-25 08:13:18 +00:00
transcode_data.h
util.c merge revision(s) 50671: [Backport #11192] 2015-07-03 09:39:18 +00:00
variable.c merge revision(s) 54231: [Backport #12121] 2016-03-25 09:42:52 +00:00
version.c version.c: EXIT_SUCCESS 2013-11-28 07:34:18 +00:00
version.h * 2016-04-22 2016-04-22 09:10:35 +00:00
vm.c merge revision(s) 51713: [Backport #11492] [Backport #11646] 2015-11-18 11:17:54 +00:00
vm_backtrace.c * error.c: add Exception#backtrace_locations. 2013-12-13 04:31:06 +00:00
vm_core.h merge revision(s) r49685,r49687: [Backport #10885] 2015-03-17 17:34:01 +00:00
vm_debug.h
vm_dump.c merge revision(s) 52124: [Backport #11591] 2015-10-29 13:56:42 +00:00
vm_eval.c merge revision(s) 50430,50440: [Backport #11117] 2015-07-03 08:55:40 +00:00
vm_exec.c * vm_exec.h (VM_DEBUG_STACKOVERFLOW): added. 2013-12-18 05:33:50 +00:00
vm_exec.h * vm_exec.h (VM_DEBUG_STACKOVERFLOW): added. 2013-12-18 05:33:50 +00:00
vm_insnhelper.c merge revision(s) 49898: [Backport #10951] 2015-06-17 02:41:18 +00:00
vm_insnhelper.h * include/ruby/ruby.h: rename OBJ_WRITE and OBJ_WRITTEN into 2013-12-20 08:07:47 +00:00
vm_method.c merge revision(s) r49184: [Backport #10707] 2015-03-30 15:45:35 +00:00
vm_opts.h
vm_trace.c merge revision(s) 52476,52477: [Backport #11603] 2015-11-18 11:26:40 +00:00
vsnprintf.c merge revision(s) r46098: [Backport #9861] 2014-06-29 17:17:20 +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-like/POSIX compatible platforms
    as well as Windows, Mac OS X, BeOS etc.)
    cf. http://bugs.ruby-lang.org/projects/ruby-trunk/wiki/SupportedPlatforms


== How to get Ruby

For a complete list of ways to install Ruby, including using third party
tools like rvm, see:

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

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

Or if you are using git then use the following command:

  $ git clone git://github.com/ruby/ruby.git

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/

Or if you are using git then use the following command:

  $ git ls-remote git://github.com/ruby/ruby.git

== 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 <mailto:ruby-talk-ctl@ruby-lang.org>.


== How to compile and install

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

0.   If you want to use Microsoft Visual C++ to compile ruby,
     read win32/README.win32 instead of this document.

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 <tt>optflags=..</tt> and <tt>warnflags=..</tt> as
     necessary to override them.

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

4.   Remove comment mark(<tt>#</tt>) 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 "<tt>#option nodynamic</tt>" in
     +ext/Setup+.

     Usually this step will not be needed.

5.   Run +make+.

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

7.   Run '<tt>make install</tt>'

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

     * <tt>${DESTDIR}${prefix}/bin</tt>
     * <tt>${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}</tt>
     * <tt>${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}</tt>
     * <tt>${DESTDIR}${prefix}/lib</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/site_ruby</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/vendor_ruby</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}</tt>
     * <tt>${DESTDIR}${prefix}/lib/ruby/gems/${MAJOR}.${MINOR}.${TEENY}</tt>
     * <tt>${DESTDIR}${prefix}/share/man/man1</tt>
     * <tt>${DESTDIR}${prefix}/share/ri/${MAJOR}.${MINOR}.${TEENY}/system</tt>

     If Ruby's API version is '_x.y.z_', the <tt>${MAJOR}</tt> is '_x_', the
     <tt>${MINOR}</tt> is '_y_', and the <tt>${TEENY}</tt> 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.

Some extension libraries may not get compiled because of lack of
necessary external libraries and/or headers, then you will need to run
'<tt>make distclean-ext</tt>' to remove old configuration after
installing them in such case.

== Copying

See the file +COPYING+.

== Feedback

Questions about the Ruby language can be asked on the Ruby-Talk mailing list
(http://www.ruby-lang.org/en/community/mailing-lists) or on websites like
(http://stackoverflow.com).

Bug reports should be filed at http://bugs.ruby-lang.org

== The Author

Ruby was originally designed and developed by Yukihiro Matsumoto (Matz) in 1995.

<mailto:matz@ruby-lang.org>

--
Local variables:
mode: rdoc
end: