56278 Commits

Author SHA1 Message Date
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 #15933]

-------

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
1f99274ccf31ba1f2a4b3ac20a9c6cdc5ae81152 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 364f43ab7fc5920247fc73423c1428208cf78a4a and
13cb9e6bd2c88d04fc9b21b8f8c1d192c67cd5a2
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 c55de95ff1c4ea6313c2863037703a0e5f0d0f4f.

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
aycabta
6d57369105 Auto indent in IRB is enabled by default 2019-07-15 01:07:37 +09:00
aycabta
82b058ff60 Version 1.1.0.pre.2 2019-07-15 00:43:47 +09:00
aycabta
d0b1a8d5fb Need reline-0.0.1 or later for some features 2019-07-15 00:43:36 +09:00
aycabta
cd7b99bbfc Version 0.0.1 2019-07-15 00:36:59 +09:00
manga_osyo
04e6b90d5b Remove unused method. 2019-07-15 00:33:16 +09:00
Marcus Stollsteimer
423feb53a2 [ruby/matrix] Add Matrix::VERSION constant
Add Matrix::VERSION for the gem version, use it in the gemspec,
and make it also available for library users.

https://github.com/ruby/matrix/commit/65c2bb1fa1
2019-07-15 00:32:00 +09:00
Marcus Stollsteimer
4403130193 [ruby/matrix] Add missing `lib/matrix/' files to file list in gemspec
https://github.com/ruby/matrix/commit/2bbb9be233
2019-07-15 00:32:00 +09:00
Yusuke Endoh
3201062adf Add a /* fall through */ comment 2019-07-15 00:31:07 +09:00
Yusuke Endoh
970c12551e Add a /* fall through */ comment 2019-07-15 00:30:35 +09:00
Yusuke Endoh
9e3971c3ad Add a /* fall through */ comment 2019-07-15 00:29:56 +09:00
Yusuke Endoh
deb5e58230 ext/stringio/stringio.c (strio_read): "binray" is always zero here
Remove unused conditional expression to suppress Coverity Scan warnings.
2019-07-15 00:20:32 +09:00
manga_osyo
e6f188ea03 Rename to Reline::History::Test. 2019-07-15 00:18:10 +09:00
manga_osyo
073cc52dcc Add class Reline::History and test. 2019-07-15 00:17:59 +09:00
Masataka Pocke Kuwabara
9806da50f4 Suppress warnings 2019-07-15 00:13:01 +09:00
aycabta
83171b0ee8 [ruby/rdoc] Bump version to 6.1.1
https://github.com/ruby/rdoc/commit/55c0627fe0
2019-07-15 00:11:07 +09:00
poloka
312d72000a [ruby/rdoc] Correction to include regexp_handling in list of loaded files
https://github.com/ruby/rdoc/commit/1940b2318c
2019-07-15 00:11:07 +09:00
Yusuke Endoh
09187c64b8 Add a /* fall through */ comment 2019-07-15 00:10:39 +09:00
Yusuke Endoh
517c8a5324 dir.c (dir_each_entry): remove unnecessary check
I guess that this check was to detect re-entrance (maybe callcc?).
But currently it does not work as intended.
2019-07-15 00:10:11 +09:00
git
721fc84937 * 2019-07-15 2019-07-15 00:08:33 +09:00
Yusuke Endoh
b4975693ed process.c (p_sys_setregid, p_sys_setresgid): remove unused tmp buffer
To suppress Coverity Scan warning
2019-07-15 00:07:32 +09:00
Yusuke Endoh
80da68db1e Add a /* fall through */ comment 2019-07-14 23:36:23 +09:00
Yusuke Endoh
43c337dfc1 string.c (str_succ): refactoring
Use more communicative variable name
2019-07-14 23:09:24 +09:00
Yusuke Endoh
3fd086ed56 string.c (str_succ): remove a unnecessary assignment
This change will suppress Coverity Scan warnings
2019-07-14 23:09:24 +09:00
Kouhei Sutou
198281a71d [ruby/csv] Fix a bug that strip: true removes newlines
https://github.com/ruby/csv/commit/5540d35a30
2019-07-14 23:07:31 +09:00
kawa_tech
8c0edbd79d [ruby/csv] add options doc :quote_empty (#89)
https://github.com/ruby/csv/commit/5ca8d79f60
2019-07-14 23:07:31 +09:00