1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
The Ruby Programming Language [mirror]
Find a file
usa 17840baed9 Bump version to 2.4.10
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_2_4@67874 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2020-03-31 10:54:03 +00:00
basictest basictest: --run-opt option 2016-10-19 05:22:51 +00:00
benchmark merge revision(s) 57283,57284: [Backport #13113] 2017-03-11 15:03:50 +00:00
bin
bootstraptest \s includes \t 2016-10-11 16:36:14 +00:00
ccan
coverage
cygwin rubystub 2016-08-20 02:20:34 +00:00
defs separated_version.mk: option for linux [ci skip] 2016-10-18 06:55:15 +00:00
doc merge revision(s) 57665: [Backport #13229] 2017-03-12 14:06:33 +00:00
enc merge revision(s) 58438,58439,58451: [Backport #13493] 2018-03-20 13:38:19 +00:00
ext merge revision(s) 36e9ed7fef: [Backport #16698] 2020-03-31 10:51:26 +00:00
gems Update xmlrpc-0.2.1 for Ruby 2.4.0 release. 2016-12-22 03:53:53 +00:00
include merge revision(s) 61323: [Backport #15069] 2018-10-17 07:56:26 +00:00
lib lib/shell/command-processor.rb (Shell#[]): prevent unknown command 2019-10-01 11:06:17 +00:00
man merge revision(s) 58410,58411: [Backport #13487] 2017-12-20 15:34:37 +00:00
misc ruby-additional.el: unquoted code block 2016-11-16 06:59:40 +00:00
missing rubystub 2016-08-20 02:20:34 +00:00
nacl
sample merge revision(s) 57530: [Backport #13191] 2017-07-23 07:50:10 +00:00
spec default.mspec: end of options 2016-11-09 02:42:30 +00:00
template Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
test lib/shell/command-processor.rb (Shell#[]): prevent unknown command 2019-10-01 11:06:17 +00:00
tool merge revision(s) 65667: [Backport #15284] 2019-01-31 11:08:07 +00:00
win32 merge revision(s) 64913: [Backport #15223] 2018-10-17 08:11:45 +00:00
.document * .document: [DOC] add rbconfig. [ci skip] 2016-09-14 12:52:00 +00:00
.editorconfig Add config for *.yml [ci skip] 2016-10-30 11:57:41 +00:00
.gdbinit Use rb_mod_name instead of classname 2016-11-15 12:42:04 +00:00
.gitattributes
.gitignore merge revision(s) 58438,58439,58451: [Backport #13493] 2018-03-20 13:38:19 +00:00
.indent.pro
.travis.yml merge revision(s) 57165: 2017-03-11 18:59:50 +00:00
acinclude.m4 acinclude.m4: rename 2016-01-03 03:12:20 +00:00
aclocal.m4 aclocal.m4: add 2016-01-03 10:22:12 +00:00
addr2line.c addr2line.c: boundary checks 2016-10-18 15:09:08 +00:00
addr2line.h
appveyor.yml Use environment variable for system ruby detection on appveyor. 2016-11-10 06:38:14 +00:00
array.c merge revision(s) 66756: [Backport #15479] 2019-01-31 10:58:49 +00:00
bignum.c merge revision(s) 59986: [Backport #13928] 2018-02-03 02:05:17 +00:00
BSDL
class.c merge revision(s) 59624,59626: [Backport #13830] 2017-09-10 03:49:10 +00:00
common.mk Regexp supports Unicoe 9.0.0's \X 2016-11-30 17:29:19 +00:00
compar.c Comparable#clamp 2016-08-11 07:24:25 +00:00
compile.c merge revision(s) 64745: [Backport #15118] 2018-10-17 09:10:26 +00:00
complex.c merge revision(s) 62107: [Backport #14420] 2018-03-21 15:27:09 +00:00
configure.in revert r65112, because of fearing an imcompatibility 2018-10-17 08:30:28 +00:00
constant.h merge revision(s) 62394,62395: [Backport #14469] 2018-03-25 05:35:17 +00:00
cont.c Revert r66968 2019-02-01 02:17:14 +00:00
CONTRIBUTING.md
COPYING * ChangeLog: Remove trailing-whitespaces. 2016-05-11 01:33:30 +00:00
COPYING.ja
debug.c * debug.c (ruby_debug_printf): use rb_raw_obj_info() 2016-07-25 08:00:46 +00:00
dir.c merge revision(s) a0a2640b39 2019-10-01 11:04:48 +00:00
dln.c dln.c: raise LoadError 2016-11-19 01:16:50 +00:00
dln.h
dln_find.c dln_find.c: MAXPATHLEN is not used already 2016-06-02 16:52:15 +00:00
dmydln.c * configure.in: add -Wsuggest-attribute=noreturn and suppress warnings. 2016-05-08 00:55:28 +00:00
dmyenc.c
dmyext.c
encindex.h
encoding.c encoding.c: handle needmore error from rb_enc_precise_mbclen() 2016-12-14 12:32:42 +00:00
enum.c merge revision(s) 64014: [Backport #14926] 2018-08-27 14:11:19 +00:00
enumerator.c merge revision(s) 62731,62735: [Backport #14495] 2018-08-27 13:47:40 +00:00
error.c merge revision(s) 63417: [Backport #14756] 2018-07-31 14:01:54 +00:00
eval.c merge revision(s) 67201: [Backport #15650] 2019-03-31 15:01:13 +00:00
eval_error.c Add clang volatile fixes from FreeBSD and NetBSD. 2016-12-07 23:27:51 +00:00
eval_intern.h eval_intern.h: make TH_PUSH_TAG() initialize rb_vm_tag::tag with Qundef 2016-09-26 06:43:51 +00:00
eval_jump.c eval_jump.c: restore previous error info 2016-04-22 06:09:29 +00:00
file.c merge revision(s) 60596,60599: [Backport #14060] 2018-06-30 13:06:35 +00:00
gc.c merge revision(s) 61564,61565,61571: [Backport #14270] 2018-03-20 14:18:34 +00:00
gc.h
gem_prelude.rb Reduce system calls by activating the did_you_mean gem. 2016-02-25 23:23:30 +00:00
golf_prelude.rb
goruby.c goruby.c: call Init_golf [ci skip] 2016-08-23 08:00:09 +00:00
GPL
hash.c merge revision(s) 63994: [Backport #14920] 2018-08-27 13:59:09 +00:00
ia64.s
id_table.c id_table.c: extend, don't shrink 2016-08-14 13:35:42 +00:00
id_table.h id_table.h: dummy sentinel 2016-08-06 00:35:33 +00:00
inits.c
insns.def merge revision(s) 57278,57279: [Backport #12855] 2017-03-11 14:48:04 +00:00
internal.h merge revision(s) 61323: [Backport #15069] 2018-10-17 07:56:26 +00:00
io.c merge revision(s) 67188: [Backport #15642] 2019-03-31 14:58:24 +00:00
iseq.c merge revision(s) 64915: [Backport #15205] 2018-10-17 08:15:47 +00:00
iseq.h * iseq.h (struct iseq_compile_data): use struct rb_id_table 2016-05-14 18:43:11 +00:00
KNOWNBUGS.rb KNOWNBUGS.rb: Fixed typo, made more explicit [ci skip] 2015-12-13 01:45:00 +00:00
LEGAL merge revision(s) 62513: [Backport #12762] 2018-06-30 12:34:19 +00:00
lex.c.blt parse.y: symbol literals for alias/undef 2016-03-16 14:10:27 +00:00
load.c revert r62797, r62784. [Bug #13863] 2018-03-18 03:57:37 +00:00
loadpath.c
localeinit.c * remove trailing spaces. 2016-06-19 06:01:26 +00:00
main.c
Makefile.in revert r65112, because of fearing an imcompatibility 2018-10-17 08:30:28 +00:00
marshal.c merge revision(s) 57410,57619,57621,57631,57634: [Backport #13150] 2017-03-13 07:30:30 +00:00
math.c merge revision(s) 57778,57779: 2017-03-12 16:29:47 +00:00
method.h merge revision(s) 58245,60127: [Backport #13973] 2018-03-20 15:53:38 +00:00
miniinit.c miniinit.c: built-in encoding aliases 2015-12-26 02:26:40 +00:00
NEWS merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
node.c merge revision(s) 57733,57734: [Backport #13782] 2018-02-16 16:40:57 +00:00
node.h merge revision(s) 58503: [Backport #13523] 2017-08-03 13:29:12 +00:00
numeric.c merge revision(s) 63112: [Backport #14818] 2018-07-30 14:00:13 +00:00
object.c merge revision(s) 63334: [Backport #14729] 2019-01-31 10:47:59 +00:00
pack.c merge revision(s) 65125: 2018-10-17 15:08:59 +00:00
parse.y merge revision(s) 62872,62873: [Backport #14621] 2019-02-28 14:52:06 +00:00
prelude.rb merge revision(s) 57690-57694: 2017-03-12 07:53:34 +00:00
probes.d
probes_helper.h
proc.c merge revision(s) 63067,63068: [Backport #14658] 2018-10-17 09:25:11 +00:00
process.c merge revision(s) 63741: [Backport #14868] 2018-07-30 14:15:00 +00:00
random.c merge revision(s) 59368: [Backport #13753] 2017-08-05 06:46:23 +00:00
range.c range.c: check loading 2016-11-11 11:52:03 +00:00
rational.c merge revision(s) 62107: [Backport #14420] 2018-03-21 15:27:09 +00:00
re.c re.c: consider the case of RMatch::regexp is nil 2016-12-20 07:32:23 +00:00
README.EXT
README.EXT.ja
README.ja.md README{,.ja}.md: Drop support for BeOS now that Haiku is stable since 2.3.0. [ci skip] 2016-09-13 12:26:04 +00:00
README.md merge revision(s) 57483: 2017-03-11 19:06:22 +00:00
regcomp.c merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
regenc.c merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
regenc.h merge revision(s) 57816,57817: [Backport #13292] 2017-03-12 17:22:20 +00:00
regerror.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
regexec.c merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
regint.h merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
regparse.c merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
regparse.h merge revision(s) 57603: [Backport #12997] 2017-03-13 09:05:46 +00:00
regsyntax.c Merge Onigmo 6.0.0 2016-12-10 17:47:04 +00:00
ruby-runner.c ruby-runner.h 2016-04-14 01:30:12 +00:00
ruby.c merge revision(s) 64900: [Backport #15190] 2018-10-17 08:27:39 +00:00
ruby_assert.h fix build with VM_CHECK_MODE > 0 2016-01-25 08:34:00 +00:00
ruby_atomic.h Revert r52995 2015-12-09 07:30:44 +00:00
rubystub.c rubystub.c: sys/param.h for MAXPATHLEN 2016-08-20 05:58:58 +00:00
safe.c
signal.c signal.c: improve stack overflow check 2016-11-27 11:22:42 +00:00
siphash.c
siphash.h
sparc.c
sprintf.c merge revision(s) 58453,58454: [Backport #13499] 2017-05-09 14:46:24 +00:00
st.c merge revision(s) 62396: [Backport #14357] 2018-06-30 12:56:17 +00:00
strftime.c merge revision(s) 58210: [Backport #8916] 2017-07-09 20:02:04 +00:00
string.c merge revision(s) 62040: [Backport #14388] 2018-03-21 15:04:00 +00:00
struct.c merge revision(s) 57751,57753,57755: 2017-03-12 16:20:03 +00:00
symbol.c * symbol.c (is_identchar): use ISDIGIT instead of rb_enc_isalnum. 2016-05-26 16:51:49 +00:00
symbol.h Use HAVE_BUILTIN___BUILTIN_CONSTANT_P 2016-05-20 13:33:10 +00:00
thread.c Revert r66968 2019-02-01 02:17:14 +00:00
thread_pthread.c merge revision(s) 60384: [Backport #13887] 2018-03-10 02:46:51 +00:00
thread_pthread.h
thread_sync.c merge revision(s) 63711,64398: [Backport #14841] 2018-10-17 08:40:36 +00:00
thread_win32.c merge revision(s) 58370,58382: [Backport #13530] 2017-05-09 14:24:20 +00:00
thread_win32.h
time.c merge revision(s) 65974: [Backport #15340] 2019-01-31 10:59:53 +00:00
timev.h
transcode.c merge revision(s) 64879: [Backport #15162] 2019-01-31 10:36:30 +00:00
transcode_data.h
util.c revert r62797, r62784. [Bug #13863] 2018-03-18 03:57:37 +00:00
variable.c merge revision(s) 63696: [Backport #14853] 2018-08-27 13:48:53 +00:00
version.c version.c: no exit in ruby_show_copyright 2016-01-07 02:34:33 +00:00
version.h Bump version to 2.4.10 2020-03-31 10:54:03 +00:00
vm.c merge revision(s) 63727: [Backport #14865] 2018-07-30 14:11:50 +00:00
vm_args.c merge revision(s) 58245,60127: [Backport #13973] 2018-03-20 15:53:38 +00:00
vm_backtrace.c merge revision(s) 58471,58493: [Backport #13505] 2018-02-16 15:27:37 +00:00
vm_core.h merge revision(s) 62394,62395: [Backport #14469] 2018-03-25 05:35:17 +00:00
vm_debug.h
vm_dump.c merge revision(s) 59893,59922: [Backport #13895] 2018-03-03 02:39:47 +00:00
vm_eval.c merge revision(s) 59357,59358: [Backport #13391] [Backport #13404] 2017-08-04 14:31:52 +00:00
vm_exec.c * vm_insnhelper.h: rename REG_(CFP|PC|SP|EP) to VM_REG_.... 2016-11-05 16:31:25 +00:00
vm_exec.h
vm_insnhelper.c merge revision(s) 62394,62395: [Backport #14469] 2018-03-25 05:35:17 +00:00
vm_insnhelper.h merge revision(s) 58262,5826: [Backport #13369] 2017-07-09 19:47:28 +00:00
vm_method.c merge revision(s) 62725: [Backport #14604] 2018-03-25 06:11:14 +00:00
vm_opts.h
vm_trace.c merge revision(s) 60437: [Backport #14057] 2018-03-07 15:10:47 +00:00
vsnprintf.c merge revision(s) 58210: [Backport #8916] 2017-07-09 20:02:04 +00:00

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, Mac OS X, Haiku, etc.) cf. https://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:

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

The Ruby distribution files can be found on 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 https://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 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 git://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 mailto: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.in, 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. 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.

mailto:matz@ruby-lang.org