The Wayback Machine - https://web.archive.org/web/20190410183458/https://github.com/ruby/ruby
Skip to content
Please note that GitHub no longer supports your web browser.

We recommend upgrading to the latest Google Chrome or Firefox.

Learn more
The Ruby Programming Language [mirror] https://www.ruby-lang.org/
Branch: trunk
Clone or download
k0kubun Set a meaningful name to all Azure jobs
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67510 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Latest commit cf781b0 Apr 10, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
basictest
benchmark
bin bin/erb: improve documentation of -P flag Dec 16, 2018
bootstraptest
ccan
coroutine
coverage
cygwin
defs
doc doc/signals.rdoc: Clarify a bit where Signal.trap handlers are executed Apr 7, 2019
enc remove Unicode 12.0.0 related directory and generated files Apr 5, 2019
ext ext/openssl/ossl_bn.c (ossl_bn_initialize): get rid of SEGV Apr 10, 2019
gems
include
lib Reverting all commits from r67479 to r67496 because of CI failures Apr 10, 2019
libexec
man Merge Bundler 2.0.1 from upstream. Jan 4, 2019
misc Fix typo in lldb script Apr 2, 2019
missing
sample
spec Introduce beginless range [Feature#14799] Apr 3, 2019
template
test ext/openssl/ossl_bn.c (ossl_bn_initialize): get rid of SEGV Apr 10, 2019
tool
win32 FindFirstFile cannot glob share names Mar 4, 2019
.dir-locals.el
.document
.editorconfig
.gdbinit
.gitattributes
.gitignore
.indent.pro
.travis.yml
BSDL
CONTRIBUTING.md [DOC] Please see _the_ official issue tracker... [ci skip] Jun 13, 2014
COPYING
COPYING.ja COPYING: reformat as RDoc Feb 2, 2019
GPL * GPL: update text of GPLv2. [ruby-core:44488] [Bug #6328] Jun 3, 2012
KNOWNBUGS.rb
LEGAL Split procstat_vm.c Feb 7, 2019
Makefile.in
NEWS
README.EXT
README.EXT.ja
README.ja.md
README.md
aclocal.m4 configure.ac: check finite,isinf,isnan as macros first Feb 8, 2019
addr2line.c
addr2line.h
appveyor.yml
array.c
ast.c [DOC] fix markups [ci skip] Mar 22, 2019
azure-pipelines.yml
bignum.c
class.c Reverting all commits from r67479 to r67496 because of CI failures Apr 10, 2019
common.mk
compar.c
compile.c
complex.c
configure.ac
constant.h
cont.c
debug.c
debug_counter.c Add debug counters for MJIT cancel Mar 29, 2019
debug_counter.h Add debug counter for VM <-> MJIT calls Apr 6, 2019
dir.c [DOC] fix markups [ci skip] Mar 22, 2019
dln.c
dln.h
dln_find.c
dmydln.c
dmyenc.c load.c: tweak the return value Dec 3, 2014
dmyext.c
encindex.h
encoding.c [DOC] fix markups [ci skip] Mar 22, 2019
enum.c
enumerator.c
error.c
eval.c
eval_error.c eval_error.c: should not escapce newline and tab Jan 24, 2019
eval_intern.h
eval_jump.c
file.c
gc.c Adjusted styles Apr 10, 2019
gc.h
gem_prelude.rb
golf_prelude.rb
goruby.c
hash.c Reverting all commits from r67479 to r67496 because of CI failures Apr 10, 2019
hrtime.h
ia64.S
id_table.c
id_table.h
inits.c initialize VM postponed_job first. [Bug #15288] Nov 8, 2018
insns.def
internal.h
io.c
iseq.c
iseq.h Reverting all commits from r67479 to r67496 because of CI failures Apr 10, 2019
lex.c.blt
load.c
loadpath.c
localeinit.c internal.h: remove dependecy on ruby/encoding.h Jan 9, 2018
main.c
marshal.c
math.c math.c: adjust cbrt Jun 6, 2018
method.h
miniinit.c miniinit.c: built-in encoding aliases Dec 26, 2015
mjit.c Prevent mjit length counters from being 0 Mar 29, 2019
mjit.h Add debug counter for VM <-> MJIT calls Apr 6, 2019
mjit_compile.c
mjit_worker.c
node.c
node.h
numeric.c
object.c object.c: fix searching nested const paths Apr 8, 2019
pack.c
parse.y
prelude.rb Improve TracePoint docs. Mar 20, 2019
probes.d
probes_helper.h
proc.c range.c: force hash values fixable Apr 8, 2019
process.c
random.c
range.c
rational.c
re.c
regcomp.c
regenc.c Merge Onigmo 6.1.1 Feb 11, 2017
regenc.h
regerror.c regerror.c: lenghten MAX_ERROR_PAR_LEN to contain old property names Oct 16, 2018
regexec.c
regint.h
regparse.c
regparse.h
regsyntax.c
ruby-runner.c
ruby.c
ruby_assert.h
ruby_atomic.h
rubystub.c
safe.c
signal.c [DOC] fix markups [ci skip] Mar 28, 2019
siphash.c switch SipHash from SipHash24 to SipHash13 variant Jan 20, 2017
siphash.h blacklist UBSAN's unsigned integer overflow Nov 7, 2018
sparc.c
sprintf.c sprintf.c: fix typo Apr 22, 2018
st.c Reverting all commits from r67479 to r67496 because of CI failures Apr 10, 2019
strftime.c
string.c
struct.c
symbol.c
symbol.h
thread.c
thread_pthread.c
thread_pthread.h
thread_sync.c thread_sync.c (rb_mutex_t): eliminate fork_gen Dec 22, 2018
thread_win32.c thread.c (call_without_gvl): spawn thread for UBF iff single-threaded Jan 4, 2019
thread_win32.h * ext/openssl/depend: remove dependency from internal headers. May 14, 2014
time.c
timev.h
transcode.c Prefer rb_check_arity when 0 or 1 arguments Dec 6, 2018
transcode_data.h
transient_heap.c
transient_heap.h
util.c
variable.c
version.c
version.h * 2019-04-10 Apr 10, 2019
vm.c
vm_args.c
vm_backtrace.c
vm_core.h
vm_debug.h
vm_dump.c
vm_eval.c
vm_exec.c
vm_exec.h
vm_insnhelper.c * expand tabs. Apr 5, 2019
vm_insnhelper.h Share vm_call_iseq_optimizable_p to reduce copy-paste Mar 21, 2019
vm_method.c
vm_opts.h
vm_trace.c
vsnprintf.c avoid division by zero Nov 16, 2018
wercker.yml

README.md

Build Status wercker status Build status Build Status

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 (e.g. class, method calls)
  • Advanced Object-oriented Features (e.g. mix-in, singleton-method)
  • Operator Overloading
  • Exception Handling
  • Iterators and Closures
  • Garbage Collection
  • Dynamic Loading of Object Files (on some architectures)
  • Highly Portable (works on many Unix-like/POSIX compatible platforms as well as Windows, macOS, Haiku, etc.) cf. https://github.com/ruby/ruby/blob/trunk/doc/contributing.rdoc#platform-maintainers

How to get Ruby

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

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

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

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

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

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

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

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

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

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

Ruby home page

The URL of the Ruby home page is:

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

Mailing list

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

subscribe

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

How to compile and install

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

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

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

  3. 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.

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

  5. 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 do not allow dynamic loading), remove comment mark from the line "#option nodynamic" in ext/Setup.

    Usually this step will not be needed.

  6. Run make.

    • On Mac, set RUBY_CODESIGN environment variable with a signing identity. It uses the identity to sign ruby binary. See also codesign(1).
  7. Optionally, run 'make check' to check whether the compiled Ruby interpreter works well. If you see the message "check succeeded", your Ruby works as it should (hopefully).

  8. Optionally, run make update-gems and make extract-gems.

    If you want to install bundled gems, run make update-gems and make extract-gems before running make install.

  9. Run 'make install'.

    This command will create the following directories and install files into 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.

Some extension libraries may not get compiled because of lack of necessary external libraries and/or headers, then you will need to run 'make distclean-ext' 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 (https://www.ruby-lang.org/en/community/mailing-lists) or on websites like (https://stackoverflow.com).

Bug reports should be filed at https://bugs.ruby-lang.org. Read HowToReport for more information.

Contributing

See the file CONTRIBUTING.md

The Author

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

matz@ruby-lang.org

You can’t perform that action at this time.
Morty Proxy This is a proxified and sanitized view of the page, visit original site.