aboutsummaryrefslogtreecommitdiffstats
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* [rubygems/rubygems] Fix `set` not being found when running specs on dev rubiesDavid Rodríguez2022-09-061-0/+3
| | | | https://github.com/rubygems/rubygems/commit/c5b2960388
* [rubygems/rubygems] Add `syntax_suggest` to exemption list in setup specsDavid Rodríguez2022-09-061-0/+1
| | | | https://github.com/rubygems/rubygems/commit/f9a51e4380
* [rubygems/rubygems] Remove no longer needed `fiddle` hacksDavid Rodríguez2022-09-054-13/+0
| | | | | | | RubyInstaller has released patch versions backporting their changes to not load `fiddle` on boot, so all these are no longer necessary. https://github.com/rubygems/rubygems/commit/05a307deb2
* Merge ↵Hiroshi SHIBATA2022-09-0516-467/+130
| | | | https://github.com/rubygems/rubygems/commit/16c3535413afebcdbab7582c6017c27b5da8a8dc
* [rubygems/rubygems] Feature: `bundle add` supports `--path` optionMike Dalessio2022-09-051-0/+9
| | | | https://github.com/rubygems/rubygems/commit/32bee01fbe
* [rubygems/rubygems] Fix resolution hanging on musl platformsDavid Rodríguez2022-09-052-6/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | After recent musl support was added, Bundler started hanging in musl platforms. I identified the issue where valid candidates were being filtered out because their platform was specified as a string, and thus `Gem::Platform.match_spec?` which under the hood ends up calling `Gem::Platform#===` would return `nil`, because it does not support comparing platforms to strings. In particular, `Bundler::EndpointSpecification`'s platform coming from the API was not instantiated as a `Gem::Platform`, hence the issue. Also, this spec surfaced another issue where a bug corrected in `Gem::Platform#match_platforms` had not been yet backported to Bundler. So this commit also backports that to get the spec green across RubyGems versions. Finally, the fix in `Bundler::EndpointSpecification` made a realworld spec start failing. This spec was faking out `rails-4.2.7.1` requirement on Bundler in the `Gemfile.lock` file to be `>= 1.17, < 3` when the real requirement is `>= 1.17, < 2`. Due to the bug in `Bundler::EndpointSpecification`, the real requirement provided by the compact index API (recorded with VCR) was being ignored, and the `Gemfile.lock` fake requirement was being used, which made the spec pass. This is all expected, and to fix the issue I changed the spec to be really realworld and don't fake any Bundler requirements. https://github.com/rubygems/rubygems/commit/faf4ef46bc
* rb_int_range_last: properly handle non-exclusive rangeJean Boussier2022-09-041-0/+6
| | | | [Bug #18994]
* * append newline at EOF. [ci skip]git2022-09-021-1/+1
|
* Added doc about `test-syntax-suggest`Hiroshi SHIBATA2022-09-021-0/+12
|
* Added entries about test-bundler-parallel and BUNDLER_SPECSHiroshi SHIBATA2022-09-021-0/+8
|
* Skip a couple of chroot spec failluresTakashi Kokubun2022-08-291-2/+5
| | | | | I don't come up with a way to fix it right away. We'd need some experiments on a pull request.
* Update to ruby/spec@b8a8240Benoit Daloze2022-08-294-7/+8
|
* Update to ruby/mspec@37151a0Benoit Daloze2022-08-291-1/+2
|
* Update to ruby/spec@d01709fBenoit Daloze2022-08-2932-52/+473
|
* [rubygems/rubygems] Add platform :windows as a shortcut for all Windows ↵shields2022-08-2911-22/+74
| | | | | | platforms https://github.com/rubygems/rubygems/commit/f3c49ad3f7
* [rubygems/rubygems] Bundler: make to_lock consistent between ↵Aleksandr Varnin2022-08-281-0/+37
| | | | | | Gem::Dependency and Bundler::Dependency https://github.com/rubygems/rubygems/commit/971d57cf5a
* Skip examples to need installed ruby exeHiroshi SHIBATA2022-08-261-0/+3
|
* Added syntax_suggest cli and resolve failing exapmle with itHiroshi SHIBATA2022-08-262-1/+9
|
* ruby-prof is now optionalHiroshi SHIBATA2022-08-261-1/+4
|
* Import spec examples from ruby/syntax_suggestHiroshi SHIBATA2022-08-2626-0/+14536
|
* Fix private methods reported as protected when called via Symbol#to_procJean Boussier2022-08-251-4/+4
| | | | | Ref: bfa6a8ddc84fffe0aef5a0f91b417167e124dbbf Ref: [Bug #18826]
* [rubygems/rubygems] Fix another regression for sorbetDavid Rodríguez2022-08-251-0/+71
| | | | | | | | | | | | | Recently a changed was introduced to update the resolver platforms after it has been created, in order to remove the "ruby" platform from it if it's to be removed from the lockfile. However, it did not update the `@resolving_only_for_ruby` instance variable in that case, so the resolver was not properly doing the right thing anymore. To fix this, I tweaked the code to restore not changing resolver platforms after the resolver has been instantiated. https://github.com/rubygems/rubygems/commit/8fbc30a1d0
* [rubygems/rubygems] Backport non-gnu libc on linux platform matching to BundlerDavid Rodríguez2022-08-242-0/+77
| | | | | | https://github.com/rubygems/rubygems/commit/703373b41f Co-authored-by: Loic Nageleisen <loic.nageleisen@gmail.com>
* [rubygems/rubygems] Bundler: avoid use of "can not" in spec literalsTakuya Noguchi2022-08-232-3/+3
| | | | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> https://github.com/rubygems/rubygems/commit/73b5cf9bd1
* [rubygems/rubygems] Bundler: update the link suggested on error with the new oneTakuya Noguchi2022-08-231-2/+2
| | | | | | | | Also typo is fixed. Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com> https://github.com/rubygems/rubygems/commit/9c1ea52ddf
* Merge rubygems/bundler HEADHiroshi SHIBATA2022-08-232-0/+87
| | | | Pick from https://github.com/rubygems/rubygems/commit/6b3a5a9ab0453463381a8164efb6298ea9eb776f
* [rubygems/rubygems] Fix conservative update downgrading top level gemsDavid Rodríguez2022-08-231-0/+60
| | | | | | | | | | | | | | | | | | | | | | | | When `--conservative` is passed, explicit unlocks are set for top level gems via `@unlock[:gems]`, so that only those particular gems are allowed to be updated. When we compute the "base resolve" from the lockfile (the set of gems whose versions should be kept pinned by the resolver), we always exclude gems explicitly unlocked through `@unlock[:gems]` from it. This is done by the `converge_specs` method. However, the `converge_specs` method is also used for figuring out additional lower bound requirements from the lockfile. But in this case, even if gems are explicitly unlock in `@unlock[:gems]`, we still want to add the additional requirement, so that gems are not downgraded by the resolver. So the solution is to move the line filtering out gems in `@unlock[:gems]` from the `converged_specs` method out of that method, so that it only applies for computing the "base resolve", but not the addtional lower bound requirements. https://github.com/rubygems/rubygems/commit/405119bd7b
* [rubygems/rubygems] Make `compact_index_api_missing` server more strictDavid Rodríguez2022-08-231-6/+1
| | | | | | The compact index should not request any marshaled gemspecs whatsoever. https://github.com/rubygems/rubygems/commit/6dbd44d0c0
* [rubygems/rubygems] Fix edge case where `bundler/inline` unintentionally ↵David Rodríguez2022-08-211-0/+14
| | | | | | | | | skips install If the application has the `no_install` setting set for `bundle package`, then `bundler/inline` would silently skip installing any gems. https://github.com/rubygems/rubygems/commit/7864f49b27
* [rubygems/rubygems] Fix `bundle platform` crash when there's a lockfile with ↵David Rodríguez2022-08-211-0/+23
| | | | | | no Ruby locked https://github.com/rubygems/rubygems/commit/49fc54e87d
* Consider resolved-through-zsuper methods equal for compatibilityBenoit Daloze2022-08-201-0/+37
| | | | * Fixes https://bugs.ruby-lang.org/issues/18751
* [Bug #18955] format single character for `%c`Nobuyoshi Nakada2022-08-202-10/+30
|
* Implement SizedQueue#push(timeout: sec)Jean Boussier2022-08-181-0/+57
| | | | | | | [Feature #18944] If both `non_block=true` and `timeout:` are supplied, ArgumentError is raised.
* The tzdata 2022c removed Amsterdam Mean TimeNobuyoshi Nakada2022-08-171-0/+2
|
* [rubygems/rubygems] Fix Ruby platform incorrectly removed on `bundle update`David Rodríguez2022-08-151-0/+41
| | | | https://github.com/rubygems/rubygems/commit/0d321c9e3a
* Fix Array#[] with ArithmeticSequence with negative steps (#5739)Jeremy Evans2022-08-111-0/+96
| | | | | | | | | | | | | | | | | | | | | | * Fix Array#[] with ArithmeticSequence with negative steps Previously, Array#[] when called with an ArithmeticSequence with a negative step did not handle all cases correctly, especially cases involving infinite ranges, inverted ranges, and/or exclusive ends. Fixes [Bug #18247] * Add Array#slice tests for ArithmeticSequence with negative step to test_array Add tests of rb_arithmetic_sequence_beg_len_step C-API function. * Fix ext/-test-/arith_seq/beg_len_step/depend * Rename local variables * Fix a variable name Co-authored-by: Kenta Murata <3959+mrkn@users.noreply.github.com>
* Only allow procs created by Symbol#to_proc to call public methodsJeremy Evans2022-08-102-1/+28
| | | | | Fixes [Bug #18826] Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [Bug #18946] New tests for fixed Time/DateTime conversionsNobuyoshi Nakada2022-08-082-0/+26
|
* [Bug #18946] Use Gregorian dates to testNobuyoshi Nakada2022-08-082-4/+4
|
* Silent backtrace from cve_2019_8325_spec.rbNobuyoshi Nakada2022-08-071-0/+9
| | | | | | Since the change at f310ac1cb2964f635f582862763b2155aacf2c12 to show the backtraces by default, this test started to show the backtraces. As the backtraces are not the subject of this test, silence them by using Gem::SilentUI.
* [rubygems/rubygems] Fix yanked gems being unintentionally update when other ↵David Rodríguez2022-08-062-1/+58
| | | | | | | | | | | | | gems are unlocked This is a regression from a change intended to raise errors when user puts a gem under an incorrect source in the Gemfile by mistake. To fix the issue, we revert the change that caused it and implement it in a different way that restores the resolver independency from real specifications. Now it deals only with names and versions and does not try to materialize anything into real specifications before resolving. https://github.com/rubygems/rubygems/commit/d2bf1b86eb
* Test that File.read defaults to text modeAlan Wu2022-08-051-0/+8
| | | | Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* [rubygems/rubygems] Automatically remove "ruby" from lockfile if incompleteDavid Rodríguez2022-08-051-0/+71
| | | | https://github.com/rubygems/rubygems/commit/69d0b4e10b
* [rubygems/rubygems] Fix `bundle outdated --strict`David Rodríguez2022-08-031-0/+16
| | | | | | | | | It should be an alias of `--filter-strict`. `--update-strict` is essentially a dummy option with no special behavior associated and should be deprecated. https://github.com/rubygems/rubygems/commit/ec1e5d83c8
* [rubygems/rubygems] Fix conservative updates regardless of `--strict`David Rodríguez2022-08-031-98/+96
| | | | https://github.com/rubygems/rubygems/commit/c9a1d69a8d
* Merge rubygems/bundler HEADHiroshi SHIBATA2022-08-034-7/+7
| | | | Pick from https://github.com/rubygems/rubygems/commit/8331e63263081a6aa690d8025d2957f30c4e814a
* Implement Queue#pop(timeout: sec)Jean Boussier2022-08-021-0/+55
| | | | | | | | | [Feature #18774] As well as `SizedQueue#pop(timeout: sec)` If both `non_block=true` and `timeout:` are supplied, ArgumentError is raised.
* [rubygems/rubygems] Preserve the previous behavior of raising an error when ↵David Rodríguez2022-08-021-37/+50
| | | | | | in frozen mode https://github.com/rubygems/rubygems/commit/6e35a6edfe
* [rubygems/rubygems] Check for errors in error streamDavid Rodríguez2022-08-021-5/+5
| | | | https://github.com/rubygems/rubygems/commit/7b0f7804f2
* [rubygems/rubygems] Don't discard candidates matching ruby metadataDavid Rodríguez2022-08-022-4/+65
| | | | | | | | | | Do dependency filtering and materialization in one step. Before, dependency filtering would not consider ruby metadata so it would discard variants that end up not being materializable in the end. https://github.com/rubygems/rubygems/commit/0c0d40d417 Co-authored-by: Ian Ker-Seymer <ian.kerseymer@shopify.com>