Commit graph

191 commits

Author SHA1 Message Date
David Rodríguez
d49ee9e2c3 [rubygems/rubygems] These method should be returning a string
dc391f4d87
2021-11-25 04:02:20 +09:00
David Rodríguez
d123919595 [rubygems/rubygems] We should be checking raised exception, not status code here
48f8cdab9c
2021-11-25 04:02:20 +09:00
David Rodríguez
c4b1aa19a3 [rubygems/rubygems] Don't replace ENV twice on non Windows platforms
8dc86b7096
2021-11-25 04:02:19 +09:00
David Rodríguez
4736dec58b [rubygems/rubygems] Remove gemfile_should_be helper as well
79f3c00caa
2021-11-12 06:05:08 +09:00
David Rodríguez
1f91009d24 [rubygems/rubygems] Remove have_lockfile matcher too
635f3f2605
2021-11-12 06:05:08 +09:00
David Rodríguez
d0f266460f [rubygems/rubygems] Remove lockfile_should_be helper
It doesn't add anything.

ece3c864df
2021-11-12 06:05:07 +09:00
David Rodríguez
ed0f326e88 [rubygems/rubygems] Leave ":" after MANPATH when not set
So that system man pages still work after a gem with man pages overrides
it.

1031879b87
2021-11-02 00:28:28 +09:00
David Rodriguez
9072228a26 [ruby/rubygems] Get specs green on arm64-darwin-20
7a0bd9801d
2021-10-11 00:23:54 +09:00
OKURA Masafumi
7e506716d2
Newly generated gems require Ruby 2.6.0
In 2021, Ruby 2.5 and older are EOL.
We can set the default required Ruby version to 2.6.0 to
encourage people to use newer Ruby.
If the command is executed with old Ruby, it falls back to 2.3.0.
It's still possible to create a gem for older Ruby just by changing
two lines of code (one in gemspec and another is in rubocop.yml).
2021-10-09 09:07:47 +09:00
David Rodríguez
91f794b516 [rubygems/rubygems] I see no harm in this, allow it
01feb40283
2021-10-09 08:05:46 +09:00
David Rodríguez
991a3aad05 [rubygems/rubygems] git commit no longer needs to be allowed to fail
12af03d32f
2021-10-09 08:05:34 +09:00
David Rodríguez
a5bae843ff [rubygems/rubygems] Let update_git work with whatever branch is checkout out
Unless the `:branch` option is passed.

It's more efficient, and it results in less hardcoding of "master".

aa5c3409ab
2021-10-09 08:05:23 +09:00
David Rodríguez
5a34b639fc [rubygems/rubygems] Make adding files and committing into a single command
For efficiency.

979d1634dd
2021-10-09 08:05:11 +09:00
Masataka Pocke Kuwabara
d03d122ba1 [rubygems/rubygems] Improve performance of Specification#missing_extensions?
90c1919f94
2021-10-09 08:04:08 +09:00
Jose Galisteo
b45fe48fbb
[rubygems/rubygems] Trigger install command by default on remove
Closes https://github.com/rubygems/rubygems/issues/4889

2b1754479c
2021-09-17 20:46:18 +09:00
Jun Aruga
71f6711351 [rubygems/rubygems] Fix some failing Bundler tests with old Git.
Use the `git branch --list` rather than the `git branch -l` for better
compatibility. Because the `git branch -l` is used to create a new branch in
Git version < 2.20.0.

eac5be7d06
2021-08-31 19:06:14 +09:00
David Rodríguez
0b4dbe2e6a [rubygems/rubygems] Improve "gem not found in source" errors
When printing sources inside these error messages, it's useful to only
consider the current state of the source. For example, when requiring
`bundler/setup`, the source shouldn't be configured to be able to hit
the network, so the error message should only mention "locally installed
gems" to make that more clear.

30eb14f853
2021-08-31 19:06:14 +09:00
Hiroshi SHIBATA
896bbb9fad Merge RubyGems/Bundler master from 8459ebd6ad65ce3397233416dc64083ae7572bb9 2021-07-14 10:48:07 +09:00
Hiroshi SHIBATA
c082c6eb7c Sync RubyGems and Bundler with upstream 2021-07-07 15:31:52 +09:00
David Rodríguez
6e2240a2f9 Sync latest bundler & rubygems development version 2021-07-07 13:30:20 +09:00
David Rodríguez
5b0abba931 Sync bundler & rubygems 2021-05-11 11:29:41 +09:00
Hiroshi SHIBATA
ed149dbf46 Merge the master branch of Bundler 2021-04-15 15:36:15 +09:00
Kazuhiro NISHIYAMA
a5b6baae97
Fix test-bundler failures when XDG_CONFIG_HOME is not writable
2175399707
```
Errno::EACCES: Permission denied @ dir_s_mkdir - /home/runner/.config/irb
```
2021-03-24 15:26:49 +09:00
David Rodríguez
53468cc111 Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +09:00
Kazuhiro NISHIYAMA
7cd97a81d1
Remove require_path from $LOADED_FEATURES
because some features are already loaded.
2021-01-28 18:00:10 +09:00
Kazuhiro NISHIYAMA
00bd645f09
Delete path including /../ too 2021-01-28 18:00:10 +09:00
Hiroshi SHIBATA
69ed64949b Track Bundler master(2.3.0.dev) branch at 55634a8af18a52df86c4275d70fa1179118bcc20 2021-01-04 13:14:43 +09:00
Hiroshi SHIBATA
339227363c Merge RubyGems 3.2.3 and Bundler 2.2.3 2020-12-23 10:17:41 +09:00
Hiroshi SHIBATA
2fa9f3c032 Prepare to release rubygems-3.2.1 and bundler-2.2.1 2020-12-15 10:54:09 +09:00
Hiroshi SHIBATA
473f9d2df0 Merge prepare version of Bundler 2.2.0 2020-12-08 17:30:02 +09:00
Hiroshi SHIBATA
d386a58f6f Merge bundler-2.2.0.rc.2 2020-10-15 17:19:02 +09:00
David Rodríguez
07dc9691a8 [rubygems/rubygems] https functionality was merged into net/https
d81ce9e457
2020-07-31 21:07:19 +09:00
David Rodríguez
5783d0dbfc Import remaining changes
The "sync with commits" scripts failed to properly import these for some
reason.
2020-07-15 16:05:12 +09:00
David Rodríguez
547ba6608e [rubygems/rubygems] Easier way to find path to ruby binary
cdc201f5c4
2020-07-15 16:05:12 +09:00
David Rodríguez
17b92d221f [rubygems/rubygems] No need to update remotes
Everything is already fetched locally.

9c304639b1
2020-07-15 16:05:12 +09:00
David Rodríguez
d189d31ce9 [rubygems/rubygems] Git clone already takes care of this
6e0c28d3ab
2020-07-15 16:05:12 +09:00
David Rodríguez
a73ea2126f [rubygems/rubygems] Clone rubygems from the local repo
It simplifies things and should avoid issues like the one we had where
the master branch had a bad `.gitattributes` file and changing it on a
PR would be disregarded.

In order for this to work, we need to make sure to fetch all tags from
the repository, so that they can properly be checked out later. This
does not apply to the case of testing against `RGV=..`, since no extra
cloning is needed there.

d088d936b8
2020-07-15 16:05:12 +09:00
David Rodríguez
2b73f26fde [rubygems/rubygems] Show also output from all commands on rubygems checkout errors
1fe24e471d
2020-07-15 16:05:12 +09:00
David Rodríguez
5ae80c5207 [rubygems/rubygems] Remove --quiet flag to git checkout
Since we don't show this output by default, it's better to be verbose
in case we happen to need more info.

baa4ccf5a6
2020-07-15 16:05:12 +09:00
David Rodríguez
414b1485d6 [rubygems/rubygems] More portable PATH edition
a6d50afad0
2020-06-18 19:14:15 +09:00
David Rodríguez
9cc7847849 s/sys_exec!/sys_exec 2020-06-18 19:14:15 +09:00
David Rodríguez
77df7ccc10 [rubygems/rubygems] Remove now unused "bang helpers"
84e4c58e83
2020-06-18 19:14:15 +09:00
David Rodríguez
a572e78201 [rubygems/rubygems] s/gem_command!/gem_command
f52733f6a4
2020-06-18 19:14:15 +09:00
David Rodríguez
61b6f53337 [rubygems/rubygems] Make helpers raise by default
ade0c441d5
2020-06-18 19:14:15 +09:00
David Rodríguez
94fc709dd1 [rubygems/rubygems] s/rails_fail/rails_pinned_to_old_activesupport/
The `rails_fail` name is misleading because there's no specific reason
why such a gem would need to fail. As a matter of fact, `bundle
install`'ing a Genfile with only that dependency like the spec the
previous commit adds is not expected to fail.

b947f40701
2020-06-18 19:14:15 +09:00
David Rodríguez
117b504b98 Fix most exec specs
The `gem_command` helper was failing to require `support/hax.rb`, which
takes care of making sure rubygems actually picks up the right `ruby`
executable under ruby-core setup (`ENV["RUBY"]`). This caused binstubs
to be generated with a wrong shebang, and that caused `bundle exec` to
not work. The error message was pretty confusing though due to
https://bugs.ruby-lang.org/issues/16952.
2020-06-15 12:38:39 +09:00
David Rodríguez
0fb2a7fa1c Fix bin/rake spec:realworld:record
Previously it was failing and not recording. Also, the
`BUNDLER_SPEC_FORCE_RECORD` environment variable was forcing every
request to be recorded, including duplicated requests to the same
endpoint. That meant the recorded `versions` file would be incorrect
because it would contain the result of the last request, which would be
`304 NOT MODIFIED`.

So, to rerecord, delete cassettes and let them be recorded when needed.
2020-06-05 07:32:42 +09:00
David Rodríguez
e413e746af [rubygems/rubygems] Remove forgotten_command_line_usages from specs
Instead, use the non-deprecated option except when specifically testing
deprecated CLI flags. In that case, pass the flag directly and limit
the specs to `bundler < 3`.

3d5e186241
2020-06-05 07:32:42 +09:00
David Rodríguez
5c924f597f [rubygems/rubygems] Make forgotten_command_line_options always "forget" options
4d39338670
2020-06-05 07:32:42 +09:00
David Rodríguez
592762069d [rubygems/rubygems] Support running specs against a tarball
When bundler specs are run from a ruby tarball (ruby-core does this),
there's no git folder, so `git ls-files` fails.

Support this case by making specs rely on the list of files from the
bundler gemspec instead, and invert the spec that makes sure we ship the
right set of files.

As per the other quality specs, skip them in this case.

b28d5ec931
2020-06-05 07:32:42 +09:00