1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
Commit graph

70985 commits

Author SHA1 Message Date
Peter Zhu
b07879e553 Remove redundant if statement in try_move
The if statement is redundant since if `index == 0` then
`BITS_BITLENGTH * index == 0`.
2022-01-25 09:38:17 -05:00
Nobuyoshi Nakada
e3b5cc8836
NEWS: Fixnum and Bignum are removed finally [Feature ] 2022-01-25 23:10:20 +09:00
David Rodríguez
342e7a094a [rubygems/rubygems] Fix spec to not touch the network
And not depend on the state of rack's master branch, in particular, on
their Ruby support range.

https://github.com/rubygems/rubygems/commit/9ea4baffac
2022-01-25 22:12:33 +09:00
David Rodríguez
cd806e19b7 [rubygems/rubygems] Remove unnecessary comment
https://github.com/rubygems/rubygems/commit/ef4e5c6169
2022-01-25 22:12:33 +09:00
Koichi Sasada
a51e1cd682 enable RUBY_ON_BUG on release build
[Feature ]
2022-01-25 16:43:57 +09:00
David Rodríguez
de678cd51e
[ruby/pathname] Officially drop support for ruby 2.6 or older
The gem doesn't even install on old rubies, but since the gemspec claims
it's supported, `gem install pathname` will try to install it and print
an error.

This commit doesn't fix the above issue. The only way to fix it would be
to restore support and release a new version that actually supports old
rubies. However, such a change has been proposed and ignored for a long
time.

So this issue proposes to leave that broken but at least bring the
gemspec manifest and the CI matrix in sync to hopefully avoid this issue
from happening again in the future.

https://github.com/ruby/pathname/commit/3ee010b538
2022-01-25 08:50:31 +09:00
Nobuyoshi Nakada
530e485265 ID in rb_id_table_foreach_with_replace [Feature ]
Pass the `ID` from `rb_id_table_foreach_with_replace` to callback
functions.
2022-01-24 15:40:47 -08:00
Peter Zhu
87784fdeb2 Keep right operand within width when right shifting
NUM_IN_PAGE could return a value much larger than 64. According to the
C11 spec 6.5.7 paragraph 3 this is undefined behavior:

> If the value of the right operand is negative or is greater than or
> equal to the width of the promoted left operand, the behavior is
> undefined.

On most platforms, this is usually not a problem as the architecture
will mask off all out-of-range bits.
2022-01-24 14:34:12 -05:00
git
97ab2599f3 * 2022-01-25 [ci skip] 2022-01-25 01:11:53 +09:00
David Rodríguez
4317a6750d [rubygems/rubygems] Forbid downgrading past the originally shipped version on Ruby 3.1
https://github.com/rubygems/rubygems/commit/68bef90339
2022-01-25 01:11:39 +09:00
Peter Zhu
663833b08f [wasm] Disallow compaction
WebAssembly doesn't support signals so we can't use read
barriers so we can't use compaction.
2022-01-24 09:21:08 -05:00
Nobuyoshi Nakada
5de62fe37c
Fixed an missing percent in the batch file 2022-01-24 18:10:17 +09:00
Nobuyoshi Nakada
85502f3a51 [ruby/io-wait] [DOC] Fix the return values [ci skip]
Even since 0.1.0, other than +true+ or +false+ may be returned.

https://github.com/ruby/io-wait/commit/d0721e300a
2022-01-24 18:03:48 +09:00
apatniv
e7b573e576 [ruby/io-wait] Document mandatory require for using io/wait methods
https://github.com/ruby/io-wait/commit/2beb05bd48
2022-01-24 12:12:15 +09:00
git
c6a19b77a2 Update default gems list at 328e6bf3b3 [ci skip] 2022-01-24 01:57:23 +00:00
Kenta Murata
328e6bf3b3
[ruby/bigdecimal] Version 3.1.2
https://github.com/ruby/bigdecimal/commit/57e2194135
2022-01-24 10:56:37 +09:00
Kenta Murata
7db195d521
[ruby/bigdecimal] Fix the maximum precision of the quotient
Fixes https://github.com/ruby/bigdecimal/pull/220

https://github.com/ruby/bigdecimal/commit/127a1b5a31
2022-01-24 10:56:30 +09:00
Kenta Murata
506728d0b8
[ruby/bigdecimal] Fix typo
https://github.com/ruby/bigdecimal/commit/79c09b4dac
2022-01-24 10:56:25 +09:00
gemmaro
d77f2ff5b4 [ruby/rdoc] Fix typo in RDoc::Task example
https://github.com/ruby/rdoc/commit/7a77e55c2a
2022-01-24 10:17:16 +09:00
git
52caeb47e7 * 2022-01-24 [ci skip] 2022-01-24 07:00:51 +09:00
Postmodern
c155445752 [ruby/reline] Ignore global constants when checking if Fiddle::VERSION exists
If a top-level `VERSION` constant exists, or if a module containing a `VERSION` constant is included into the top-level scope, then `Fiddle.const_defined?(:VERSION)` will erroneously return true when `RUBY_VERSION < 3.0.0`.

https://github.com/ruby/reline/commit/8529c8e47a
2022-01-24 07:00:34 +09:00
Kazuhiro NISHIYAMA
bb955096d8
Fix a typo [ci skip] 2022-01-23 21:56:39 +09:00
git
ab1aa90c32 * 2022-01-23 [ci skip] 2022-01-23 01:02:38 +09:00
Nobuyoshi Nakada
355bc37196
Reuse the default AC_LANG_PROGRAM(C) definition 2022-01-23 01:02:11 +09:00
Nobuyoshi Nakada
ad150a1459
Override AC_C_PROGRAM on old autoconf
Autoconf 2.69 fails to detect `-Werror=old-style-definition` due
to the old style definition of `main`.
2022-01-22 20:13:46 +09:00
Nobuyoshi Nakada
2c25427496
GCC provides -Wdiv-by-zero 2022-01-22 20:09:56 +09:00
Kazuhiro NISHIYAMA
c00e360bc0
Fix error: old-style function definition
https://rubyci.s3.amazonaws.com/debian-riscv64/ruby-master/log/20220122T050018Z.log.html.gz#miniruby
```
compiling vm_trace.c
vm_trace.c: In function 'rb_vm_memsize_postponed_job_buffer':
vm_trace.c:1599:1: error: old-style function definition [-Werror=old-style-definition]
 1599 | rb_vm_memsize_postponed_job_buffer()
      | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
```
2022-01-22 15:48:05 +09:00
Seth Boyles
c1a6ff046d [ruby/psych] Add strict_integer option to parse numbers with commas as strings
Authored-by: Seth Boyles <sethboyles@gmail.com>

https://github.com/ruby/psych/commit/75bebb37b8
2022-01-22 10:00:51 +09:00
git
b815a0bd75 * 2022-01-22 [ci skip] 2022-01-22 07:35:12 +09:00
Kevin Newton
fc6fd4c31e Accurately report VM memsize
Currently the calculation only counts the size of the struct. This commit adds the size of the associated st tables, id tables, and linked lists.

Still missing is the size of the ractors and (potentially) the size of the object space.
2022-01-21 14:34:53 -08:00
Koichi Sasada
5e3a320218 respect --quiet option for btest
Do not print anymore except errors.
2022-01-21 17:38:11 +09:00
git
a15c50d6a1 * 2022-01-21 [ci skip] 2022-01-21 12:23:48 +09:00
Nobuyoshi Nakada
542bd9b408 [ruby/etc] Exclude change logs for pre 1.0
https://github.com/ruby/etc/commit/c8a133fe95
2022-01-21 12:22:04 +09:00
Nobuyoshi Nakada
563d0fdada [ruby/etc] Derive extra_rdoc_files from files
https://github.com/ruby/etc/commit/e8ecce3442
2022-01-21 12:21:59 +09:00
Nobuyoshi Nakada
3fea4f9d8c [ruby/etc] Move development dependencies to Gemfile
https://github.com/ruby/etc/commit/5cabc3996a
2022-01-21 12:21:54 +09:00
Nobuyoshi Nakada
59a91f229b
Mark rb_clear_constant_cache as internal use only
In the past, many internal functions are declared in intern.h
under include/ruby directory, because there were no headers for
internal use.
2022-01-20 13:54:37 +09:00
Nobuyoshi Nakada
82b0a9004c
[wasm] skip pull-requests labeled as Documentation [ci skip] 2022-01-20 13:18:33 +09:00
Michael Nikitochkin
ef2cf9245c [ruby/psych] Remove alias of load to unsafe_load
https://github.com/ruby/psych/commit/39e23cc86f
2022-01-20 10:39:05 +09:00
Kazuhiro NISHIYAMA
eba90bc034
Fix warnings
```
compiling ..../ruby/ruby/dln.c
..../ruby/ruby/dln.c:108:1: warning: unused function 'init_funcname_len' [-Wunused-function]
init_funcname_len(const char **file)
^
..../ruby/ruby/dln.c:122:19: warning: unused variable 'funcname_prefix' [-Wunused-const-variable]
static const char funcname_prefix[sizeof(FUNCNAME_PREFIX) - 1] = FUNCNAME_PREFIX;
		  ^
2 warnings generated.
```
2022-01-20 10:03:59 +09:00
David Rodríguez
2b7025e680 [rubygems/rubygems] Rename Gem.open_with_flock to Gem.open_file
Since it only uses `flock` on Windows.

https://github.com/rubygems/rubygems/commit/b877de4d9c
2022-01-20 06:45:28 +09:00
David Rodríguez
ec5bde1a80 [rubygems/rubygems] Restrict flock to Windows
It was introduced to fix some race conditions there, but it doesn't seem
necessary on other systems and it's actually causing issues there.

https://github.com/rubygems/rubygems/commit/27b682c812
2022-01-20 06:45:27 +09:00
Nobuyoshi Nakada
71bc999009
MinGW also uses rb_w32_shutdown
Winsock's `shutdown` is incompatible with the other platforms.
And autoconf fails to detect WINAPI functions on 32bit Windows,
probably due to the argument size suffixes.
2022-01-20 01:18:49 +09:00
git
45e065ca8f * 2022-01-20 [ci skip] 2022-01-20 01:05:10 +09:00
Yusuke Nakamura
7353f950c3 [rubygems/rubygems] Change generated namespaced test class name in minitest
* `foo` => `TestFoo`
* `foo_bar` => `TestFooBar`
* `foo-bar` => `Foo::TestBar`

https://github.com/rubygems/rubygems/commit/353cdd61c3
2022-01-20 01:04:53 +09:00
Yusuke Nakamura
26e0450ba9 [rubygems/rubygems] Add spec to class name definition in newgem spec
https://github.com/rubygems/rubygems/commit/5f698fc4a0
2022-01-20 01:04:53 +09:00
Yusuke Nakamura
4451313252 [rubygems/rubygems] Update generated minitest file style
foo     => test/test_foo.rb
foo-bar => test/foo/test_bar.rb
foo_bar => test/test_foo_bar.rb

https://github.com/rubygems/rubygems/commit/c795e5d40d
2022-01-20 01:04:52 +09:00
Yusuke Nakamura
4e955b2e37 [rubygems/rubygems] Create minitest file to underscored path in "bundle gem" command
...with dashed gem name

In "bundle gem" command with dashed name gem (e.g. foo-bar) generates
`test/test_foo/bar.rb`, but this file contains undefined class `TestFoo`
and moreover, does not include in "bundle exec rake test" target.

Therefore, intentially the first test after gem created is fail, but in
case of gem name contains dash character is not.

The change doings...
(when "bundle gem foo-bar" called)

* create `test/test_foo_bar.rb`
* define `TestFooBar` class in `test/test_foo_bar.rb`

https://github.com/rubygems/rubygems/commit/5d9a69fc0f
2022-01-20 01:04:52 +09:00
Peter Zhu
5c4734d1ef Refactor dln_load into dln_open and dln_sym
Refactor dln_load into dln_open and dln_sym to simplify the code for
Windows and platforms that have dlopen.
2022-01-19 09:55:09 -05:00
Koichi Sasada
374904b25f remain RUBY_ON_BUG for child processes.
`RUBY_ON_BUG` is useful for child processes created by the test
process.
2022-01-19 23:17:14 +09:00
Koichi Sasada
308fe1eb85 Do not create core file if it is intentional abort
Two tests abort intentionally and they create core files if
possible. In these case, we don't need to see core files
so disable by `"Process.setrlimit(Process::RLIMIT_CORE, 0)` for
those cases.
2022-01-19 23:17:14 +09:00