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

55866 Коммитов

Автор SHA1 Сообщение Дата
Jean Boussier 63f78bbaae Reduce string allocations in scalar_scanner 2019-06-25 15:56:20 +09:00
SHIBATA Hiroshi 00d0ede845 Removed CHANGELOG from rdoc files. 2019-06-25 15:56:20 +09:00
SHIBATA Hiroshi 3c4fc830dd Retired to write CHANGELOG.rdoc. Because It has no update from 2015. 2019-06-25 15:56:20 +09:00
Aaron Patterson 03dac55f90 Dump Hash ivars before elements
When the Hash is revived, the ivars will be set before elements.  This
is for the case when the hash setter depends on ivars set on the hash.
2019-06-25 15:56:20 +09:00
Jordan Owens 0016edbead Add test to demonstrate issue deserializing hash with ivar
Currently the elements of a hash are revived before any ivar values.
This causes an issue when the `[]=` method references an instance
variable.
2019-06-25 15:56:20 +09:00
Aaron Patterson a53ab897c3 Round trip exception backtraces
This commit allows exception backtraces to round trip
2019-06-25 15:56:20 +09:00
Aaron Patterson f770a5be66 Refactor exception dumping 2019-06-25 15:56:20 +09:00
Aaron Patterson 4bd1909427 Dumping the backtrace never worked, so remove it
Dumping the backtrace for exceptions never worked, so lets remove it.
2019-06-25 15:56:20 +09:00
Jeremy Evans d118c84b0b Fix IO#scanf on pipes on Windows
IO.seek on a pipe on Windows raises Errno::EINVAL instead of
Errno::ESPIPE.

Fixes Ruby Bug #15199
2019-06-25 15:56:20 +09:00
David Rodríguez e572ff2f95 Require version file relatively 2019-06-25 15:56:20 +09:00
SHIBATA Hiroshi 083fda8490 Bump version to 1.2.0. 2019-06-25 15:56:20 +09:00
Hiroshi SHIBATA 9b23aab290 Fixed the wrong path for io-console. 2019-06-25 15:56:20 +09:00
Samuel Williams dbe232e24e Order of arguments might be incorrect in arm32 coroutine implementation. 2019-06-25 17:04:04 +12:00
git e09afd15b7 * 2019-06-25 2019-06-25 00:19:49 +09:00
aycabta 9c19cd5222 Refactor calculation of corresponding token depth 2019-06-25 00:18:55 +09:00
Samuel Williams 518adcca0a Try using arm32 implementation for fibers. 2019-06-24 19:09:27 +12:00
NARUSE, Yui 4275f09015 remove UNREACHABLE 2019-06-24 16:01:46 +09:00
Luke Gruber 97b4fe2ff6
array.c: Wrong heap size given to ruby_sized_xfree when freeing shared roots
Fixes [Bug #15953]

Closes: https://github.com/ruby/ruby/pull/2253
2019-06-24 13:34:30 +09:00
NARUSE, Yui 7f64a0b4db Add new encoding CESU-8 [Feature #15931] 2019-06-24 12:58:33 +09:00
Samuel Williams 0e6396d2ac Try using arm64 implementation for fibers. 2019-06-24 15:13:17 +12:00
Samuel Williams abdbfebad1 Use spaces for indentation in `configure.ac`. 2019-06-24 15:13:17 +12:00
git 5d4dfcd808 * remove trailing spaces. 2019-06-24 11:25:17 +09:00
Samuel Williams a071bed7a5 Print warning if not using native coroutine. 2019-06-24 14:24:49 +12:00
git 0b36c90e12 * 2019-06-24 2019-06-24 10:24:51 +09:00
masakazutakewaka edbad4adcc httpstatus.rb 100% coverage 2019-06-24 10:12:07 +09:00
Rob c6229e7c69 Adds WebAssembly MIME type 2019-06-24 10:11:56 +09:00
Nobuyoshi Nakada 11a60f9bdb Remove extraneous spaces at the end of status line
Remove extraneous spaces after the status code that is
non-compliant with RFC, i.e `HTTP 200 OK `, to unnecessary
confusion for WEBrick users, by a risk that WEBrick instances in
the wild will have server responses flagged as suspicious or
malicious due to a similar bug in [Cobalt Strike
misconfiguration].

Reported by Matt Tennis <mtennis@paloaltonetworks.com>

[Cobalt Strike misconfiguration]: https://blog.fox-it.com/2019/02/26/identifying-cobalt-strike-team-servers-in-the-wild/
2019-06-24 10:11:47 +09:00
Nobuyoshi Nakada 97a7f463f6
Max length of UNIX socket path is 104 bytes on macOS 2019-06-23 23:12:47 +09:00
Nobuyoshi Nakada 50b2807a7c
Do not lengthen UNIX socket path
* spec/ruby/library/socket/unixsocket/recvfrom_spec.rb: do not
  lengthen UNIX socket path, which is very stricted.
2019-06-23 23:10:16 +09:00
Nobuyoshi Nakada bdcfba547d
vcs.rb: handle --dryrun option 2019-06-23 22:35:10 +09:00
Samuel Williams 096a45d3d2 Update NEWS.
- Add note regarding IA64 removal.
- Add note about Thread allocation performance improvements.
2019-06-24 01:28:23 +12:00
Luke Gruber 5a187e26ad array.c add back shared array optimization to ary_ensure_room_for_unshift
Bug fix in commit ec8e5f5aa6 [Bug #15952] disabled an
optimization in this function.

Closes: https://github.com/ruby/ruby/pull/2252
2019-06-23 13:17:41 +09:00
Luke Gruber ec8e5f5aa6
array.c: always check frozenness in Array#unshift. Fixes [Bug #15952]
Closes: https://github.com/ruby/ruby/pull/2251
2019-06-23 08:05:13 +09:00
Nobuyoshi Nakada 3840791b7e
Get rid of error with frozen string literal
[Bug #14194]
2019-06-23 07:56:43 +09:00
Nobuyoshi Nakada bebe8d13f8
Disable frozen-string-literal to disable deduplication
[Bug #14194]
2019-06-23 07:42:11 +09:00
MSP-Greg (Greg L) 2ad7a7f801
Get rid of error with frozen string literal
[Bug #14194]
2019-06-23 07:36:26 +09:00
Nobuyoshi Nakada aa2f505825
Make autoloading_const_entry static 2019-06-23 02:49:39 +09:00
git c5c3486340 * expand tabs. 2019-06-23 01:47:40 +09:00
Nobuyoshi Nakada ef524c13d9
NEWS: Module#constant_source_location
[Feature #10771]
2019-06-23 01:46:38 +09:00
Nobuyoshi Nakada 9384383019
Module#constant_source_location [Feature #10771] 2019-06-23 01:46:38 +09:00
Nobuyoshi Nakada 5084233b88
Split global search for module 2019-06-23 01:26:48 +09:00
Nobuyoshi Nakada 151843b981
Hoisted out autoloading_const_entry 2019-06-23 01:26:42 +09:00
Luke Gruber c033dc3073
Fix issue with Array#rindex when rb_equal modifies receiver array
Fixes [Bug #15951]

Closes: https://github.com/ruby/ruby/pull/2250
2019-06-23 00:49:24 +09:00
git fd9ac1e76b * 2019-06-23 2019-06-23 00:37:11 +09:00
Nobuyoshi Nakada f3c81b4e90
Frozen objects in WeakMap
* gc.c (wmap_aset): bypass check for frozen and allow frozen
  object in WeakMap.  [Bug #13498]
2019-06-23 00:31:16 +09:00
Nobuyoshi Nakada f5e2904471
Use EXEEXT
* test/lib/minitest/unit.rb (MiniTest::Assertions.diff): use
  `EXEEXT` configured value instead of switching by hard coded
  `host_os`.
2019-06-22 23:48:21 +09:00
Nobuyoshi Nakada f738eeabc2
golf_prelude.rb: suppress the redefining warning 2019-06-22 23:38:07 +09:00
Nobuyoshi Nakada bad66f3e36
Show timed out threads
* test/lib/test/unit/assertions.rb (assert_join_threads): kill and
  show timed out threads.
2019-06-22 18:39:06 +09:00
Nobuyoshi Nakada 4d650bc257
Fix over-expansion
* test/lib/minitest/unit.rb (MiniTest::Assertions#mu_pp_for_diff):
  do not expand escaped backslash followed by 'n'.
2019-06-22 09:29:33 +09:00
Kenichi Kamiya d01fd82187 Alias ENV.merge! as ENV.update
[Feature #15947]

Closes: https://github.com/ruby/ruby/pull/2246
2019-06-21 18:25:01 +02:00