Граф коммитов

60121 Коммитов

Автор SHA1 Сообщение Дата
Nobuyoshi Nakada 9cdc964d07
Do not warn CR inside string literal 2020-02-04 14:41:52 +09:00
Lars Kanis 7a51d979cf
Fix inaccuracy in encoding tests
These tests assume
  Encoding.find('locale') == Encoding.find('external')
and fail if they are distinct.
2020-02-04 08:24:59 +09:00
Mikhail Novosyolov 7c165bd7d9 Fix linkage of popen_deadlock test
DEBUG: BUILDSTDERR: /usr/bin/ld: infinite_loop_dlsym.o: in function `native_loop_dlsym':
DEBUG: BUILDSTDERR: /builddir/build/BUILD/ruby-2.7.0/ext/-test-/popen_deadlock/infinite_loop_dlsym.c:16: undefined reference to `dlsym'
DEBUG: BUILDSTDERR: collect2: error: ld returned 1 exit status

Ruby was built with LibreSSL.
2020-02-04 08:04:13 +09:00
Lars Kanis a4fca28b80 Fix description of Encoding.default_(in|ex)ternal
Data written to files is not transcoded per default, but only
when default_internal is set.

The default for default_internal is nil and doesn't depend on the
source file encoding.
2020-02-03 08:42:01 -08:00
git e7739b600f * 2020-02-04 [ci skip] 2020-02-04 01:16:41 +09:00
Jean Boussier f2552216d4 Fix SimpleDelegator respond_to? regression
In 2.6, SimpleDelegator would always use the target `respond_to?`

In 2.7.0 it doesn't if the target does not inherit from Object.

This breaks compatibility for delegated objects that inherit
from BasicObject and redefine `respond_to?`.
2020-02-03 08:16:22 -08:00
Seiei Miyagi 11963da9e8 Check type of empty keyword [Bug #16603]
Co-authored-by: Yusuke Endoh <mame@ruby-lang.org>
2020-02-03 17:54:44 +09:00
Koichi Sasada a635c93fde support MJIT with debug option.
VM_CHECK_MODE > 0 with optflags=-O0 can not run JIT tests because
of link problems. This patch fix them.
2020-02-03 16:57:41 +09:00
Nobuyoshi Nakada db69c50987
Parenthesized macro arguments 2020-02-03 14:19:02 +09:00
Nobuyoshi Nakada 0ab7f2f222
Make `rb_scan_args_kw` inline too 2020-02-03 13:07:34 +09:00
Nobuyoshi Nakada 48c851f868
Moved runtime assignemnts
Separate assignemnts of dynamically given runtime values in
`rb_scan_args_assign` from parsing statically given format in
`rb_scan_args_parse`.
2020-02-03 12:48:41 +09:00
Yusuke Endoh 0fa43b0c1b test/rubygems/test_gem_remote_fetcher.rb: Remove a duplicated test
https://rubyci.org/logs/rubyci.s3.amazonaws.com/ubuntu1604/ruby-master/log/20200203T003005Z.log.html.gz
```
/home/hsbt/chkbuild/tmp/build/20200203T003005Z/ruby/test/rubygems/test_gem_remote_fetcher.rb:485: warning: method redefined; discarding old test_fetch_path_socket_error
/home/hsbt/chkbuild/tmp/build/20200203T003005Z/ruby/test/rubygems/test_gem_remote_fetcher.rb:167: warning: previous definition of test_fetch_path_socket_error was here
```
2020-02-03 11:51:10 +09:00
git d9552cbd5a * 2020-02-03 [ci skip] 2020-02-03 10:27:09 +09:00
Nobuyoshi Nakada 9a446fd7ba
`struct rb_scan_args_t::vargs` is never used 2020-02-03 08:44:51 +09:00
Nobuyoshi Nakada fae537259d
Removed no longer used variable `last_hash`
1. By substituting `n_var` with its initializer, `0 < n_var` is
   equivalent to `argc > argi + n_trail`.
2. As `argi` is non-negative, so `argi + n_trail >= n_trail`, and
   the above expression is equivalent to `argc > n_trail`.
3. Therefore, `f_last` is always false, and `last_hash` is no
   longer used.
2020-02-02 23:09:25 +09:00
git f5806eb206 * 2020-02-02 [ci skip] 2020-02-02 04:56:02 +09:00
aycabta 06c37fa5b4 [ruby/reline] Bypass cursor down when a char is rendered at eol on Windows
A newline is automatically inserted if a character is rendered at eol on
Windows command prompt.

https://github.com/ruby/reline/commit/4bfea07e4a
2020-02-02 03:28:20 +09:00
aycabta 16d4774da1 [ruby/reline] Fix Reline::Windows#scroll_down
I mistook Right and Bottom.

https://github.com/ruby/reline/commit/8be401c5f5
2020-02-02 03:28:07 +09:00
Nobuyoshi Nakada ac1f4fa469 [ruby/irb] Exclude useless files from RDoc
https://github.com/ruby/irb/commit/8f1ab2400c
2020-02-02 03:25:33 +09:00
Yusuke Endoh 7e2ed7d1aa [ruby/irb] Add a new easter egg: dancing ruby
https://github.com/ruby/irb/commit/e37dc7e58e
2020-02-02 03:22:51 +09:00
Nobuyoshi Nakada 37e0f55c5a [ruby/irb] Reformat LICENSE.txt [ci skip]
To be valid as an ordered list.

https://github.com/ruby/irb/commit/078205e57d
2020-02-02 03:22:51 +09:00
Nobuyoshi Nakada b68fc08092
Indent ChangeLog contents [ci skip]
Separate each entries more obviously as `page-delimiter' works
fine.
2020-02-01 23:26:53 +09:00
Nobuyoshi Nakada a2e215fea4
Removed useless shebang and executable bit [ci skip] 2020-02-01 23:25:46 +09:00
Nobuyoshi Nakada ab35876444
Explicitly set the encoding of ChangeLog file to UTF-8 [ci skip] 2020-02-01 23:10:18 +09:00
Taha Husain 7f6bd6bb1c fix rdoc formatting [ci skip] 2020-02-01 23:06:33 +09:00
Nobuyoshi Nakada a7e1e310dc
[ruby/irb] Exclude useless files from RDoc 2020-02-01 17:03:59 +09:00
卜部昌平 7cff2f4585 fix delete unnecessary return
Was my mistake to put return here.
2020-02-01 14:02:59 +09:00
Hiroshi SHIBATA 563f177aa4
UnpackedInstaller on rbinstall.rb is inherited from Gem::Installer.
It also needs to explicitly convert from String to Gem::Package
  with initialization.
2020-02-01 11:31:46 +09:00
Hiroshi SHIBATA f8df531bbf
Gem::Installer.new(String, options) is obsoleted. Explicitly converted
to Gem::Package from String instance.
2020-02-01 11:23:34 +09:00
Hiroshi SHIBATA 600a715c9b
Merge the current master branch of rubygems/rubygems.
Just started to develop RubyGems 3.2.0.
2020-02-01 11:14:57 +09:00
Kazuhiro NISHIYAMA adc3031311
README*.md: `defines.h` moved [ci skip]
at 2b592580bf
2020-02-01 00:38:38 +09:00
git 4d43cc1a53 * 2020-02-01 [ci skip] 2020-02-01 00:05:24 +09:00
Yusuke Endoh fac4385f01 compile.c: remove a unused variable 2020-02-01 00:04:45 +09:00
Nobuyoshi Nakada 05229cef45
Improve `String#slice!` performance
Instead of searching twice to extract and to delete, extract and
delete the found position at the first search.

This makes faster nearly twice, for regexps and strings.

|              |compare-ruby|built-ruby|
|:-------------|-----------:|---------:|
|regexp-short  |      2.143M|    3.918M|
|regexp-long   |    105.162k|  205.410k|
|string-short  |      3.789M|    7.964M|
|string-long   |      1.301M|    2.457M|
2020-01-31 17:12:05 +09:00
Nobuyoshi Nakada 0dd6f020fc
Make `empty_string` a fake string 2020-01-31 14:24:07 +09:00
卜部昌平 f31dc8a458 a bit terse Doxygen comments [ci skip]
Creative use of `@copydoc` Doxygen command and abusing its half-broken C
parser let us delete some lines of documentations, while preserving
document coverages.
2020-01-31 13:10:55 +09:00
卜部昌平 cdd75d4e7f support C++ std::nullptr_t
C++ keyword `nullptr` represents a null pointer (note also that NULL is
an integer in C++ due to its design flaw).  Its type is `std::nullptr_t`,
defined in <cstddef> standard header.  Why not support it when the
backend implementation can take a null pointer as an argument.
2020-01-31 13:01:52 +09:00
Nobuyoshi Nakada 4942adf68c
Return the makefile content
Block for `create_makefile` is expected to return the content of
the makefile.
2020-01-31 12:52:22 +09:00
Nobuyoshi Nakada 0c4bbb46f1
Removed type-punning pointer casts around `st_data_t` 2020-01-31 12:13:00 +09:00
Jean Boussier 52dc0632fa Avoid allocating a temporary empty string in String#slice! 2020-01-31 09:22:20 +09:00
NARUSE, Yui ca2888fb3d Move .IGNORE in extconf.rb 2020-01-31 08:00:56 +09:00
NARUSE, Yui 9aed421d70 Support nmake 2020-01-31 06:47:55 +09:00
Florian Heinle 39a1959d28 Fix wrong return value in proc documentation. 2020-01-30 12:35:15 -08:00
NARUSE, Yui 53adb53c9a Ignore expected errors on compiling C++ source [Bug #16331]
BSD make can run parallel more aggressively than GNU make. It communicate
with other make process through -J option in MAKEFLAGS environment variable
to notify a build failure happend in an other pararell make process.
https://www.freebsd.org/cgi/man.cgi?make

It usually works well but ext/-test-/cxxanyargs/Makefile has two targets
which are expected to fail (failure.o and failurem1.o).

Additional note:
To test and debug this issue, following command will speed up it.
`make -f exts.mk -j8 clean all`
2020-01-31 03:05:51 +09:00
git 8e769a5b40 * 2020-01-31 [ci skip] 2020-01-31 01:23:43 +09:00
Aaron Patterson 18e7f9000d
Use `rb_gc_mark` when marking globals
I think global references should either be 0 or valid heap pointers.
`rb_gc_mark_maybe` checks to see if the pointer is a valid heap pointer,
but I believe we already know they are valid addresses
2020-01-30 08:23:07 -08:00
Nobuyoshi Nakada 9bcf4f3db2
delegate.rb: fixed keyword arguments in DelegateClass
`Delegator.delegating_block` should delegate keyword arguments
separately.  [ruby-core:96949]
2020-01-30 22:13:29 +09:00
Nobuyoshi Nakada 3893a8dd42
Optimized branches in pattern matching 2020-01-30 17:47:09 +09:00
Nobuyoshi Nakada e6334fd450
Unnamed groups are not captured when named groups are used 2020-01-30 12:05:18 +09:00
git 16c5cbe422 * 2020-01-30 [ci skip] 2020-01-30 11:35:06 +09:00