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

66923 Коммитов

Автор SHA1 Сообщение Дата
Sutou Kouhei 37d16bb9dc
[ruby/fiddle] test: use double quote for string literal
https://github.com/ruby/fiddle/commit/fab7eab95b
2021-07-13 19:37:45 +09:00
Sutou Kouhei 5516d74ad2
[ruby/fiddle] test: add a test for win32_last_socket_error
https://github.com/ruby/fiddle/commit/c86cec03cd
2021-07-13 19:37:45 +09:00
Sutou Kouhei 303ab5da8b
[ruby/fiddle] test: add missing receiver
https://github.com/ruby/fiddle/commit/1da3b4af16
2021-07-13 19:37:45 +09:00
Sutou Kouhei d1eeb9fec9
[ruby/fiddle] windows: use GetLastError() for win32_last_error
Ruby: [Bug #11579]

Patch by cremno phobia. Thanks!!!

https://github.com/ruby/fiddle/commit/760a8f9b14
2021-07-13 19:37:45 +09:00
Sutou Kouhei c0f9191ab6
[ruby/fiddle] Bump version
https://github.com/ruby/fiddle/commit/3784cfeec4
2021-07-13 19:37:44 +09:00
Nobuyoshi Nakada 4c039a2ea0
tool/sync_default_gems.rb: remove CRs 2021-07-13 19:36:52 +09:00
Nobuyoshi Nakada f9c559a0a2
sync_default_gems.rb: expand links to PRs of the upstream 2021-07-13 19:05:50 +09:00
Yusuke Endoh 5fd5d71a4b [ruby/error_highlight] Support a file that has no final newline
https://github.com/ruby/error_highlight/commit/9d671284cb
2021-07-13 16:54:17 +09:00
Yusuke Endoh 23c8bc367c [ruby/error_highlight] Support hard tabs
Now, the highlight line is created by replacing non-tab characters with
spaces, and keeping all hard tabs as-is. This means the highlight line
has the completely same indentation as the code snippet line.

Fixes #7

https://github.com/ruby/error_highlight/commit/38f20fa542
2021-07-13 16:51:02 +09:00
git b18f6fff69 * 2021-07-13 [ci skip] 2021-07-13 16:28:57 +09:00
Samuel Williams 9df712a0e2 Expose `rb_obj_is_fiber`. 2021-07-13 19:28:40 +12:00
Yusuke Endoh 84fea8ee39 [ruby/error_highlight] Update a test for multibyte characters
https://github.com/ruby/error_highlight/commit/2fc70d7f8e
2021-07-12 16:48:52 +09:00
Yusuke Endoh 8b01d16ad6 [ruby/error_highlight] Stop showing a code snippet if it has non-ascii characters
See https://github.com/ruby/error_highlight/issues/4

https://github.com/ruby/error_highlight/commit/c20efd3961
2021-07-12 16:48:15 +09:00
Samuel Williams 028441d22f Avoid calling `fstat` on things we already know are valid sockets. 2021-07-12 19:16:22 +12:00
git 0895d57d31 * 2021-07-12 [ci skip] 2021-07-12 13:45:15 +09:00
Nobuyoshi Nakada 6504ca006b
Show node IDs in dump 2021-07-12 12:10:16 +09:00
Nobuyoshi Nakada c2ed5ab08b [ruby/date] Fixed markups for bold [ci skip]
https://github.com/ruby/date/commit/404f9d2096
2021-07-11 20:28:23 +09:00
Jeremy Evans 8065670cfb [ruby/date] Fix comparison with Float::INFINITY
Fixes [Bug #17945]

https://github.com/ruby/date/commit/953d907238
2021-07-11 20:28:21 +09:00
Nobuyoshi Nakada 49ba7cd259
[DOC] Move mailing-list URLs to footnotes [ci skip] 2021-07-11 20:12:45 +09:00
Nobuyoshi Nakada 690385014a
Move core_assertions.rb from test/unit
This file contains extended assertions for ruby core which do not
belong to test/unit.
2021-07-11 19:56:53 +09:00
S-H-GAMELINKS b32ae9898f Move rb_str_escape function declaration 2021-07-11 18:26:20 +09:00
git e330bbeeb1 * 2021-07-11 [ci skip] 2021-07-11 06:12:24 +09:00
aycabta 947d0198e0 [ruby/irb] Show LANG and LC_ALL env by irb_info
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>

https://github.com/ruby/irb/commit/b431742430
2021-07-11 06:12:07 +09:00
Nobuyoshi Nakada 491ab2820a
Remove half-defined Reline on LoadError
When fiddle is not avaiable, reline/terminfo depending on it also
fails.
2021-07-10 21:02:50 +09:00
Nobuyoshi Nakada d172f8ac09
Skip fiddle tests if fiddle is not avaiable 2021-07-10 19:14:40 +09:00
Nobuyoshi Nakada cb3eb3d7d5
Get rid of conflict in ccan/list
Undefine LIST_HEAD from BSD-origin sys/queue.h.
2021-07-10 17:39:25 +09:00
git 9c2851508e * 2021-07-10 [ci skip] 2021-07-10 13:44:33 +09:00
Jeremy Evans 289fd3c801 [ruby/irb] Pass local variables from workspace binding to lexer
This fixes at least an issue where irb will incorrectly assume
code opens a heredoc when it does not, such as this code:

```ruby
s1 = 'testing'
s2 = 'this'
s2 <<s1
p s1
s1
```

Ruby parses the `s2 <<s1` as `s2.<<(s1)`, not as a heredoc, because
`s2` is a local variable in scope.  irb was using ripper without
letting ripper know that `s2` was a local variable, so ripper would
lex it as a heredoc instead of a method call.

Fix the situation by prepending a line at line 0 with all local
variable definitions in scope whenever lexing.  This fixes the
heredoc issue, and potentially other issues that depend on whether
an identifier is a local variable or not.

Fixes [Bug #17530]

https://github.com/ruby/irb/commit/4ed2187f76
2021-07-10 13:44:17 +09:00
Martin Dürst 6072239121 Remove no longer needed include files (Unicode Version 12.1.0) 2021-07-09 16:22:38 +09:00
Kazuhiro NISHIYAMA 23ed8ef440
Update bundled_gems 2021-07-09 15:39:08 +09:00
git f3e4c3400e * 2021-07-09 [ci skip] 2021-07-09 08:54:05 +09:00
Nobuyoshi Nakada fbe9b691bd
Added missing declarations in readline.h bundled with macOS 10.13 2021-07-09 08:52:35 +09:00
Kazuhiro NISHIYAMA a7c85ccb18
Update bundled_gems 2021-07-08 20:21:49 +09:00
Nobuyoshi Nakada 524513be39
mkmf.rb: try linking at try_var
To check for variables accessible but not declared.
2021-07-08 18:18:35 +09:00
Nobuyoshi Nakada d6cf4c0c99
rbinstall.rb: just call File.basename directly 2021-07-08 17:58:25 +09:00
Nobuyoshi Nakada b90ca734f3
Ubuntu: remove pthread coroutine which is done in Compilations 2021-07-08 17:57:47 +09:00
Nobuyoshi Nakada 7a2383b5c1
Split test of Hash.[] and add assertion for default value/proc
For a73f13c907.
2021-07-08 16:47:30 +09:00
Nobuyoshi Nakada 771f6dd75d
[ruby/stringio] Suppress a sign-compare warning
https://github.com/ruby/stringio/commit/a88c070e0b
2021-07-08 16:43:22 +09:00
Martin Dürst 3b36e34b90 Adapt test_emoji_breaks.rb to Unicode 13.0.0/Emoji 13.0
- Add UNICODE_VERSION,... to deal with new location of some
  of the emoji-related data files.
- Introduce class BreakFile to handle various file properties.
- Adapt main code to use BreakFile.
2021-07-08 14:45:03 +09:00
Martin Dürst 146a943d9a Fix ruby_version guards in Unicode/Emoji version specs
Correct version guards in ruby_version in Unicode/Emoji version
specs to correctly use exclusive range endings.
2021-07-08 14:45:03 +09:00
Martin Dürst 323ff38c04 Add directory and include files for Unicode version 13.0.0
- Add directory enc/unicode/13.0.0
- Add include files casefold.h and name2ctype.h for Unicode
  version 13.0.0
2021-07-08 14:45:03 +09:00
Martin Dürst ba357bace2 Add new Unicode/Emoji version checks to spec/ruby/library/rbconfig
- Limit Unicode version 12.1.0 to Ruby versions 2.6.3 - 3.0
- Check that Ruby version 3.1 has Unicode version 13.0.0
- Limit Unicode Emoji version 12.1 to Ruby versions 2.7 - 3.0
- Check that Ruby version 3.1 has Unicode Emoji version 13.0
2021-07-08 14:45:03 +09:00
Martin Dürst 99cd0e1f79 Update lib/unicode_normalize/tables.rb to Unicode version 13.0.0 2021-07-08 14:45:03 +09:00
Martin Dürst 94fc4b1869 Adjust tool/enc-unicode.rb to deal with new location of some emoji files
- Change location of file emoji-data.txt
- Change range of files in emoji directory
  ([stz] is for emoji-sequences.txt, emoji-test.txt, and emoji-zwj-sequences.txt)
- Make sure that version of all emoji files is checked against Emoji version
2021-07-08 14:45:03 +09:00
Martin Dürst b6113a3fd8 Update common.mk to deal with Unicode version 13.0.0
- Change Unicode version to 13.0.0
- Change Emoji version to 13.0
- Adjust to moved locations of emoji-data.txt and emoji-variation-sequences.txt
  by splitting these files from $(UNICODE_EMOJI_FILES) and putting them into
  a new group $(UNICODE_UCD_EMOJI_FILES)
2021-07-08 14:45:03 +09:00
git 6185b8a0ef * 2021-07-08 [ci skip] 2021-07-08 00:53:46 +09:00
Nobuyoshi Nakada 372d94b6ba
Shared libruby also needs MAINLIBS for jemalloc 2021-07-07 23:40:04 +09:00
Nobuyoshi Nakada e8d9539373
Refactor --with-jemalloc option
Find jemalloc header first, then using the found header, try [with
mangle, without mangle] x [no more additional libraries, adding
jemalloc] combination.
2021-07-07 23:40:04 +09:00
卜部昌平 82d425515d comment about the situation [ci skip] 2021-07-07 20:31:20 +09:00
卜部昌平 737e4432b9 configure: add -Wl,--no-as-needed
It is reported that combination of `--enable-shared --with-jemalloc`
breaks on Debian bullseye (testig).  Deeper investigation revealed that
this system's `ld(1)` is patched, to turn `ld --as-needed` on by
default.

This linker flag strips "unnecessary" library dependencies from an
executable.  In case of `ruby(1)` (of `--enable-shared`), because
everything is in `libruby.so`, the binary itself doesn't include any
calls to `malloc(3)` at all.  So in spite of our explicit `-ljemalloc`
flag, it is ignored.  Libc's one is chosen instead.

This is not what we want.  Let's force our `ruby(1)` link what we want.

Fixes https://github.com/ruby/ruby/pull/4627

The author would like to acknowledge
Akihiko Odaki <akihiko.odaki@gmail.com> for their contributions.
2021-07-07 20:31:20 +09:00