1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

56303 commits

Author SHA1 Message Date
Takashi Kokubun
d1e2650aca
Force-fetch unicode update only when it's needed
nobu said that we could be banned if we aggressively downloaded unicode
file from Travis.
2019-07-15 13:49:15 +09:00
Kazuhiro NISHIYAMA
929fa856ef
Add tool/leaked-globals to .gitattributes [ci skip] 2019-07-15 13:45:14 +09:00
Hiroshi SHIBATA
b401fb35a4
Removed needless LOAD_PATH modification.
We can use require_relative now.
2019-07-15 13:44:37 +09:00
Jeremy Evans
99afea5328 Add bug triaging guide
Implements [Misc ]
2019-07-14 21:41:12 -07:00
Hiroshi SHIBATA
badfbdf32c
Move vpath.rb into tool library direcotry. 2019-07-15 13:16:16 +09:00
Tanaka Akira
bd494ae79b add tests for "break" in lambda. 2019-07-15 12:59:53 +09:00
Koichi Sasada
8ac1c6eb48 respect RUBY_DEBUG too 2019-07-15 12:06:25 +09:00
Yusuke Endoh
76bad330aa encoding.c (enc_table_expand): prefer xrealloc to realloc
And raise an exception when failed to register an encoding
2019-07-15 12:01:22 +09:00
Koichi Sasada
c23e597674 respect RUBY_DEBUG.
see RUBY_DEBUG for each debug options.
2019-07-15 11:30:34 +09:00
Hiroshi SHIBATA
d02f2fc3e2
Added help message for test-tool target. 2019-07-15 11:19:13 +09:00
Hiroshi SHIBATA
ac6d137157
Added test-tool target for the test suite of tool/test files. 2019-07-15 11:16:29 +09:00
Hiroshi SHIBATA
41c5f9a166
Put jisx0208.rb to under the library directory. 2019-07-15 11:16:29 +09:00
Takashi Kokubun
73346823e1
Try to prevent random build failure on Travis osx 2019-07-15 11:04:16 +09:00
Kazuhiro NISHIYAMA
226d569e57
doc/irb/irb.rd.ja: Update options from irb -h [ci skip] 2019-07-15 11:03:24 +09:00
Nobuyoshi Nakada
a7fdb22373
Enable RUBY_ASSERT_MESG_WHEN when RUBY_DEBUG is turned on 2019-07-15 11:01:53 +09:00
Kazuhiro NISHIYAMA
05cc87df1b
[DOC] Struct::Passwd#uclass renamed from #class at r2500 [ci skip] 2019-07-15 10:53:05 +09:00
aycabta
e2512cff05 Move a test file of Reline to test/reline/ 2019-07-15 10:40:06 +09:00
Koichi Sasada
f326b4f4af simplify around GC_ASSERT() 2019-07-15 10:39:57 +09:00
Takashi Kokubun
dd4f128ac5
Handle failure of opening a null device
This issue is detected by Coverity Scan.
2019-07-15 10:39:07 +09:00
Takashi Kokubun
a191009a26
Simplify start_process by exploiting C99
Having a block for mixing a declaration was confusing.
Also I moved `dev_null` and `pid` to limit their scope.
2019-07-15 10:31:01 +09:00
Kazuhiro NISHIYAMA
b789648830
Change PROMPT_S of simple-prompt
When input `"` or `/` with simple-prompt,

Before:
`"` or `/`
(prompt disappeared and indent is changed)

After:
`"> "` or `/> /`
(indent is unchanged since `>> `)
2019-07-15 10:29:48 +09:00
Koichi Sasada
f6f09cbc76 introduce RUBY_ASSERT_ALWAYS(expr).
RUBY_ASSERT_ALWAYS(expr) ignores NDEBUG (we cannot remove this
assertion).
2019-07-15 10:21:41 +09:00
aycabta
0af897ab59 Simplify history saving code 2019-07-15 10:20:23 +09:00
Hiroshi SHIBATA
eed9db39e5
Followed up e8ddbc0239. 2019-07-15 10:11:07 +09:00
Koichi Sasada
223854ebe8 catch up e8ddbc0239. 2019-07-15 09:58:26 +09:00
Hiroshi SHIBATA
08b340d2f6
Separate the assertions of ruby core tests from test/unit/assertions. 2019-07-15 09:40:22 +09:00
Hiroshi SHIBATA
e8ddbc0239
Put colorize to library directory.
Same as 66299e7ca83d379d13abaa5411f3e0419334cabb
2019-07-15 09:40:22 +09:00
Hiroshi SHIBATA
0a711b0edf
Put vcs .rb to under the lib direcotory.
Because it's the common library for tool files.
2019-07-15 09:40:22 +09:00
Tanaka Akira
8f7884761e The default charset of text/* media type is UTF-8.
Thanks for the patch  gareth (Gareth Adams).  [Bug ]

-------

Combines two small, but very related changes

1: Treat HTTPS the same as HTTP

Previously, OpenURI followed guidance in RFC2616/3.7.1:

> When no explicit charset parameter is provided by the sender, media
> subtypes of the "text" type are defined to have a default charset
> value of "ISO-8859-1" when received via HTTP.

However this RFC was written before TLS was established and OpenURI was
never updated to treat HTTPS traffic the same way. So, HTTPS documents
received a different default to HTTP documents.

This commit removes the scheme check so that all text/* documents
processed by OpenURI are treated the same way.

In theory this processing gets applied to FTP URIs too, but there's no
mechanism in OpenURI for FTP documents to have Content-Type metadata
appended to them, so this ends up being a no-op.

2: Change default charset for text/* to UTF-8

Replaces the default ISO-8859-1 charset previously defined in RFC2616 (now
obsoleted) with a UTF-8 charset as defined in RFC6838.

Fixes: https://bugs.ruby-lang.org/issues/15933
2019-07-15 09:36:52 +09:00
Takashi Kokubun
00a97d9412
Always call va_end in form_args()
This issue is detected by Coverity Scan.
2019-07-15 09:35:57 +09:00
Nobuyoshi Nakada
ff3704031a
Insert a newline before =end
For a certain editor which cannot handle here-document properly.
2019-07-15 09:28:44 +09:00
Yusuke Endoh
a197579073 addr2line.c: clarify the type of integer expression
to suppress Coverity Scan warning.
This expression converted uint8_t to int, and then int to unsigned long.
Now it directly converts uint8_t to unsigned long.
2019-07-15 08:38:37 +09:00
Takashi Kokubun
0a417248a0
Fix unaligned help output
1f99274ccf was indenting details with a
hard tab, but other lines are using spaces.
2019-07-15 08:38:09 +09:00
Takashi Kokubun
02c4ed4a7f
Stop consuming 2 entries for goruby
similar to 364f43ab7f and
13cb9e6bd2
2019-07-15 08:36:53 +09:00
aycabta
17ccda5413 Use #to_a for Readline::HISTORY directly 2019-07-15 08:33:07 +09:00
Takashi Kokubun
9da969cae7
Revert "Dummy Makefile.in for CIs"
This reverts commit c55de95ff1.

Probably this is not needed for CI anymore.
2019-07-15 08:32:45 +09:00
Hiroshi SHIBATA
1f99274ccf
Added the bundled gems target to make help. 2019-07-15 08:19:56 +09:00
Yusuke Endoh
13cb9e6bd2 common.mk: remove "make exam" from help
Currently it is completely the same as "make check".
I think it is not worth mentioning now.
2019-07-15 08:19:21 +09:00
aycabta
2b78a93bcf Add lib/irb/color.rb to destribution file list 2019-07-15 07:59:33 +09:00
Yusuke Endoh
c9a59f491d Add a /* fall through */ comment 2019-07-15 07:59:11 +09:00
Yusuke Endoh
772dae8bef Add a /* fall through */ comment 2019-07-15 07:57:07 +09:00
aycabta
266f6cd8a1 Remove debug print 2019-07-15 07:54:47 +09:00
aycabta
4b7a04a5b8 Support multiline irb_history
A history line ends with "\" to escape newline if it's a continuous
line.
2019-07-15 07:51:57 +09:00
Yusuke Endoh
d37da60128 time.c (time_mdump): use another buffer for year_extend
ruby_marshal_write_long may write 9 bytes, but buf has only 8 bytes.
So the buffer cannot be reused.  This issue was found by Coverity Scan.
2019-07-15 06:44:16 +09:00
Takashi Kokubun
ea71128573
Unify documentations of make benchmark 2019-07-15 06:22:23 +09:00
Takashi Kokubun
e8b6f63039
Drop make change and tool/change_maker.rb
because we're not writing ChangeLog anymore.
2019-07-15 06:17:31 +09:00
Takashi Kokubun
364f43ab7f
Reduce the number of make help entries
We've added some more things recently. It seems not worth having almost
the same two entries there anymore.
2019-07-15 06:11:47 +09:00
Takashi Kokubun
0ee105f3f0
Mention SPECOPTS variable in make help 2019-07-15 06:08:55 +09:00
aycabta
10d7b39d5d Check wether prompt_i is nil 2019-07-15 02:58:28 +09:00
aycabta
078e50c5e9 Save history in IRB is enabled by default 2019-07-15 01:16:18 +09:00