Commit Graph
2074 Commits
Author SHA1 Message Date
Nobuyoshi Nakada 996af2ce08 Disable deprecation warning by the default [Feature #16345]
And `-w` option turns it on.
2020-09-25 09:50:33 +09:00
Hiroshi SHIBATA ba889100d8 Bundle rbs gem as bundled gems (#3496)
* Added rbs as bundled gems
* Added the missing dependencies for rbs gem
2020-09-23 10:59:49 +09:00
Hiroshi SHIBATA 6dd257ed1e Added sync task for bigdecimal 2020-09-18 18:47:52 +09:00
Hiroshi SHIBATA 3d86f7a37c The executable file of erb is under the libexec on ruby/erb repo 2020-09-18 18:44:46 +09:00
Nobuyoshi Nakada 9fbbbadc96 Added just working Test::Unit::CoreAssertions#diff
This is not "diff", but show expected and actual results both,
just to get rid of `NoMethodError` when an assertion failed.
2020-09-14 18:19:40 +09:00
Hiroshi SHIBATA 6042b7433d Promote time.rb to default gems 2020-09-12 08:29:06 +09:00
Hiroshi SHIBATA 01e0d74965 Promote resolv-replace to default gems 2020-09-11 22:01:08 +09:00
Hiroshi SHIBATA e0675b1c76 Promote resolv to default gems 2020-09-11 21:50:07 +09:00
Hiroshi SHIBATA d1851ba5b9 Promote securerandom to default gems 2020-09-11 21:15:25 +09:00
Hiroshi SHIBATA 2f24818319 Promote open-uri to default gems 2020-09-11 20:38:18 +09:00
Nobuyoshi Nakada 0d78390bfb rbinstall.rb: OpenStruct has not been needed for years
Since 6f3e8df133 in 2014.
2020-09-11 13:26:20 +09:00
Hiroshi SHIBATA 867204c4a5 Promote syslog to default gems 2020-09-10 20:42:53 +09:00
Hiroshi SHIBATA cf76a4a5c2 Promote base64 to default gems 2020-09-10 18:56:17 +09:00
Hiroshi SHIBATA cf681038d6 Promote shellwords to default gems 2020-09-10 18:56:17 +09:00
Hiroshi SHIBATA cee8e95761 Promote abbrev to default gems 2020-09-10 18:56:16 +09:00
Hiroshi SHIBATA 01828a955a Promote tsort to default gems 2020-09-09 21:53:09 +09:00
Hiroshi SHIBATA b194973dcd Revert the related commits about Tempfile.open change.
Start with https://github.com/ruby/ruby/commit/fa21985a7a2f8f52a8bd82bd12a724e9dca74934
  to https://github.com/ruby/ruby/commit/d7492a0be885ea9f2b9f71e3e95582f9a859c439
2020-09-09 21:10:48 +09:00
Nobuyoshi Nakada dd83d0c599 update-deps: ruby-runner is not a target 2020-09-05 23:16:23 +09:00
Koichi Sasada 79df14c04b Introduce Ractor mechanism for parallel execution
This commit introduces Ractor mechanism to run Ruby program in
parallel. See doc/ractor.md for more details about Ractor.
See ticket [Feature #17100] to see the implementation details
and discussions.

[Feature #17100]

This commit does not complete the implementation. You can find
many bugs on using Ractor. Also the specification will be changed
so that this feature is experimental. You will see a warning when
you make the first Ractor with `Ractor.new`.

I hope this feature can help programmers from thread-safety issues.
2020-09-03 21:11:06 +09:00
Alan Wu 4c3f0597de Remove the pc argument of vm_trace()
This makes the binary 272 bytes smaller on -O3 GCC 10.2.0.
2020-09-01 22:02:29 -04:00
David Rodríguez 6b43200948 Fix syncing bundler man pages
`rm_rf` does not support globbing, so not all files get deleted.
2020-09-01 21:18:15 +09:00
Benoit Daloze e8c3872555 Simplify Tempfile.open calls with a block as they now unlink the file automatically 2020-08-29 12:23:23 +02:00
Benoit Daloze 232d6c4077 Use a constant instead of a global variable in sync_default_gems.rb 2020-08-29 11:51:05 +02:00
Hiroshi SHIBATA 2e3a7f70ae Promote nkf to default gems 2020-08-25 21:17:19 +09:00
Hiroshi SHIBATA 8c97883b73 Promote erb to default gems 2020-08-21 20:18:44 +09:00
Hiroshi SHIBATA bc374e5cea Promote rinda to default gems 2020-08-21 18:10:03 +09:00
Hiroshi SHIBATA dfda2f739b Promote find to default gems 2020-08-20 21:00:53 +09:00
Hiroshi SHIBATA 8a40e9b5a2 Promote set to default gems 2020-08-20 12:39:11 +09:00
Nobuyoshi Nakada 7806b2e28b Use colorize.rb for non-capable terminals 2020-08-11 18:35:08 +09:00
Nobuyoshi Nakada 2e7fe3b687 Add default color for each instance 2020-08-11 18:35:07 +09:00
卜部昌平 acd8ee8dbc tool/prelude.c.tmpl: use RubyVM::CEscape
Do not repeat yourself.
2020-08-11 16:51:07 +09:00
卜部昌平 b0eb5aa344 RubyVM::CEscape#rstring2cstr: do not escape '
A single quote "is representable either by itself or by the escape
sequence", according to ISO/IEC 9899 (checked all versions).  So this is
not a bug fix.  But the generated output is a bit readable without
backslashes.
2020-08-11 16:51:07 +09:00
Hiroshi SHIBATA 8f71bb0e4f Fixed the inconsistency gemspec location with net-* gems. 2020-08-05 20:01:03 +09:00
Hiroshi SHIBATA 2346e2f0db Followed up b2d96abb42 for net-ftp. 2020-08-03 17:40:05 +09:00
Hiroshi SHIBATA 2bd1f827f1 Promote io-nonblock to the default gems. 2020-07-30 21:21:08 +09:00
Hiroshi SHIBATA d75b42a70a Promote io-wait to the default gems 2020-07-30 21:10:28 +09:00
Nobuyoshi Nakada f79dc8741f rbinstall.rb: fix generated script name to set mode 2020-07-29 23:02:33 +09:00
Nobuyoshi Nakada f0affcdbf6 rbinstall.rb: fix dry-run mode 2020-07-29 22:47:00 +09:00
Kazuhiro NISHIYAMA 946cd6c534 Use https instead of http 2020-07-28 19:51:54 +09:00
Vít Ondruch db0eab1c6f Remove EnvUtil.rubyexec, because it is not used anywhere. 2020-07-28 12:11:47 +09:00
Hiroshi SHIBATA 7befc0cdfc Promote optparse to default gems 2020-07-22 18:38:51 +09:00
卜部昌平 1fb4e28002 skip inlining cexpr! that are not attr! inline
Requested by ko1.
2020-07-16 11:49:09 +09:00
Nobuyoshi Nakada 9f4b7fc82e Check warning flags only if available to run with old versions 2020-07-15 23:33:24 +09:00
卜部昌平 8d3a084572 _mjit_compile_invokebuiltin: sp_inc can be negative
Was my bad to assume sp_inc was positive.  Real criteria is the
calculated sp is non-negative.  We have to assert that.
2020-07-14 13:15:06 +09:00
卜部昌平 927fe2422f mk_builtin_loader.rb: STACK_ADDR_FROM_TOP unusable
Stacks are emulated in MJIT, must not touch the original VM stack.

See also http://ci.rvm.jp/results/trunk-mjit-wait@silicon-docker/3061353
2020-07-13 12:30:43 +09:00
卜部昌平 7e536b3be2 builtin.h: avoid copy&paste
Instead of doubling the invokebuiltin logic here and there, use the same
insns.def definition for both MJIT/non-JIT situations.
2020-07-13 08:56:18 +09:00
卜部昌平 4506f6119a %p is not portable accross platforms
This commit fixes compiler error on MSVC.  %p on that platform is not
suitable to represent a compile-time constant.

https://ci.appveyor.com/project/ruby/ruby/builds/34017163/job/vj2a8uk3gwv9yxak#L24381
2020-07-13 08:56:18 +09:00
卜部昌平 2363a16e9a add comments 2020-07-13 08:56:18 +09:00
卜部昌平 5783d84a17 fix typo 2020-07-13 08:56:18 +09:00
卜部昌平 9721f477c7 inline Primitive.cexpr!
We can obtain the verbatim source code of Primitive.cexpr!.  Why not
paste that content into the JITed program.
2020-07-13 08:56:18 +09:00