summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
* Merge RubyGems/Bundler master.Hiroshi SHIBATA2023-01-318-178/+359
| | | | Pick from https://github.com/rubygems/rubygems/commit/5ace20dbecfeaf09fba5f616193f3cfcff70ba00
* [rubygems/rubygems] Add test for old lockfile with new ruby versionMike Dalessio2023-01-311-0/+58
| | | | | | | | | | | Given an existing application using native gems (e.g., nokogiri) And a lockfile generated with a stable ruby version When we test the application against ruby-head and `bundle install` Then bundler should fall back to the generic ruby platform gem Note that this test has been passing since 45931ac9 https://github.com/rubygems/rubygems/commit/0ecc6de378
* [rubygems/rubygems] Fix issue with extensions not compiling properly using ↵Tim Bates2023-01-311-0/+110
| | | | | | inline gemfile https://github.com/rubygems/rubygems/commit/fa6e6ea95c
* [rubygems/rubygems] Don't warn on bundler binstubs --standalone --allDaniel Colson2023-01-271-0/+21
| | | | | | | | | | | | | | | | | | | Prior to this commit `bundle binstubs --standalone --all` would output a warning about not being able to generate a standalone binstub for bundler. This warning predates the `--all` option, and I don't think it makes sense in this context. The warning makes good sense when explicitly trying to generate a bundler standalone binstub with `bundle binstubs bundler --standalone`, since that command won't do what the user might have expected. But `--all` is not specifically asking for bundler, and having it report each time that the bundler binstubs could not be generated does not seem particularly helpful. The only way to make that warning go away would be to stop using `--standalone --all`. This commit skips the warning when running with the `--all` option. https://github.com/rubygems/rubygems/commit/e6a72e19eb
* Enable code-coverage result for test-specHiroshi SHIBATA2023-01-261-0/+5
|
* Enable code-coverage result for test-syntax-suggestHiroshi SHIBATA2023-01-261-0/+1
|
* Add tests for variables in `END` block shared with the toplevelNobuyoshi Nakada2023-01-241-0/+4
|
* blade is hosted under ruby-lang.org nowHiroshi SHIBATA2023-01-235-5/+5
|
* More coverage tests & specs. (#7171)Samuel Williams2023-01-221-1/+7
| | | | | * Add spec for eval and line coverage. * Add test for main file coverage.
* Define RUBY_VERSION_IS_3_3 macro in rubyspec.hNobuyoshi Nakada2023-01-181-3/+8
|
* [Bug #19335] `Integer#remainder` should respect `#coerce` (#7120)Nobuyoshi Nakada2023-01-151-0/+3
| | | Also `Numeric#remainder` should.
* Move classpath to rb_classext_tPeter Zhu2023-01-111-2/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit moves the classpath (and tmp_classpath) from instance variables to the rb_classext_t. This improves performance as we no longer need to set an instance variable when assigning a classpath to a class. I benchmarked with the following script: ```ruby name = :MyClass puts(Benchmark.measure do 10_000_000.times do |i| Object.const_set(name, Class.new) Object.send(:remove_const, name) end end) ``` Before this patch: ``` 5.440119 0.025264 5.465383 ( 5.467105) ``` After this patch: ``` 4.889646 0.028325 4.917971 ( 4.942678) ```
* Remove Encoding#replicateBenoit Daloze2023-01-111-1/+1
|
* Suppressing pending messages with RSpecHiroshi SHIBATA2023-01-111-0/+6
|
* Merge RubyGems and Bundler masterHiroshi SHIBATA2023-01-1025-249/+407
| | | | from https://github.com/rubygems/rubygems/commit/0635c1423db5d7c461d53bf0c3329bca75de7609
* [rubygems/rubygems] Fix resolver edge caseDavid Rodríguez2023-01-101-0/+27
| | | | | | | Let it deal with legacy gems with equivalent version and different dependencies. https://github.com/rubygems/rubygems/commit/b430babe97
* Only RangeError on CRuby for shift width >= 2**67Benoit Daloze2023-01-072-28/+14
| | | | * It seems a better exception class too than NoMemoryError.
* Fix Integer#{<<,>>} specs with large shift widthBenoit Daloze2023-01-072-28/+46
| | | | | * The limit depends on the implementation and platform, it seems unavoidable. * See https://bugs.ruby-lang.org/issues/18518#note-9
* [ruby/syntax_suggest] Run with the given ruby commandNobuyoshi Nakada2023-01-071-1/+2
| | | | | | | | | | | | Running the file with shebang has a few issues. * shebang is an OS dependent feature. Many modern UNIX-like OSes support it, but not all, e.g., Windows. * `env` command may not be in `/usr/bin`. * "ruby" command may not be "ruby", when `--program-suffix` or other configuration option is used. https://github.com/ruby/syntax_suggest/commit/2edf241055
* Add bug numberBenoit Daloze2023-01-061-1/+1
|
* Update to ruby/spec@5e48206Benoit Daloze2023-01-053-6/+2
|
* Update to ruby/spec@7e680faBenoit Daloze2023-01-052-3/+4
|
* * remove trailing spaces, append newline at EOF. [ci skip]git2023-01-054-4/+4
|
* Update to ruby/spec@9d69b95Benoit Daloze2023-01-05113-236/+1954
|
* Update to ruby/mspec@fef9b81Benoit Daloze2023-01-051-1/+1
|
* [rubygems/rubygems] Raise invalid option when bundle open --path is called ↵yoka2023-01-041-0/+5
| | | | | | without a value https://github.com/rubygems/rubygems/commit/c242311158
* [rubygems/rubygems] Enhance bundle open with --path optionyoka2023-01-041-0/+53
| | | | https://github.com/rubygems/rubygems/commit/3bf8e59304
* Make IO#set_encoding with binary external encoding use nil internal encodingJeremy Evans2023-01-011-6/+18
| | | | | | | | | | | | | | This was already the behavior when a single `'external:internal'` encoding specifier string was passed. This makes the behavior consistent for the case where separate external and internal encoding specifiers are provided. While here, fix the IO#set_encoding method documentation to state that either the first or second argument can be a string with an encoding name, and describe the behavior when the external encoding is binary. Fixes [Bug #18899]
* numeric.c: Fix round_half_even for specific values (#7023)Kenta Murata2022-12-261-1/+1
| | | | Handle the integert and the float parts separately in round_half_even to prevent error occursions in floating point calculation.
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-12-262-2/+2
| | | | from https://github.com/rubygems/rubygems/commit/72fd3dd2096af16d797ad0cd8e0d2a8869e240b3
* Skip insanely memory consuming testsNobuyoshi Nakada2022-12-263-2/+6
| | | | | These tests do not only consume hundreds GiB bytes memory, result in `rb_bug` when `RUBY_DEBUG` is enabled.
* Skip some examples for Ruby 3.3Hiroshi SHIBATA2022-12-265-5/+5
|
* Update Bundler to 2.4.1 & and RubyGems to 3.4.1David Rodríguez2022-12-253-0/+57
|
* Windows: Prefer USERPROFILE over HOMEPATHLars Kanis2022-12-241-0/+17
| | | | | | | | | HOMEPATH is set to "\WINDOWS\system32" when running per "runas" session. This directory is not writable by ordinary users, leading to errors with many ruby tools. Also config files in the home directory are not recognized. Still keeping HOME at first which is not used by native Windows, but by ruby specs and by MSYS2 environment.
* Windows: Fix encoding of Dir.homeLars Kanis2022-12-241-0/+11
| | | | | | | Dir.home returns an UTF-8 string since ruby-3.0, but the actual encoding of the bytes was CP_ACP or CP_OEMCP. That led to invalid bytes when calling Dir.home with an unicode username.
* Merge RubyGems-3.4.0 and Bundler-2.4.0Hiroshi SHIBATA2022-12-248-24/+332
|
* Removed the needless test guard for syntax_suggest.Hiroshi SHIBATA2022-12-231-4/+0
| | | | It's resolved by https://github.com/ruby/ruby/commit/5bb43aeb890657ea586e3fabbf763e5b5670ffd7
* [ruby/syntax_suggest] Remove debug printNobuyoshi Nakada2022-12-231-1/+1
| | | | https://github.com/ruby/syntax_suggest/commit/4d53d31bc5
* [ruby/syntax_suggest] Should not hardcode ruby nameNobuyoshi Nakada2022-12-231-9/+10
| | | | https://github.com/ruby/syntax_suggest/commit/0d5201b24d
* Always issue deprecation warning when calling Regexp.new with 3rd positional ↵Jeremy Evans2022-12-221-39/+43
| | | | | | | | | | | | | | argument Previously, only certain values of the 3rd argument triggered a deprecation warning. First step for fix for bug #18797. Support for the 3rd argument will be removed after the release of Ruby 3.2. Fix minor fallout discovered by the tests. Co-authored-by: Nobuyoshi Nakada <nobu@ruby-lang.org>
* Ensure Fiber storage is only accessed from the Fiber it belongs toBenoit Daloze2022-12-201-13/+13
|
* Never use the storage of another Fiber, that violates the whole designBenoit Daloze2022-12-201-8/+0
| | | | * See https://bugs.ruby-lang.org/issues/19078#note-30
* Merge RubyGems/Bundler masterHiroshi SHIBATA2022-12-203-20/+103
| | | | Pick from https://github.com/rubygems/rubygems/commit/ba3adad4d80038ffd7bea015da2f11d3e8a2ff82
* [rubygems/rubygems] fixMark Burns2022-12-201-0/+46
| | | | | | | | https://github.com/rubygems/rubygems/pull/6147 when --parseable and --groups used together https://github.com/rubygems/rubygems/commit/3b0b95c509
* [rubygems/rubygems] Turn `--ext` option into string. Deprecate usage without ↵Josef Šimánek2022-12-201-6/+25
| | | | | | | | explicit value. - this is preparation for onboarding Rust based extension gem generator https://github.com/rubygems/rubygems/commit/d32801bdbc
* [rubygems/rubygems] Use safe Marshal deserialization for dependency API ↵Josef Šimánek2022-12-202-1/+21
| | | | | | response. - adds Bundler#safe_load_marshal and Bundler::SAFE_MARSHAL_CLASSES listing safe classes to deserialize https://github.com/rubygems/rubygems/commit/e947c608cc
* [rubygems/rubygems] Fix crash when building resolution errors with OR ↵David Rodríguez2022-12-201-0/+39
| | | | | | requirements https://github.com/rubygems/rubygems/commit/8f287479bc
* [rubygems/rubygems] Add tests for bundle lockMichael Siegfried2022-12-201-1/+30
| | | | | | Ensure `bundle lock` handles pre flag just like bundle update does. https://github.com/rubygems/rubygems/commit/b9e85e3157
* [rubygems/rubygems] Test the public interfaceMichael Siegfried2022-12-201-55/+60
| | | | | | | | | 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
* [rubygems/rubygems] Support for pre flag in `bundle update`Michael Siegfried2022-12-201-1/+30
| | | | | | | 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