summaryrefslogtreecommitdiff
path: root/spec
AgeCommit message (Collapse)Author
2024-03-03[Bug #20322] Fix rb_enc_interned_str_cstr null encodingThomas Marshall
The documentation for `rb_enc_interned_str_cstr` notes that `enc` can be a null pointer, but this currently causes a segmentation fault when trying to autoload the encoding. This commit fixes the issue by checking for NULL before calling `rb_enc_autoload`.
2024-03-01Add an example for fallback to shNobuyoshi Nakada
2024-02-28[PRISM] Fix version spec to account for prismKevin Newton
2024-02-27Handle zero-like imaginary part as zero in to_r (#9581)Kenta Murata
Fixes [Bug #5179]
2024-02-26Update to ruby/spec@3a510bbBenoit Daloze
2024-02-26Update to ruby/mspec@36e8ed8Benoit Daloze
2024-02-23Stop using rb_fstring publiclyPeter Zhu
rb_fstring is a private API, so we should use rb_str_to_interned_str instead, which is a public API.
2024-02-19[Bug #20280] Fix wrong testsNobuyoshi Nakada
2024-02-19[rubygems/rubygems] Use FileUtils.mkdir_pHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/af806b8dff
2024-02-16Avoid to fail with race conditionHiroshi SHIBATA
2024-02-16Try to test net-ftp examples againHiroshi SHIBATA
2024-02-16[rubygems/rubygems] bin/rubocop -aHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/f79a6a004d
2024-02-16[rubygems/rubygems] Add `gitlab:` Git source shorthandJason Garber
This new shorthand, similar to the existing `github:` shorthand, adds support for Gitlab repositories with a notable difference. Gitlab projects may be organized into projects and subprojects. An example Ruby gem exists at: https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb With the new shorthand, a user may install this gem from its repository by adding: ```ruby gem "gitlab-sdk", gitlab: "gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb" ``` As with the `github:` shorthand, a supplied string with no `/` will be interpreted as `example/example`. Also in keeping with the utility of the `github:` shorthand, the new `gitlab:` shorthand also supports Merge Request URLs. ```ruby gem "gitlab-sdk", gitlab: "https://gitlab.com/gitlab-org/analytics-section/product-analytics/gl-application-sdk-rb/-/merge_requests/27" ``` The `gitlab:` gem source shortcut is modeled on the existing `github:` shortcut, so the new specs mimic the existing examples. https://github.com/rubygems/rubygems/commit/f4399018c0
2024-02-15[rubygems/rubygems] use full path for instance_evalCody Cutrer
so that __dir__ and __FILE__ will work properly from within that gemfile fragment, if eval_gemfile is given a relative path https://github.com/rubygems/rubygems/commit/d521bf9790
2024-02-15Skip failing examples at Ruby 3.2+Hiroshi SHIBATA
2024-02-15Surpressing constant redefinition warningHiroshi SHIBATA
2024-02-15Exclude net-ftp examples because it has dependency issueHiroshi SHIBATA
2024-02-15Re-enabled old bundled gemsHiroshi SHIBATA
2024-02-15ruby-spec: Accept the receiver in backtracesYusuke Endoh
2024-02-15Rename and restructured net/ftp and net/http examplesHiroshi SHIBATA
2024-02-15Move examples related core extension feature by Bigdecimal to under the ↵Hiroshi SHIBATA
library/bigdecimal
2024-02-15Surpressing constant redefinition warningHiroshi SHIBATA
2024-02-15Added new ruby/spec task for bundled gemsHiroshi SHIBATA
2024-02-15Disable to run for bundled gems in test-specHiroshi SHIBATA
2024-02-15Update the error message format in bundlerYusuke Endoh
2024-02-15ruby-spec: Accept both a backtick and a single quote in error messagesYusuke Endoh
2024-02-15Only check constant leaks by default for `make test-spec`Benoit Daloze
* See https://github.com/ruby/ruby/pull/9548
2024-02-12proc.c: get rid of `CLONESETUP`Jean Boussier
[Bug #20253] All the way down to Ruby 1.9, `Proc`, `Method`, `UnboundMethod` and `Binding` always had their own specific clone and dup routine. This caused various discrepancies with how other objects behave on `dup` and `clone. [Bug #20250], [Bug #20253]. This commit get rid of `CLONESETUP` and use the the same codepath as all other types, so ensure consistency. NB: It's still not accepting the `freeze` keyword argument on `clone`. Co-Authored-By: Étienne Barrié <etienne.barrie@gmail.com>
2024-02-12Skip spec failing on i686Benoit Daloze
2024-02-12Exclude a problematic spec when run in CRuby via make test-spec until fixedBenoit Daloze
2024-02-12Update to ruby/spec@ce834adBenoit Daloze
2024-02-08[rubygems/rubygems] Improve assertionDavid Rodriguez
https://github.com/rubygems/rubygems/commit/7f2f2b898c Co-authored-by: Martin Emde <martin.emde@gmail.com>
2024-02-08[rubygems/rubygems] Run definition specs in an isolated locationDavid Rodriguez
And consistently pass Pathname's to `Definition.new` like production code does. https://github.com/rubygems/rubygems/commit/660def5b68
2024-02-08[rubygems/rubygems] Fix incorrect 4th parameter to Definition.newDavid Rodriguez
https://github.com/rubygems/rubygems/commit/54948e428d
2024-02-08[rubygems/rubygems] Move `subject` to top level contextDavid Rodriguez
https://github.com/rubygems/rubygems/commit/331c415af0
2024-02-08[rubygems/rubygems] Refactor lockfile generationDavid Rodríguez
https://github.com/rubygems/rubygems/commit/6a0c03c77f
2024-02-05Update to ruby/spec@3fc4444Benoit Daloze
2024-02-05Update to ruby/mspec@31f51e0Benoit Daloze
2024-02-05Fix typoBenoit Daloze
2024-02-02[rubygems/rubygems] Add missing Windows jobDavid Rodriguez
Specs that use extension gems were failing in the new job but I noticed that they were using very non standard `extconf.rb` files. The hack being removed here was added just to make specs pass when run in ruby-core but it seems the underlying issue has been fixed now, and it's causing issues with Ruby 3.3 and Windows, so necessary so I'm removing it and moving on. https://github.com/rubygems/rubygems/commit/5b78275f0e
2024-01-31[rubygems/rubygems] Fix musl platform not being added to the lockfileDavid Rodriguez
https://github.com/rubygems/rubygems/commit/235f7b4266
2024-01-31[rubygems/rubygems] Make slow perf specs more stableDavid Rodriguez
This seems worse to detect performance regressions, but at least should not have many false positives. https://github.com/rubygems/rubygems/commit/0b28e55415
2024-01-31[rubygems/rubygems] Fix some flaky test failures on WindowsDavid Rodriguez
Some specs assert empty output, but sometimes they print warnings about redefinition warnings. Ignore those until they are fixed upstream. https://github.com/rubygems/rubygems/commit/0cd3b6dbae
2024-01-29[rubygems/rubygems] Remove `travis_removal_info`Masato Ohba
`travis_removal_info` is added by https://github.com/rubygems/rubygems/pull/6150. According to the comment, it's supposed to be removed at bundler v2.5.0 but it hasn't. https://github.com/rubygems/rubygems/commit/e18797d43f
2024-01-29[rubygems/rubygems] Properly restore empty env varsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/e0d68a8688
2024-01-29[rubygems/rubygems] Add a spec to prove uri is no longer loadedDavid Rodríguez
https://github.com/rubygems/rubygems/commit/3a262f55c8
2024-01-29[rubygems/rubygems] Remove no longer needed uri install during specsDavid Rodríguez
https://github.com/rubygems/rubygems/commit/7f35dc19c5
2024-01-29[rubygems/rubygems] Use rubygems vendored uri from Bundler when availableDavid Rodríguez
https://github.com/rubygems/rubygems/commit/5d6a8f2fb4
2024-01-24[rubygems/rubygems] Simplified test-case for original issueHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/89086c5458
2024-01-24[rubygems/rubygems] Keep compatibility of past versionsHiroshi SHIBATA
https://github.com/rubygems/rubygems/commit/54b67fb251