75686 Commits

Author SHA1 Message Date
David Rodríguez
efd103f3e5 [rubygems/rubygems] Fix crash when showing some resolution errors
If the conflict explanation includes empty ranges and version unions,
Pub Grub was crashing.

https://github.com/rubygems/rubygems/commit/eb360b77a2
2022-12-20 13:15:02 +09:00
David Rodríguez
1db9bcfeaf [rubygems/rubygems] Fix crash when building resolution errors with OR requirements
https://github.com/rubygems/rubygems/commit/8f287479bc
2022-12-20 13:15:02 +09:00
David Rodríguez
8293489564 [rubygems/rubygems] Slight tweak to error message building
Let Pub Grub decide how the constraint should be displayed.

https://github.com/rubygems/rubygems/commit/4f651b6429
2022-12-20 13:15:02 +09:00
Michael Siegfried
beef72965e [rubygems/rubygems] Clarify flag description
Prerelease versions are already considered in a certain circumstance,
and the 'if updating' is redundant in the update case anyway.

https://github.com/rubygems/rubygems/commit/8d68635f8c
2022-12-20 13:15:02 +09:00
Michael Siegfried
32e72b78b3 [rubygems/rubygems] Add tests for bundle lock
Ensure `bundle lock` handles pre flag just like bundle update does.

https://github.com/rubygems/rubygems/commit/b9e85e3157
2022-12-20 13:15:02 +09:00
Michael Siegfried
42972bdd92 [rubygems/rubygems] Test the public interface
With `GemVersionPromoter#sort_versions` being so simple, we no longer
need to reach into the class's internals to make private methods public
in order to effectively test. We can just allow both cases to go through
the main method.

https://github.com/rubygems/rubygems/commit/6cbe891003
2022-12-20 13:15:02 +09:00
Michael Siegfried
c436f52fe8 [rubygems/rubygems] Fix tiny typo
https://github.com/rubygems/rubygems/commit/390e3e1ebd
2022-12-20 13:15:02 +09:00
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.

https://github.com/rubygems/rubygems/commit/a6409e3509
2022-12-20 13:15:02 +09:00
Michael Siegfried
1ee31f9d9d [rubygems/rubygems] Clarify segment equality check
https://github.com/rubygems/rubygems/commit/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.

https://github.com/rubygems/rubygems/commit/086bc9433f
2022-12-20 13:15:02 +09:00
Michael Siegfried
c67f6c4daf [rubygems/rubygems] Add question marks to interrogative methods
https://github.com/rubygems/rubygems/commit/52da85e9ef
2022-12-20 13:15:02 +09:00
Eloy Espinaco
0a9544ce4a [rubygems/rubygems] Cleanup intermediate artifacts after installing built extensions
https://github.com/rubygems/rubygems/commit/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.

https://github.com/rubygems/rubygems/commit/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.

https://github.com/rubygems/rubygems/commit/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.

https://github.com/rubygems/rubygems/commit/4a7a584252
2022-12-20 13:15:02 +09:00
David Rodríguez
16b36a5b0c [rubygems/rubygems] Remove unused code
https://github.com/rubygems/rubygems/commit/b88c43a28c
2022-12-20 13:15:02 +09:00
David Rodríguez
d1533f20f1 [rubygems/rubygems] Detect circular dependency errors
https://github.com/rubygems/rubygems/commit/a8348d271d
2022-12-20 13:15:02 +09:00
David Rodríguez
96aa1a1a98 [rubygems/rubygems] Remove dead logic
https://github.com/rubygems/rubygems/commit/950615405e
2022-12-20 13:15:02 +09:00
David Rodríguez
d1c210355b [rubygems/rubygems] Extract a variable for consistency
https://github.com/rubygems/rubygems/commit/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
https://github.com/ruby/irb/commit/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 1142bc875bc00d492046ecbf781f07 [ci skip] 2022-12-19 06:00:53 +00:00
Hiroshi SHIBATA
1142bc875b [ruby/did_you_mean] Bump version to 1.6.3
https://github.com/ruby/did_you_mean/commit/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 6229c02d6b895eda8c73efa8a41c73692d133a65.

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 08d21b4bd2000596160d62f28b840b [ci skip] 2022-12-19 01:51:11 +00:00
Hiroshi SHIBATA
08d21b4bd2
[ruby/net-http] Bump version to 0.3.2
https://github.com/ruby/net-http/commit/b8bdb7248e
2022-12-19 10:50:21 +09:00
Hiroshi SHIBATA
1998d97908
[ruby/date] Bump version to 3.3.3
https://github.com/ruby/date/commit/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.

https://github.com/rubygems/rubygems/commit/7fc00bd2a5
2022-12-18 19:17:42 +00:00