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

81000 Коммитов

Автор SHA1 Сообщение Дата
git 3f00a606a5 Update default gems list at e8fda04d0a [ci skip] 2023-11-07 01:11:31 +00:00
Hiroshi SHIBATA e8fda04d0a [ruby/prettyprint] Bump up 0.2.0
https://github.com/ruby/prettyprint/commit/5ea64f43fa
2023-11-07 01:10:12 +00:00
git 0a1c81a3f5 Update default gems list at 0ac39f226d [ci skip] 2023-11-07 01:01:42 +00:00
Hiroshi SHIBATA 0ac39f226d [ruby/pp] Bump up 0.5.0
https://github.com/ruby/pp/commit/6e086e6df9
2023-11-07 01:00:08 +00:00
Hiroshi SHIBATA 31c36a444a
Skip example for 07df8a5d5e 2023-11-07 09:56:54 +09:00
Nobuyoshi Nakada 07df8a5d5e [ruby/English] Remove `$IGNORECASE`
`$=` has been obsolete and has no effect since 1.9.

https://github.com/ruby/English/commit/121939695a
2023-11-07 00:41:15 +00:00
Yusuke Endoh 49b6dc8f07 Prevent cpu_set_t overflow even if there are more than 63 cores
Do not use `pthread_attr_setaffinity_np` if `sched_getcpu()` exceeds
`CPU_SETSIZE`. (Using `CPU_ALLOC()` would be more appropriate.)
2023-11-07 04:39:09 +09:00
Yusuke Endoh deb6dd76e1 Fix a memory leak
pointed by @nobu
2023-11-07 04:39:09 +09:00
Yusuke Endoh dc636fec2a Use pthread_attr_setaffinity_np instead of pthread_setaffinity_np 2023-11-07 04:39:09 +09:00
Yusuke Endoh d0066211f2 Detach a pthread after pthread_setaffinity_np
After a pthread for getaddrinfo is detached, we cannot predict when the
thread will exit. It would lead to a segfault by setting
pthread_setaffinity to the terminated pthread.  I guess this problem
would be more likely to occur in high-load environments.

This change detaches the pthread after pthread_setaffinity is called.
[Feature #19965]
2023-11-07 04:39:09 +09:00
Yusuke Endoh 15560cce5f Revert "Do not use pthread_setaffinity_np on s390x"
This reverts commit de82439215.
2023-11-07 04:39:09 +09:00
Takashi Kokubun ee25ac49f3 [DOC] Use a relative link like other links
following up on https://github.com/ruby/ruby/pull/8832
2023-11-06 09:46:37 -08:00
Takashi Kokubun 14bf7164a6 Revert an unwanted sync from Reline
It wasn't supposed to be sync-ed in:
2dd32e7c3b
2023-11-06 09:13:16 -08:00
Peter Zhu dc911a332b Remove rb_complex_ivar_set 2023-11-06 11:10:41 -05:00
Peter Zhu e2ef957c23 Use general_ivar_set for generic ivars 2023-11-06 11:10:41 -05:00
Peter Zhu 18f675912e Use general_ivar_set for Class ivars 2023-11-06 11:10:41 -05:00
Peter Zhu 679e98dc27 Use general_ivar_set for Objects 2023-11-06 11:10:41 -05:00
Peter Zhu c747c67533 Implement general_ivar_set 2023-11-06 11:10:41 -05:00
Stan Lo 2dd32e7c3b [ruby/reline] Test Reline::Face without mocking
(https://github.com/ruby/reline/pull/600)

* Test Reline::Face without mocking

Because `test-unit-rr` is not a default gem, using it would break CRuby's
CI.

* Add ruby-core workflow

https://github.com/ruby/reline/commit/d2189ac436
2023-11-06 15:53:38 +00:00
HASUMI Hitoshi 16403f41ab [ruby/reline] Introduce a new class Reline::Face to configure
character attributes
(https://github.com/ruby/reline/pull/552)

* Reine::Face

* fix test_yamatanooroti

* Define singleton methods to make accessors to attributes of a face

* s/display/foreground/

* s/default/default_style/ && s/normal_line/default/ && s/enhanced_line/enhanced/

* fix typo

* FaceConfig.new now takes keyword arguments

* Update lib/reline/face.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Fix to correspond to frozen_string_literal

* Face::FaceConfig -> Face::Config

* ref https://github.com/ruby/reline/pull/552#pullrequestreview-1677282576

* delete unused ivar

* ref https://github.com/ruby/reline/pull/552#discussion_r1358783723

* insert "\e[0m" into all SGR

* tiny fix

* ESSENTIAL_DEFINE_NAMES

ref https://github.com/ruby/reline/pull/552#discussion_r1367722247

* Change to Hash-accessor style

- Reline::Face[:completion_dialog].enhanced ->
  Reline::Face[:completion_dialog][:enhanced]
- Reline::Face.configs shows all defined values

* Cache array method call in local variable

* Tests for Face configuration variations

* resolve https://github.com/ruby/reline/pull/552#pullrequestreview-1710938154

* amend  to

* check invalid SGR parameter in :style

* The order of define values should be preserved

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Update test/reline/test_face.rb

Co-authored-by: Stan Lo <stan001212@gmail.com>

* Add methods: load_initial_config and reset_to_initial_config. And teardown in tests

* omission in amending "style: :default" to "style: :reset"

* refs https://github.com/ruby/reline/issues/598

* Fix link

* amend method name

* Update lib/reline/face.rb

Co-authored-by: ima1zumi <52617472+ima1zumi@users.noreply.github.com>

---------

https://github.com/ruby/reline/commit/fdc1d3b1e5

Co-authored-by: Stan Lo <stan001212@gmail.com>
Co-authored-by: ima1zumi <52617472+ima1zumi@users.noreply.github.com>
2023-11-06 14:40:42 +00:00
Jemma Issroff f6ba87ca88 [PRISM] Implement compilation for MultiWriteNodes, fix MultiTargetNodes
Compilation now works for MultiWriteNodes and MultiTargetNodes, with
nesting on MultiWrites. See the tests added in this commit for example
behavior.
2023-11-06 10:39:07 -03:00
Jean Boussier 4a6bdbd6dc generic_ivar_set: properly check for TOO_COMPLEX on capacity transition 2023-11-06 12:39:52 +01:00
git 66769dcd12 Update default gems list at 460c7b2293 [ci skip] 2023-11-06 10:10:01 +00:00
Hiroshi SHIBATA 460c7b2293 [ruby/uri] Bump up 0.13.0
https://github.com/ruby/uri/commit/b50d37f7a1
2023-11-06 10:08:41 +00:00
git 72bf0e7964 Update default gems list at 00e5abae3f [ci skip] 2023-11-06 10:04:15 +00:00
Hiroshi SHIBATA 00e5abae3f
[ruby/yaml] Bump up 0.3.0
https://github.com/ruby/yaml/commit/f83b0404d5
2023-11-06 19:03:04 +09:00
git 85576b0cab Update default gems list at bda3f67f8b [ci skip] 2023-11-06 09:47:48 +00:00
Hiroshi SHIBATA bda3f67f8b [ruby/shellwords] Bump up 0.2.0
https://github.com/ruby/shellwords/commit/fc63ac832d
2023-11-06 09:46:21 +00:00
git 88b6f4c2c4 Update default gems list at b5e7065d9a [ci skip] 2023-11-06 09:45:35 +00:00
Hiroshi SHIBATA b5e7065d9a [ruby/singleton] Bump up 0.2.0
https://github.com/ruby/singleton/commit/3c7fb5f258
2023-11-06 09:44:09 +00:00
git b2b20ea0ce Update default gems list at ebb1816718 [ci skip] 2023-11-06 09:34:16 +00:00
Hiroshi SHIBATA ebb1816718 [ruby/benchmark] Bump up 0.3.0
https://github.com/ruby/benchmark/commit/81af12352d
2023-11-06 18:33:03 +09:00
git 428c07d8ea Update default gems list at 5a1934416f [ci skip] 2023-11-06 09:30:49 +00:00
Hiroshi SHIBATA 5a1934416f [ruby/un] Bump up 0.3.0
https://github.com/ruby/un/commit/1f636a6239
2023-11-06 09:29:53 +00:00
Hiroshi SHIBATA 479717b450 [ruby/un] Removed commented-out code
https://github.com/ruby/un/commit/0d6669bff0
2023-11-06 09:29:53 +00:00
Nobuyoshi Nakada 4329554f17 [Bug #19985] Raise LoadError with the converted feature name
`Kernel#require` converts feature name objects that have the `to_path`
method such as `Pathname`, but had used the original object on error
and had resulted in an unexpected `TypeError`.
2023-11-06 17:58:47 +09:00
Hiroshi SHIBATA 7a6c72e03d
Update rdoc parsers generated by racc-1.7.3 2023-11-06 17:53:00 +09:00
git 34b7c91e52 Update default gems list at ee13da3e2a [ci skip] 2023-11-06 08:42:10 +00:00
Hiroshi SHIBATA ee13da3e2a [ruby/rdoc] Bump up 6.6.0
https://github.com/ruby/rdoc/commit/9c14229876
2023-11-06 17:40:34 +09:00
git d55364a5a3 Update default gems list at e3a19b8a43 [ci skip] 2023-11-06 08:24:25 +00:00
Hiroshi SHIBATA e3a19b8a43 [ruby/net-http] Bump up 0.4.0
https://github.com/ruby/net-http/commit/4be99c204c
2023-11-06 08:23:09 +00:00
Hiroshi SHIBATA 66d266244c [ruby/net-http] Removed obsolated Revision constant
https://github.com/ruby/net-http/commit/c1c5638014
2023-11-06 08:22:39 +00:00
Yusuke Endoh 0cd6eb607a Fix the CI failure in OpenBSD
LibreSSL seems not to support `scrypt`.

https://rubyci.s3.amazonaws.com/openbsd-current/ruby-master/log/20231105T233005Z.fail.html.gz
```
1)
OpenSSL::KDF.scrypt creates the same value with the same input ERROR
NoMethodError: undefined method `scrypt' for module OpenSSL::KDF
```
2023-11-06 17:12:14 +09:00
Yusuke Endoh 44a1d2e789 NEWS.md: Add a mention to [Feature #19965] 2023-11-06 16:09:29 +09:00
Nobuyoshi Nakada 9059d42c41
Align comment [ci skip] 2023-11-06 14:43:35 +09:00
JorandeBoer a763d085e4 Updated building_ruby.md to include reference for building on Windows
Looking at building_ruby.md it is unclear that you are able to build Ruby on Windows. To fix that a reference has been added to the windows.md file.
2023-11-06 11:52:31 +09:00
Nobuyoshi Nakada 40391faeab [ruby/etc] Fix inconsistent dll linkage warning
https://github.com/ruby/etc/commit/e4c71e5996
2023-11-05 11:50:07 +00:00
yui-knk a15aa259db Lrama v0.5.9 2023-11-05 12:04:52 +09:00
Nobuyoshi Nakada 368a1cb3c4
Do not use non-ASCII chars in sources
No encodings are guaranteed in C compilers, and other than UTF-8
encodings may be assumed in some platforms, e.g., CP932 on Windows
Japanese edition, and may result in compilation errors.
2023-11-05 02:14:26 +09:00
Nobuyoshi Nakada 054a4672cb
Check non-ASCII code in more sources including generated files 2023-11-05 02:11:07 +09:00