summaryrefslogtreecommitdiff
path: root/spec
Commit message (Collapse)AuthorAgeFilesLines
...
* [rubygems/rubygems] Improve resolver error messagesDavid Rodríguez2021-12-172-5/+5
| | | | | | Use a more standard naming for gems. https://github.com/rubygems/rubygems/commit/75121e83f1
* Restore the global random seedNobuyoshi Nakada2021-12-161-0/+8
|
* Fix Kernel#srand and Kernel#rand descriptions [ci skip]Nobuyoshi Nakada2021-12-162-4/+4
| | | | | Actually used methods are all instance method, not the singleton method.
* Refine wording about the default random seed [ci skip]Nobuyoshi Nakada2021-12-161-1/+1
|
* Use `to_s` and `puts` in testsNobuyoshi Nakada2021-12-161-1/+1
| | | | | `to_s` has the explict specification while `inspect` is often vague.
* Merge RubyGems and Bundler masterHiroshi SHIBATA2021-12-153-8/+8
| | | | Merge from https://github.com/rubygems/rubygems/commit/793ad95ecb40e84a1dcb4cb60f2686843ed90de5
* Prepare for removing RubyVM::JIT (#5262)Takashi Kokubun2021-12-132-2/+2
|
* [rubygems/rubygems] Add `github` and `ref` options to `bundle add`Vyacheslav Alexeev2021-12-111-2/+35
| | | | https://github.com/rubygems/rubygems/commit/c3e54acab0
* [rubygems/rubygems] Ignore dependencies not actually locked from frozen checkDavid Rodríguez2021-12-101-0/+11
| | | | | | Only needed if there can be no explicit global source (bundler < 3). https://github.com/rubygems/rubygems/commit/73923f4af5
* Skip bind port 1 when ip_unprivileged_port_start<=1Kazuhiro NISHIYAMA2021-12-081-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Linux can allow to bind port 1 to user. And `ip_unprivileged_port_start` is 0 on [lima](https://github.com/lima-vm/lima) default vm. ``` 1) Socket#bind on SOCK_DGRAM socket raises Errno::EACCES when the current user does not have permission to bind FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:38:in `block (4 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:4:in `<top (required)>' 2) Socket#bind on SOCK_STREAM socket raises Errno::EACCES when the current user does not have permission to bind FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:79:in `block (4 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:44:in `<top (required)>' 3) Socket#bind using IPv4 using a packed socket address raises Errno::EACCES when the user is not allowed to bind to the port FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:119:in `block (6 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:85:in `<top (required)>' 4) Socket#bind using IPv6 using a packed socket address raises Errno::EACCES when the user is not allowed to bind to the port FAILED Expected Errno::EACCES but no exception was raised (0 was returned) .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:119:in `block (6 levels) in <top (required)>' .../ruby/spec/ruby/library/socket/socket/bind_spec.rb:85:in `<top (required)>' ```
* [rubygems/rubygems] Cancel deprecation of custom git sourcesDavid Rodríguez2021-12-081-69/+0
| | | | https://github.com/rubygems/rubygems/commit/99cd6e0627
* [rubygems/rubygems] Add require parameter to `bundle add``Simon Fish2021-12-081-0/+12
| | | | | | | | | | | | | | | | Test and ensure "false" is handled Don't use yield_self to operate on autorequire Remove duplicate autorequire Add banner to require option Don't use json to break down require params Pass linter https://github.com/rubygems/rubygems/commit/a4f2f8ac17
* [rubygems/rubygems] Pass "--" to git commands to separate positional and ↵David Rodríguez2021-12-071-4/+24
| | | | | | | | | optional args To make sure git uri's specified in Gemfile are never misinterpreted as optional arguments, potentially allowing for local code execution. https://github.com/rubygems/rubygems/commit/90b1ed8b9f
* [rubygems/rubygems] Don't cleanup paths from gems already activated from ↵David Rodríguez2021-12-071-0/+23
| | | | | | | | | | | | | | | | | | | `$LOAD_PATH` This way, if some default gem has been required before bundler, and rubygems has enhanced the `$LOAD_PATH` to use the latest version in the system, further requires of that default gem after bundler has been activated will use the same version and don't cause redefinition warnings or worse problems derived from the fact of mixing up two different versions. That, unless the gem is a `Gemfile` dependency. In that case, we'll get a mismatch error anyways as we do now. This fix doesn't mean that all default gems internally used by bundler/rubygems are now supported inside `Gemfile`'s. That should be handled case by case, but it will now bite people only when they try to add the gem to their `Gemfile`, not before. https://github.com/rubygems/rubygems/commit/7325530547
* [rubygems/rubygems] Feature: accept pull request URLs as github sourceJean Boussier2021-12-061-0/+39
| | | | | | | | | | | | | | | | | | | | | | | Very often github source is used to temporarily use a modified gem while a PR upstream is being reviewed. So for instance https://github.com/ruby/bigdecimal/pull/211 will look like: ```ruby gem "bigdecimal", github: "casperisfine/bigdecimal", branch: "git-gem" # https://github.com/ruby/bigdecimal/pull/200 ``` It's annoying because you have to fiddle with the branch name, which is copied as `casperisfine:git-gem`, etc etc. If I could simply use the PR URL like this: ``` gem "bigdecimal", github: "https://github.com/ruby/bigdecimal/pull/211" ``` It would make a very common task for me so much simpler. https://github.com/rubygems/rubygems/commit/517c527751
* [rubygems/rubygems] Add --version parameter to bundle info command.Josef Šimánek2021-12-061-0/+5
| | | | https://github.com/rubygems/rubygems/commit/7d9fdd908d
* [rubygems/rubygems] Let original EACCES error be raisedDavid Rodríguez2021-12-041-10/+0
| | | | | | | | | | | | | | This block of code already wraps file operations with `SharedHelpers.filesystem_access`, which rescues and re-raises more friendly errors. Also, I'm not fully sure creating a temporary directory can end up raising an `Errno::EACCES` error from reading `tmpdir` sources. Finally, this rescue block apparently leads to some false positives when firewall is blocking the ruby executable on Windows, or at least that's what we've got reported. In any case, I think it's best to let the original error be raised. https://github.com/rubygems/rubygems/commit/f7dbe54404
* [rubygems/rubygems] Improve source gemfile/lockfile equivalence checksDavid Rodríguez2021-12-031-5/+5
| | | | | | | | | | Since we no longer have multiple global sources, each top level dependency is always pinned to a single source, so it makes little sense to talk about adding or removing a source. Instead, source changes always mean to change the source one or more dependencies are pinned to. This logic can now be much simpler. https://github.com/rubygems/rubygems/commit/f1d33fa0df
* [rubygems/rubygems] Improve sources representationDavid Rodríguez2021-12-032-5/+5
| | | | | | | | | | | | | We have two representations of a source. Once used for sorting, which should not depend on the source's state, but solely on its static information, like remotes. Another one used for error and informational messages, which should properly inform about the exact state of the source when the message is printed. This commit makes the latter be the default implementation of `to_s`, so that error and informational messages are more accurate by default. https://github.com/rubygems/rubygems/commit/b5f2b88957
* [rubygems/rubygems] Don't overwrite locked dependency sources too earlyDavid Rodríguez2021-12-031-1/+1
| | | | | | Otherwise we hide some useful message about dependency source changes. https://github.com/rubygems/rubygems/commit/c926673c5b
* [rubygems/rubygems] Fix incorrect order in changed sources messageDavid Rodríguez2021-12-031-1/+1
| | | | https://github.com/rubygems/rubygems/commit/6f1b5f68de
* [rubygems/rubygems] Fix gemspec source unlocking also for prereleases like ↵David Rodríguez2021-12-021-0/+33
| | | | | | | | | 0.0.0.SNAPSHOT The default prerelease requirement in rubygems doesn't actually match things like "0.0.0.SNAPSHOT". https://github.com/rubygems/rubygems/commit/711498b342
* [rubygems/rubygems] Fix materialization of locked 0 prereleasesDavid Rodríguez2021-12-021-0/+33
| | | | | | | | | | Since the default requirement in rubygems is ">= 0", it was failing to match 0 prereleases. Changing the default globally to be ">= 0.a" instead is a major refactoring that's quite tricky to make backwards compatible, so I'm special casing this where needed for now to fix the regression. https://github.com/rubygems/rubygems/commit/68fe37937c
* [win32] skip example about STDIN encodingsNobuyoshi Nakada2021-12-011-15/+17
|
* Merge rubygems master fd676ac464491afaa0baf5435cb11b3f86229cbdHiroshi SHIBATA2021-12-012-2/+9
|
* Removed vcr files. They are needless for this repoHiroshi SHIBATA2021-12-012-7/+0
|
* Fix `GC.total_time` exampleNobuyoshi Nakada2021-11-301-1/+1
| | | | | The result may increase actually or not, since GC can finish shorter than the timer granularity.
* [rubygems/rubygems] Fix escape of filenames in `bundle doctor`ooooooo-q2021-11-301-0/+10
| | | | https://github.com/rubygems/rubygems/commit/3ede1435ea
* Update to ruby/spec@7f22a0bBenoit Daloze2021-11-2962-59/+656
|
* Update to ruby/mspec@098b320Benoit Daloze2021-11-291-1/+1
|
* [rubygems/rubygems] Fix missing locked specs when depended on other platformDavid Rodríguez2021-11-271-0/+43
| | | | https://github.com/rubygems/rubygems/commit/0396e899db
* [rubygems/rubygems] Fix `bundle info` sometimes claiming that bundler has ↵David Rodríguez2021-11-261-0/+8
| | | | | | been deleted https://github.com/rubygems/rubygems/commit/fe1a31db31
* [rubygems/rubygems] Fix bad instance variable nameDavid Rodríguez2021-11-251-1/+1
| | | | | | | Recent changes made a warning while running specs show up for some reason, and it revealed this error. https://github.com/rubygems/rubygems/commit/bbf55de38e
* [rubygems/rubygems] Check not having load system features also for ↵David Rodríguez2021-11-251-9/+3
| | | | | | successful runs https://github.com/rubygems/rubygems/commit/4807bd19a5
* [rubygems/rubygems] These method should be returning a stringDavid Rodríguez2021-11-251-1/+1
| | | | https://github.com/rubygems/rubygems/commit/dc391f4d87
* [rubygems/rubygems] We should be checking raised exception, not status code hereDavid Rodríguez2021-11-251-1/+1
| | | | https://github.com/rubygems/rubygems/commit/48f8cdab9c
* [rubygems/rubygems] Don't replace ENV twice on non Windows platformsDavid Rodríguez2021-11-253-0/+64
| | | | https://github.com/rubygems/rubygems/commit/8dc86b7096
* Add Class#subclassesJean Boussier2021-11-231-0/+38
| | | | | | | Implements [Feature #18273] Returns an array containing the receiver's direct subclasses without singleton classes.
* [rubygems/rubygems] Clarify `bundle viz` deprecationDavid Rodríguez2021-11-221-1/+1
| | | | https://github.com/rubygems/rubygems/commit/7f22fe56b3
* [rubygems/rubygems] Allow `bundle update` to downgrade gems by changing the ↵David Rodríguez2021-11-191-0/+61
| | | | | | Gemfile https://github.com/rubygems/rubygems/commit/6a19cca7e5
* Make Module#{public,private,protected,module_function} return argumentsJeremy Evans2021-11-186-32/+106
| | | | | | | | | | | | | | | | | | | | | | | | | | Previously, each of these methods returned self, but it is more useful to return arguments, to allow for simpler method decorators, such as: ```ruby cached private def foo; some_long_calculation; end ``` Where cached sets up caching for the method. For each of these methods, the following behavior is used: 1) No arguments returns nil 2) Single argument is returned 3) Multiple arguments are returned as an array The single argument case is really the case we are trying to optimize for, for the same reason that def was changed to return a symbol for the method. Idea and initial patch from Herwin Quarantainenet. Implements [Feature #12495]
* Expect bool as `sort:` option at glob [Feature #18287]Nobuyoshi Nakada2021-11-181-0/+9
|
* Revert "Temporary ignored the failing specs for Date"Yusuke Endoh2021-11-161-9/+5
| | | | | | This reverts commit 17e64cca6b737060884f6fd9ab1c5055e9b49577. The specs should work now.
* Temporary ignored the failing specs for DateHiroshi SHIBATA2021-11-161-5/+9
|
* Merge the master branch of rubygems repoHiroshi SHIBATA2021-11-162-8/+51
| | | | Picked from https://github.com/rubygems/rubygems/commit/4b498709a015a94e14a3852a1841a7a3e669133d
* [rubygems/rubygems] Remove duplicated specDavid Rodríguez2021-11-121-37/+1
| | | | https://github.com/rubygems/rubygems/commit/86b874ed24
* [rubygems/rubygems] Remove `gemfile_should_be` helper as wellDavid Rodríguez2021-11-122-29/+25
| | | | https://github.com/rubygems/rubygems/commit/79f3c00caa
* [rubygems/rubygems] Remove `have_lockfile` matcher tooDavid Rodríguez2021-11-122-6/+2
| | | | https://github.com/rubygems/rubygems/commit/635f3f2605
* [rubygems/rubygems] Remove `lockfile_should_be` helperDavid Rodríguez2021-11-1215-101/+97
| | | | | | It doesn't add anything. https://github.com/rubygems/rubygems/commit/ece3c864df
* [rubygems/rubygems] Use bundler-graph instead of bundler-vizHiroshi SHIBATA2021-11-081-1/+1
| | | | https://github.com/rubygems/rubygems/commit/a54cca13db