55987 Commits

Author SHA1 Message Date
Takashi Kokubun
f3c877e8de
Ignore ~/.gitconfig on tool/vcs.rb git commands
Because some `log.*` git configs may change the result of `git log`,
`RUBY_LAST_COMMIT_TITLE` can be wrongly formatted and break version.c
compilation. So the `git log` executions should not respect user's gitconfig.
2019-06-05 20:23:23 +09:00
Nobuyoshi Nakada
84c294eb0b
spec/bundler/bundler/dsl_spec.rb: fix exception to raise
When describing "Runtime errors", raise a `RuntimeError` as-is.
2019-06-05 15:51:48 +09:00
Martin Dürst
f258137083 Fix grammar of macro name: ECCESSED -> ECCESSIVE
Fix the name of the macro variable introduced in 0872ea5330
from NODE_SPECIAL_EXCESSED_COMMA to NODE_SPECIAL_EXCESSIVE_COMMA.
2019-06-05 14:03:50 +09:00
Nobuyoshi Nakada
1624d77f3e
error.c: avoid infinite recursion at inspecting the frozen object 2019-06-05 13:31:09 +09:00
Nobuyoshi Nakada
b2fe7484e7
Test for f1f04caf60e4fc9dc3b12109e0be831f2d692810 2019-06-05 12:57:14 +09:00
Nobuyoshi Nakada
542d69c894
Revert "vcs.rb support non-inplace build"
This reverts commit 22cd4027349f803efc7ede284376b7a7013f8dfe.

It did not make sense due to a typo `@srcidr`.
2019-06-05 12:04:11 +09:00
Nobuyoshi Nakada
aa8a8d8f6d
Split an assertion for f1f04caf60e4fc9dc3b12109e0be831f2d692810 2019-06-05 12:04:11 +09:00
aycabta
c75a3356b3 Move I/O access from Reline::KeyStroke to Reline 2019-06-05 11:29:59 +09:00
git
7c776038ec * expand tabs. 2019-06-05 11:29:04 +09:00
Jeremy Evans
f1f04caf60 Include inspect value of object in FrozenError messages
FrozenError#receiver was added recently for getting the related
object programmatically.  However, there are cases where FrozenError
is raised and not handled, and in those cases the resulting error
messages lack detail, which makes debugging the error more difficult,
especially in cases where the error is not easily reproducible.
This includes the inspect value of the frozen object in FrozenError
messages, which should make debugging simpler.
2019-06-04 19:25:03 -07:00
Jeremy Evans
96d6527424 Add some documentation to Timeout#timeout about possible issues
Documentation requested in [Bug #15886].
2019-06-04 19:19:37 -07:00
Nobuyoshi Nakada
a105831819
tool/runruby.rb: support RUNRUBY_USE_LLDB as well as RUNRUBY_USE_GDB 2019-06-05 11:11:45 +09:00
Nobuyoshi Nakada
26d02cc7cd
tool/runruby.rb: load the default lldb scripts 2019-06-05 11:11:45 +09:00
Nobuyoshi Nakada
5859ea1b1b
tool/runruby.rb: load .gdbinit explicitly 2019-06-05 11:11:44 +09:00
git
6b66a76f43 * expand tabs. 2019-06-05 11:01:59 +09:00
Takashi Kokubun
71b14affc6
Revert "Optimize CGI.escapeHTML by reducing buffer extension"
This reverts commit 8d81e59aa7a62652caf85f9c8db371703668c149.

`ALLOCA_N` does not check stack overflow unlike ALLOCV. I'll fix it and
re-commit it again.
2019-06-05 11:00:54 +09:00
git
804a7907a8 * 2019-06-05 2019-06-05 10:13:25 +09:00
Takashi Kokubun
8d81e59aa7
Optimize CGI.escapeHTML by reducing buffer extension
and switch-case branches.

Buffer allocation optimization using `ALLOCA_N` would be the main
benefit of patch. It eliminates the O(N) buffer extensions.

It also reduces the number of branches using escape table like
https://mattn.kaoriya.net/software/lang/c/20160817011915.htm.

Closes: https://github.com/ruby/ruby/pull/2226

Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-authored-by: Yasuhiro MATSUMOTO <mattn.jp@gmail.com>
2019-06-05 10:08:55 +09:00
git
b31e1b4a7c * expand tabs. 2019-06-04 23:17:38 +09:00
Yusuke Endoh
0b0c6cb7e4 compile.c: Remove the magical (const NODE*) -1
It is used to represent "no default expression" for keyword argument:
`def foo(key:)`.  This change uses NODE_SPECIAL_REQUIRED_KEYWORD.
2019-06-04 23:17:19 +09:00
Yusuke Endoh
0872ea5330 node.h: Avoid a magic number to represent excessed comma
`(ID)1` was assigned to NODE_ARGS#rest_arg for `{|x,| }`.
This change removes the magic number by introducing an explicit macro
variable for it: NODE_SPECIAL_EXCESSED_COMMA.
2019-06-04 23:17:18 +09:00
Nobuyoshi Nakada
39eae6bf89
tool/vcs.rb: return the commit date as the modified time 2019-06-04 21:27:46 +09:00
git
2e2cd8297b * expand tabs. 2019-06-04 19:55:04 +09:00
Nobuyoshi Nakada
2c60f37143
random_mt_type
* random.c: renamed random_data_type as random_mt_type, and append
  "MT" to `wrap_struct_name`, respecting the implementation.
2019-06-04 19:50:41 +09:00
Nobuyoshi Nakada
c8b001858e
Revert "marshal.c: new functions for extensions"
This reverts a commit miss, 24a96a0228ccf355826644a9daad69e11b67b53b.
2019-06-04 19:06:19 +09:00
Nobuyoshi Nakada
9e472e18d2
suppress marshal warnings 2019-06-04 19:00:48 +09:00
Nobuyoshi Nakada
24a96a0228
marshal.c: new functions for extensions
* marshal.c (rb_marshal_dump_limited): new function for extension
  libraries to dump object with limited nest level.

* marshal.c (rb_marshal_load_with_proc): new function for extension
  libraries to load object with hook proc.
2019-06-04 18:59:03 +09:00
Nobuyoshi Nakada
51d27d25d7
test/lib/test/unit.rb: use colorize.rb 2019-06-04 18:51:49 +09:00
Nobuyoshi Nakada
e7aa87c353
Renamed duplicate test 2019-06-04 18:33:34 +09:00
Nobuyoshi Nakada
fade26afa7
colorize.rb: get rid of syntax errors on older versions 2019-06-04 18:10:49 +09:00
Nobuyoshi Nakada
a57d6d2325
colorize.rb: make colors_file optional
[ci skip]
2019-06-04 18:08:35 +09:00
Nobuyoshi Nakada
b0c35ff2db
colorize.rb: fix reading from test/colors
[ci skip]
2019-06-04 17:26:23 +09:00
Nobuyoshi Nakada
16cb1fb007
extlibs.rb: colorize
[ci skip]
2019-06-04 17:09:16 +09:00
Nobuyoshi Nakada
58fd27d3d8
colorize.rb: read test/colors file afer $TEST_COLORS
[ci skip]
2019-06-04 17:07:33 +09:00
git
ce4b5d90b2 * remove trailing spaces. [ci skip] 2019-06-04 12:39:25 +09:00
Kazuhiro NISHIYAMA
8406547b7c
Azure Pipelines run on master instead of trunk [ci skip] 2019-06-04 12:39:03 +09:00
Kazuhiro NISHIYAMA
c1e2d50531
Azure Pipelines run on master instead of trunk [ci skip] 2019-06-04 12:37:25 +09:00
git
b0cb4bdb4e * expand tabs. 2019-06-04 11:40:21 +09:00
Yusuke Endoh
7866ed850c node.c: Show the ID of internal variable 2019-06-04 11:39:27 +09:00
git
14b5ccf91b * expand tabs. 2019-06-04 09:36:32 +09:00
Nobuyoshi Nakada
aa8d393d8a
EOF by 2 ^D on a TTY
Terminate the input from a TTY by 2 ^D at the middle of line, like
as many programs, `cat`, `perl` and so on, do.  By the first ^D,
the line will be sent without a newline, and then EOF will be send
by the next ^D.
2019-06-04 09:24:17 +09:00
aycabta
9a07915ae2 Add aliases for commands for changing text macro 2019-06-04 08:35:01 +09:00
Takashi Kokubun
d950cade53
azure-pipelines.yml: Upgrade Ruby for UseRubyVersion
to fix
https://dev.azure.com/rubylang/ruby/_build/results?buildId=1162&view=logs
2019-06-04 08:33:04 +09:00
aycabta
4b7213a85a Implement transpose-words 2019-06-04 07:23:36 +09:00
Aaron Patterson
c9b74f9fd9
Pin keys in "compare by identity" hashes
Hashes that compare by identity care about the location of the object in
memory.  Since they care about the memory location, we can't let them
move.
2019-06-03 15:15:48 -07:00
Aaron Patterson
790a1b1790
object id is stable now for all objects, so we can let hash keys move 2019-06-03 13:38:47 -07:00
Aaron Patterson
2de3d92844
allow objects in imemo envs to move 2019-06-03 13:38:47 -07:00
Aaron Patterson
4eb1c2365c
Unpin objects that proc references
This commit adds compaction support to method and proc objects.  It just
unpins references and implements the "compact" callback and updates
references.
2019-06-03 13:38:47 -07:00
NAKAMURA Usaku
ca22cccc14
get rid of a warning of VC++ 2019-06-04 03:52:53 +09:00
Takashi Kokubun
1a0b82210c
Upgrade benchmark-driver to fix deprecation warning 2019-06-04 01:03:03 +09:00