Commit graph

77079 commits

Author SHA1 Message Date
Michael Siegfried
2bc4f1dea5 [rubygems/rubygems] Support for pre flag in bundle update
Passing this flag allows bumping to the current version, even if that
version is prerelease. This works in concert with the current flags.

a6409e3509
2022-12-20 13:15:02 +09:00
Michael Siegfried
1ee31f9d9d [rubygems/rubygems] Clarify segment equality check
6624474c5a
2022-12-20 13:15:02 +09:00
Michael Siegfried
e58d18bf23 [rubygems/rubygems] Return early outside of loop
The conditions are not dependent on each spec and can be checked once at
the beginning of the method.

086bc9433f
2022-12-20 13:15:02 +09:00
Michael Siegfried
c67f6c4daf [rubygems/rubygems] Add question marks to interrogative methods
52da85e9ef
2022-12-20 13:15:02 +09:00
Eloy Espinaco
0a9544ce4a [rubygems/rubygems] Cleanup intermediate artifacts after installing built extensions
98b6a959bd
2022-12-20 13:15:02 +09:00
David Rodríguez
9d10b8393e [rubygems/rubygems] Use better name for variable
The installed file not always have the `.so` extension.

6f6681bcb9

Co-authored-by: Eloy Espinaco <eloyesp@gmail.com>
2022-12-20 13:15:02 +09:00
Eloy Espinaco
012ef7d1d0 [rubygems/rubygems] Fix tests checking intermediate files
Some tests check that the shared objects are actually installed, but
checking an intermediate build file instead of the installed one.

ad526073b0
2022-12-20 13:15:02 +09:00
David Rodríguez
3fd33590f6 [rubygems/rubygems] Fix crash when lockfile is missing dependencies
We have a check for a corrupt lockfile right before installing. However,
the check accounted for locked specs not satisfying locked dependencies,
but not for locked specs missing for some locked dependencies.

Instead of fixing this check, I decided to remove it in favor of
automatically detecting the situation and re-resolve to automatically
fix the lockfile rather than printing a warning but leave the problem
there.

4a7a584252
2022-12-20 13:15:02 +09:00
David Rodríguez
16b36a5b0c [rubygems/rubygems] Remove unused code
b88c43a28c
2022-12-20 13:15:02 +09:00
David Rodríguez
d1533f20f1 [rubygems/rubygems] Detect circular dependency errors
a8348d271d
2022-12-20 13:15:02 +09:00
David Rodríguez
96aa1a1a98 [rubygems/rubygems] Remove dead logic
950615405e
2022-12-20 13:15:02 +09:00
David Rodríguez
d1c210355b [rubygems/rubygems] Extract a variable for consistency
3f4b1c7a01
2022-12-20 13:15:02 +09:00
Yusuke Endoh
fe3dedb21a Prevent a "method redefined" warning 2022-12-17 08:51:20 +09:00
Yusuke Endoh
2013dd4658 Prevent warning "assigned but unused variable - initial_shape" 2022-12-17 08:40:36 +09:00
Takashi Kokubun
8f081d4d0f
Syntax-highlight scripts in yjit.md [ci skip]
Specifically, I wanted to grey out comments in shell scripts. But I just
specified a language for blocks without comments as well to avoid
forgetting that in the future.
2022-12-19 14:55:49 -08:00
Peter Zhu
e7915d6d70 Fix misfire of compaction read barrier
gc_compact_move incorrectly returns false when destination heap is full
after sweeping. It returns false even if destination heap is different
than source heap (returning false means that the source heap has
finished compacting). This causes the source page to get locked, which
causes a read barrier fire when we try to compact the source heap again.
2022-12-19 17:09:08 -05:00
Takashi Kokubun
650a20a3e1
Re-enable test_ractor for YJIT
This would be still flaky, but we want to make sure there's no
YJIT-specific issue when Ruby 3.2 is released. We might skip it again
after the release.
2022-12-19 13:59:36 -08:00
Peter Zhu
8275cad1e1 Fix buffer overrun when re-embedding objects
We eagerly set the new shape of an object when moving an object during
compaction. This new shape may have a different capacity than the
current original shape capacity. This means that we cannot copy from the
original buffer using size of the new capacity. Instead, we should use
the ivar count (which is less than or equal to both the new and original
capacities).

Co-Authored-By: Matt Valentine-House <matt@eightbitraptor.com>
2022-12-19 13:13:26 -05:00
Mau Magnaguagno
b2f53dccbe
YJIT: skip map in print_sorted_exit_counts (#6954)
Array#sum accepts a block.
2022-12-19 10:44:23 -05:00
Takashi Kokubun
1482f0649e
YJIT: Improve the description about --enable-yjit (#6947) 2022-12-19 10:26:21 -05:00
Takashi Kokubun
bcdc9cf159
YJIT: Make --yjit-stats always visible on --help (#6946) 2022-12-19 10:19:56 -05:00
Nobuyoshi Nakada
1148636e3d [ruby/irb] PTY module is platform dependent
dbb3dc72ff
2022-12-19 17:49:59 +09:00
Hiroshi SHIBATA
9761422f47
Added news entries for Bundler 2022-12-19 15:55:13 +09:00
git
919b5bfce3 Update default gems list at 1142bc875b [ci skip] 2022-12-19 06:00:53 +00:00
Hiroshi SHIBATA
1142bc875b [ruby/did_you_mean] Bump version to 1.6.3
f7703add76
2022-12-19 14:59:59 +09:00
Yusuke Endoh
2605ff79aa tool/update-NEWS-refs.rb: Accept non-redmine url links 2022-12-19 14:48:18 +09:00
Kazuhiro NISHIYAMA
65ce6795fe
Sort by URL [ci skip] 2022-12-19 14:39:02 +09:00
Hiroshi SHIBATA
9a48459393
Added notable changes for the default gems 2022-12-19 14:22:18 +09:00
Nobuyoshi Nakada
c41a7012ca
Use pthread API if the target platform doesn't support TLS attribute 2022-12-19 14:09:30 +09:00
Takashi Kokubun
4de514da38 Revert "Mentioned https://github.com/ruby/ruby/pull/6086 to NEWS"
This reverts commit 6229c02d6b.

Nothing has been changed in RubyVM.stat on normal Ruby build. It seems
confusing to say that something has been changed there. The flag is
supposed to be enabled only by CRuby developers, and it's not efficient
enough for public consumption.
2022-12-18 21:04:10 -08:00
Nobuyoshi Nakada
d64e10228d
Fix guess_diff type
`unsigned_time_t` has the same size as `time_t`, but it doesn't mean
these types are same except for signedness.  For instance, while
`long` and `long long` has the same size and `time_t` is defined as
the latter on 64bit OpenBSD, `unsigned_time_t` has been defined as
`long`.
2022-12-19 13:14:46 +09:00
Hiroshi SHIBATA
df4820e749
Added some changes that are only exists on GitHub to NEWS 2022-12-19 12:10:02 +09:00
Hiroshi SHIBATA
40ec3762d2
Mentioned https://github.com/ruby/date/pull/80 2022-12-19 11:45:23 +09:00
Hiroshi SHIBATA
289d99cc62
Merge Time class sections on NEWS 2022-12-19 11:43:56 +09:00
Hiroshi SHIBATA
6229c02d6b
Mentioned https://github.com/ruby/ruby/pull/6086 to NEWS 2022-12-19 11:38:25 +09:00
Hiroshi SHIBATA
63a9b72c17
Removed empty section 2022-12-19 11:34:17 +09:00
卜部昌平
34d43ed9f5 typo in doc [ci skip] 2022-12-19 11:20:55 +09:00
卜部昌平
47a6e7b518 Note about Regexp.linera_time? [ci skip] 2022-12-19 11:05:55 +09:00
git
e123695fbc Update default gems list at 08d21b4bd2 [ci skip] 2022-12-19 01:51:11 +00:00
Hiroshi SHIBATA
08d21b4bd2
[ruby/net-http] Bump version to 0.3.2
b8bdb7248e
2022-12-19 10:50:21 +09:00
Hiroshi SHIBATA
1998d97908
[ruby/date] Bump version to 3.3.3
ea3644a7c4
2022-12-19 10:50:21 +09:00
Samuel Williams
6073782627
Disable SEH workaround on __MINGW64__ only. (#6957) 2022-12-19 13:45:50 +13:00
Alyssa Ross
d4315284e9 [rubygems/rubygems] Add bundle lock --update --bundler
bundle lock --update can do everything that bundle update can do, but
it doesn't actually install gems. This is especially useful for
generating a lockfile on a machine that doesn't have the libraries
available to be able to build native extensions.

But, there was no parallel for bundle update --bundler. So let's add
one.

7fc00bd2a5
2022-12-18 19:17:42 +00:00
BurdetteLamar
ede7c035d5 [ruby/net-http] Adding links to references
6dfe6f411a
2022-12-18 15:37:45 +00:00
Nobuyoshi Nakada
7e93f7ceb7
Suppress cross tool warning for pkg-config [ci skip]
It is used from mkmf.rb on target environments.
2022-12-18 14:24:14 +09:00
Mike Dalessio
e7bffe0c4b configure.ac: add miniruby to PREP when cross-compiling to darwin
miniruby is used to resolve symbols in ext bundles

https://bugs.ruby-lang.org/issues/19239

Co-authored-by: Yuta Saito <kateinoigakukun@gmail.com>
2022-12-18 11:56:53 +08:00
Nobuyoshi Nakada
c316a5f2f1 [ruby/date] Adjust format [ci skip]
71c35b4054
2022-12-18 03:03:54 +00:00
Nobuyoshi Nakada
b8cc0992c6 [ruby/date] Extract head_match_p and abbreviated name length constants
3f666fa882
2022-12-18 02:58:51 +00:00
Nobuyoshi Nakada
df49bf8150 [ruby/date] Consider the length of string to parse
3bfed83ce7
2022-12-18 02:58:50 +00:00
Nobuyoshi Nakada
49dc424ff3 [ruby/date] Remove extz_pats table
945e26e243
2022-12-18 02:58:49 +00:00