git
b746b713e5
* 2021-12-17 [ci skip]
2021-12-17 01:56:16 +09:00
Nobuyoshi Nakada
06bdb41c45
dln.c: refine preprocessor conditions by USE_DLN_DLOPEN and _WIN32
2021-12-17 00:44:54 +09:00
Lars Kanis
fff058a8d6
Add description of ruby header files to extension.rdoc
2021-12-16 20:10:55 +09:00
S.H
9b187fec58
Add `rb_parser_set_pos` function
...
Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
Co-authored-by: Marivaldo Cavalheiro <marivaldo@gmail.com>
2021-12-16 20:03:44 +09:00
Matheus Richard
41d4902c27
Improve wording on NEWS.md
2021-12-16 20:02:07 +09:00
Nobuyoshi Nakada
cf54de637c
[DOC] random number by range
2021-12-16 18:00:23 +09:00
Nobuyoshi Nakada
5bf0060e0a
[DOC] Skip tests if only documents change [ci skip]
...
Run only checks for source code. Currently, our CIs do almost
nothing about the documents.
2021-12-16 17:50:20 +09:00
Nobuyoshi Nakada
32ee6f80ee
Restore the global random seed
2021-12-16 17:44:12 +09:00
Nobuyoshi Nakada
6c87f8fc29
Fix Kernel#srand and Kernel#rand descriptions [ci skip]
...
Actually used methods are all instance method, not the singleton
method.
2021-12-16 17:44:12 +09:00
Nobuyoshi Nakada
18fef09a02
Refine wording about the default random seed [ci skip]
2021-12-16 17:44:12 +09:00
Yuta Saito
f1a02ebfb9
Install gemspec even though no .rb and no .so
...
When building with --with-static-linked-ext, some exts without rb file
doesn't produce neither .so or .rb under .ext/common. Therefore, change
rbinstall.rb to install gemspec even if there is no .so or .rb for that
case.
2021-12-16 16:17:41 +09:00
Yuta Saito
332d1e52e6
btest: assign $stderr = STDOUT instead of IO#reopen to be more portable
...
`IO#reopen` internally uses dup syscall but some platforms don't support
the syscall. re-assigning `$stderr` is enough to capture the interpreter's
errors and warnings.
2021-12-16 16:16:40 +09:00
Nobuyoshi Nakada
69a7eaae38
Use `to_s` and `puts` in tests
...
`to_s` has the explict specification while `inspect` is often
vague.
2021-12-16 15:12:12 +09:00
Nobuyoshi Nakada
05c9dfe23a
Suppress empty-body warning
2021-12-16 14:19:28 +09:00
Takashi Kokubun
02ba0bda7e
Remove RubyVM::JIT ( #5275 )
...
[Feature #18349 ] reverts [Feature #17490 ]
2021-12-15 20:02:30 -08:00
git
40cc8e9231
* 2021-12-16 [ci skip]
2021-12-16 06:13:40 +09:00
Alan Wu
7e27de2f1e
YJIT: Remove unused branch_t::src_ctx field
...
No one reads it at the moment and it's heap allocated.
2021-12-15 16:13:23 -05:00
git
fbd21a81f3
Update stdlib version at 333865e56f
[ci skip]
2021-12-15 12:52:15 +00:00
Nobuyoshi Nakada
333865e56f
Workaround for reline.gemspec
...
This file searches "lib/reline/version.rb" in the same directory,
"lib/reline". As no such path, the file in the default load path
is loaded unexpectedly.
2021-12-15 21:47:41 +09:00
Hiroshi SHIBATA
1694190833
Skip test_operating_system_customizing_default_dir for failing with rubyci
2021-12-15 21:32:32 +09:00
git
1fc80754dd
Update stdlib version at 9f87c0cc6d
[ci skip]
2021-12-15 10:47:15 +00:00
David Rodríguez
9f87c0cc6d
[rubygems/rubygems] Pass `:bimode` explicitly to `File.open`
...
The `File::BINARY` flag is apparently ignored due to a ruby bug, and
thus writing can cause encoding issues.
https://github.com/rubygems/rubygems/commit/db4efbebf2
2021-12-15 19:46:44 +09:00
David Rodríguez
c2dbdf3067
[rubygems/rubygems] Extract a helper to temporarily modify internal encoding
...
https://github.com/rubygems/rubygems/commit/93051fd2aa
2021-12-15 19:46:43 +09:00
David Rodríguez
890a6b432c
[rubygems/rubygems] Unify duplicated helper
...
https://github.com/rubygems/rubygems/commit/c6ef75424d
2021-12-15 19:46:43 +09:00
Kazuhiro NISHIYAMA
de01011da3
Update stdlib version [ci skip]
2021-12-15 18:53:16 +09:00
Hiroshi SHIBATA
5044371621
Skip s390x because Travis CI was failing with unknown reason
2021-12-15 18:05:18 +09:00
Hiroshi SHIBATA
7e084ed707
Merge RubyGems and Bundler master
...
Merge from 793ad95ecb
2021-12-15 18:05:18 +09:00
git
583e06e28f
Update stdlib version at ded33ed5b8
[ci skip]
2021-12-15 09:00:47 +00:00
Nobuyoshi Nakada
ded33ed5b8
Update stdlib in NEWS
2021-12-15 17:55:43 +09:00
Kazuhiro NISHIYAMA
7d50142a9b
Remove unused footnote [ci skip]
2021-12-15 16:59:10 +09:00
git
b2395539aa
Update bundled_gems at 2021-12-15
2021-12-15 07:01:23 +00:00
Nobuyoshi Nakada
0f99f3fe5e
Adjust indents [ci skip]
2021-12-15 15:31:46 +09:00
Koichi Sasada
13c37835d5
ucrt can raise `Errno::EINVAL`
...
`ENV[key] = long_str` can raise `Errno::EINVAL` also on ucrt env.
2021-12-15 15:04:34 +09:00
Koichi Sasada
04aab3c259
fix test
2021-12-15 15:04:34 +09:00
Koichi Sasada
0eafba3610
use `RB_VM_LOCK_ENTER()`
...
We found that we need to make Ruby objects while locking the environ
to ENV operation atomically, so we decided to use `RB_VM_LOCK_ENTER()`
instead of `env_lock`.
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
a4a3528eb7
Removed no longer used variables
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
a6ebc10532
Fixed env_pairs array types
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
db3ab440db
Use prototype definition instead of old K&R style
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
b43338ccc4
Update dependencies
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
88e36d8f3c
Adjust styles [ci skip]
...
* --braces-after-func-def-line
* --space-after-for
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
9bb83a82ab
Removed traling spaces [ci skip]
2021-12-15 15:04:34 +09:00
Nobuyoshi Nakada
f471cf295b
Symbols closed to env should be static
2021-12-15 15:04:34 +09:00
Rohit Menon
3aab870761
Make ENV shareable
2021-12-15 15:04:34 +09:00
Rohit Menon
e071ac8b3d
Add Ractor tests for ENV
2021-12-15 15:04:34 +09:00
Rohit Menon
2a3e4b6940
Move exception-raising functions out of mutex; Refactor env-copying
2021-12-15 15:04:34 +09:00
Rohit Menon
d3d156c21e
Add locks for ENV
2021-12-15 15:04:34 +09:00
Victor Shepelev
0fcc58a18c
[DOC] Improve Thread::Queue.new docs [ci skip]
2021-12-15 11:25:33 +09:00
Alan Wu
ac5d6faea8
YJIT: Fix unexpected truncation when outputing VALUE
...
Previously, YJIT incorrectly discarded the upper 32 bits of the object
pointer when writing out VALUEs to setup default keyword arguments.
In addition to incorrectly truncating, the output pointers were not
properly tracked for handling GC compaction moving the referenced
objects.
YJIT previously attempted to encode a mov instruction with a memory
destination and a 64 bit immediate when there is no such encoding
possible in the ISA. Add an assert to mitigate not being able to
catch this at build time.
2021-12-14 19:47:42 -05:00
Nobuyoshi Nakada
6eb500e2df
[ruby/cgi] Extract CGI::Session#new_store_file
...
https://github.com/ruby/cgi/commit/b3e2ff9164
2021-12-15 08:24:41 +09:00
John Hawthorn
e307627b6c
Don't invalidate BOPs when aliases redefined
...
Previously when redefining an alias of a BOP, we would unnecessarily
invalidate the bop. For example:
class String
alias len length
private :len
end
This commit avoids this by checking that the called_id on the method
entry matches the original_id on the definition.
2021-12-14 15:22:51 -08:00