Граф коммитов

61976 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 7aa6fec45f [rubygems/rubygems] Remove unused method
https://github.com/rubygems/rubygems/commit/b1b39b8c06
2020-06-18 19:14:15 +09:00
David Rodríguez 5f8ee14b9b [rubygems/rubygems] Make sure to pass URI's to `:git`
Passing paths should work in most cases, but on Windows the driver
letter is interpreted as the scheme and causes some case mismatches
because

```
irb> URI.parse("E:").to_s
=> "e:"
```

We fix this by passing file URI's instead.

https://github.com/rubygems/rubygems/commit/b6bc517628
2020-06-18 19:14:15 +09:00
David Rodríguez f217faf1da [rubygems/rubygems] Better skip messages
https://github.com/rubygems/rubygems/commit/4f519638ae
2020-06-18 19:14:15 +09:00
David Rodríguez 414b1485d6 [rubygems/rubygems] More portable PATH edition
https://github.com/rubygems/rubygems/commit/a6d50afad0
2020-06-18 19:14:15 +09:00
Utkarsh Gupta 22ee047f73 [rubygems/rubygems] Only add .rubocop.yml when --rubocop flag is passed
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/ef2dae4222
2020-06-18 19:14:15 +09:00
Utkarsh Gupta ec98d56153 Ship default .rubocop.yml
Currently, there is no `.rubocop.yml` shipped by default.
So when a user runs `rubocop` after creating a new gem via
`bundle gem foo`, it throws a bunch of offenses.

With the default `.rubocop.yml` present, the number of those
offenses significantly reduce by 25.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>
2020-06-18 19:14:15 +09:00
Utkarsh Gupta d9c888d394 [rubygems/rubygems] Only add .rubocop.yml when --rubocop flag is passed
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/ef2dae4222
2020-06-18 19:14:15 +09:00
David Rodríguez f9de8ccf1e Rename hidden templates
Because they don't play nice with ruby-core's gitignore and cause issues
with ruby-core integration.

Also, because it's consistent with other templates such as `gitignore.tt`.
2020-06-18 19:14:15 +09:00
David Rodríguez 30f9fbdce8 Undeprecate the `--no-cache` flag
This is not a remembered option, so it shouldn't have been deprecated.
At least not for that reason.
2020-06-18 19:14:15 +09:00
Hiroshi SHIBATA be2dbfc5b5 Removed the old file with https://github.com/rubygems/rubygems/pull/3667 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"
https://github.com/rubygems/rubygems/commit/84e4c58e83
2020-06-18 19:14:15 +09:00
David Rodríguez ea4824ee0f [rubygems/rubygems] s/run!/run
https://github.com/rubygems/rubygems/commit/e3f60d8aec
2020-06-18 19:14:15 +09:00
David Rodríguez 596588c697 [rubygems/rubygems] s/ruby!/ruby
https://github.com/rubygems/rubygems/commit/a73fa0760e
2020-06-18 19:14:15 +09:00
David Rodríguez a572e78201 [rubygems/rubygems] s/gem_command!/gem_command
https://github.com/rubygems/rubygems/commit/f52733f6a4
2020-06-18 19:14:15 +09:00
David Rodríguez 696a50751b [rubygems/rubygems] s/install_gemfile!/install_gemfile
https://github.com/rubygems/rubygems/commit/4d1a0c465a
2020-06-18 19:14:15 +09:00
David Rodríguez 1436b5026c [rubygems/rubygems] s/bundle!/bundle
https://github.com/rubygems/rubygems/commit/746a4b3d74
2020-06-18 19:14:15 +09:00
Frank Lam 481840ff18 Generalize CI templates 2020-06-18 19:14:15 +09:00
Frank Lam 1cb88eb2ba Use consistent filenaming for Travis template 2020-06-18 19:14:15 +09:00
Frank Lam 9292313e0c Update github workflow template
* https://github.com/ruby/setup-ruby is now the more recommended action
2020-06-18 19:14:15 +09:00
Frank Lam 90f3591744 Update CI templates
* Next version of Bundler will auto choose jobs by default
* --retry 3 is already default
2020-06-18 19:14:15 +09:00
Frank Lam a1a5973daa [rubygems/rubygems] Prefer using bundle! to avoid unnecessary swallowing of errors
https://github.com/rubygems/rubygems/commit/6bac832a58
2020-06-18 19:14:15 +09:00
Frank Lam 1a9a4f962e [rubygems/rubygems] Fix nonexistent constant in CircleCI template
Co-authored-by: David Rodríguez <deivid.rodriguez@riseup.net>
https://github.com/rubygems/rubygems/commit/851f8afad1
2020-06-18 19:14:15 +09:00
Frank Lam f6c8ca0359 [rubygems/rubygems] Move already configured --test hint to before test file creation
https://github.com/rubygems/rubygems/commit/9e5f7a9099
2020-06-18 19:14:15 +09:00
Frank Lam 0ba2f3e8a9 [rubygems/rubygems] Move already configured --ci hint to before CI file creation
https://github.com/rubygems/rubygems/commit/2af2abe5fd
2020-06-18 19:14:15 +09:00
Frank Lam 091daaa715 [rubygems/rubygems] Lower verboseness of user-facing text for bundle gem
https://github.com/rubygems/rubygems/commit/288f073c3c
2020-06-18 19:14:15 +09:00
Frank Lam fedd3201f3 [rubygems/rubygems] Fix --ci flag manpage documentation
https://github.com/rubygems/rubygems/commit/515effe8de
2020-06-18 19:14:15 +09:00
Frank Lam a476d67f35 [rubygems/rubygems] Rebuild man pages for bundle gem
https://github.com/rubygems/rubygems/commit/b5a9cec1be
2020-06-18 19:14:15 +09:00
Frank Lam 8e3136a03b [rubygems/rubygems] Make test framework/CI configuration for bundle gem consistent
* Add hints for --ci option

https://github.com/rubygems/rubygems/commit/5f779f45b0
2020-06-18 19:14:15 +09:00
Frank Lam a80a5706b1 [rubygems/rubygems] Remove extra whitespace
https://github.com/rubygems/rubygems/commit/9986cd01fc
2020-06-18 19:14:15 +09:00
Frank Lam 27e07cd34f [rubygems/rubygems] Set CI global config to false in gem_helper_spec
https://github.com/rubygems/rubygems/commit/39b18fe7fc
2020-06-18 19:14:15 +09:00
Frank Lam 760edb3743 [rubygems/rubygems] Fix CI spec typo
Co-authored-by: Olle Jonsson <olle.jonsson@gmail.com>
https://github.com/rubygems/rubygems/commit/24f3739585
2020-06-18 19:14:15 +09:00
Frank Lam 52a900773e [rubygems/rubygems] Incorporate naming/grammar suggestions from olleolleolle
https://github.com/rubygems/rubygems/commit/80571452ca
2020-06-18 19:14:15 +09:00
Frank Lam e6479ac3f6 [rubygems/rubygems] Move CI specs below test framework specs
https://github.com/rubygems/rubygems/commit/d8e416d89b
2020-06-18 19:14:15 +09:00
Frank Lam 0d3c185b59 [rubygems/rubygems] Remove shared examples for present test framework
* `bundle gem` has new option to select CI provider

https://github.com/rubygems/rubygems/commit/320f3546c1
2020-06-18 19:14:15 +09:00
Frank Lam 25ac5b3606 [rubygems/rubygems] Separate CI and test framework shared examples
* `bundle gem` has new option to choose CI provider other than Travis CI

https://github.com/rubygems/rubygems/commit/afaecf16de
2020-06-18 19:14:15 +09:00
Frank Lam b46895aa93 [rubygems/rubygems] Extract shared example for absence of CI files
https://github.com/rubygems/rubygems/commit/22cb599bcc
2020-06-18 19:14:15 +09:00
Andre Arko 3a2016b994 [rubygems/rubygems] minor language tweaks, small code refactor
https://github.com/rubygems/rubygems/commit/84e9f3711c
2020-06-18 19:14:15 +09:00
Colby Swandale 6f9faa66fa [rubygems/rubygems] update question text
https://github.com/rubygems/rubygems/commit/f14c8a5ec2
2020-06-18 19:14:15 +09:00
Hiroshi SHIBATA cc059b16b2 Manually cherry-picked at 80260b3496 2020-06-18 19:14:15 +09:00
David Rodríguez 9be1baedbc [rubygems/rubygems] Remove unnecessary `bundle install`
These specs doesn't really need an installed bundle, they only need a
`Gemfile`.

https://github.com/rubygems/rubygems/commit/06c85683ae
2020-06-18 19:14:15 +09:00
David Rodríguez 61b6f53337 [rubygems/rubygems] Make helpers raise by default
https://github.com/rubygems/rubygems/commit/ade0c441d5
2020-06-18 19:14:15 +09:00
David Rodríguez 529a9e8a1f [rubygems/rubygems] Fix a couple of specs that were loading an incorrect bundler
We have a check on an `at_exit` hook that checks that system bundler is
never loaded instead of our development copy. The check was failing in
these cases, but in a silent way because the errors were being swallowed.

This commit changes these specs to make sure they load the right
bundler.

https://github.com/rubygems/rubygems/commit/cd1c1bc297
2020-06-18 19:14:15 +09:00
David Rodríguez 5d78fb1c9a [rubygems/rubygems] Change spec to do the right thing on bundler 3
On bundler 3, the `--deployment` flag doesn't exist, so the `bundle
install --deployment` command was failing silently and the spec was
verifying a different scenario.

Change the spec to work the same regardless of bundler's major version.

Also, from the spec description it was not apparently that a specific
case involving deployment mode was being tested, so I reworded it to
make it more apparent.

https://github.com/rubygems/rubygems/commit/3e33e2b927
2020-06-18 19:14:15 +09:00
David Rodríguez 974c40c842 [rubygems/rubygems] Fix some sudo specs to do the right thing on bundler 3
On bundler 3, where the default install path is `.bundle`, these specs
were trying to change permissions of the
`.bundle/ruby/<ruby_abi_version>` folder, which didn't exist yet,so the
permission changing command was failing and the spec was not testing the
right thing.

Change the specs so that the permissions are correctly changed, by first
configuring the local path to be `.bundle` (which creates the `.bundle`
folder), and then changing permissions of the `.bundle` folder
explicitly, which exists already.

https://github.com/rubygems/rubygems/commit/2833162fb0
2020-06-18 19:14:15 +09:00
David Rodríguez 5454415750 [rubygems/rubygems] Fix spec to test the right thing on bundler 3
Bundler 3 installs by default to `.bundle`. That means that, because the
`bar` gem was not previously available at this location but as a system
gem, the initial `bundle install` was silently failing. As a
consequence, the spec was not testing the exact scenario it meant to
test.

https://github.com/rubygems/rubygems/commit/202399521c
2020-06-18 19:14:15 +09:00
David Rodríguez 9939f4ad43 [rubygems/rubygems] Remove bad `bundle install`
This spec is specifically testing for the case where there's no
`Gemfile.lock` file and it's only doing the expected thing because the
`bundle install` command is silently failing. Remove the `bundle
install` to reduce confusion.

https://github.com/rubygems/rubygems/commit/ec39fbde0e
2020-06-18 19:14:15 +09:00
David Rodríguez 8d7ed194cb [rubygems/rubygems] Simplify `bundle update --ruby` specs
They don't need to run that many commands, and the new version is also
more readable in my opinion.

https://github.com/rubygems/rubygems/commit/efff3e3210
2020-06-18 19:14:15 +09:00
David Rodríguez 66b327af56 [rubygems/rubygems] Fix redundant commands
They are preceded by `install_gemfile` calls, which mean `bundle
install` is being run twice for no reason.

https://github.com/rubygems/rubygems/commit/d2b2d10862
2020-06-18 19:14:15 +09:00
David Rodríguez cceb77f57b [rubygems/rubygems] Fix unintended Gemfile installation
This command is failing because of the same reason that the subsequent
`bundle exec` is failing: the gemspec is invalid. The `bundle install`
here deviates the `bundle exec` focus from the test and is unnecessary:
all we need is a `Gemfile` that will trigger the `bundle exec`, so let's
create and avoid the extra command.

https://github.com/rubygems/rubygems/commit/eb83cf6cf1
2020-06-18 19:14:15 +09:00