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

357 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 07dc9691a8 [rubygems/rubygems] https functionality was merged into `net/https`
https://github.com/rubygems/rubygems/commit/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
Utkarsh Gupta fd709382b6 [rubygems/rubygems] Tag the specs with :readline
The newly added specs needs to be tagged as
:readline, otherwise they fail on Windows with
the backtrace: `ZeroDivisionError: divided by 0`.

Such issues are already being skipped on Windows.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/391f860af4
2020-07-15 16:05:12 +09:00
Utkarsh Gupta c44c7019b5 [rubygems/rubygems] Add tests with different flag combinations
Since this PR was made because we missed checking
RuboCop offenses with different flags, therefore
adding tests so that all flag combinations are
tested.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/d08250efc2
2020-07-15 16:05:12 +09:00
David Rodríguez 4f9c673cab [rubygems/rubygems] Allow setting a tag prefix to be used by gem release tasks
https://github.com/rubygems/rubygems/commit/679008f23a
2020-07-15 16:05:12 +09:00
Utkarsh Gupta ca133c0366 [rubygems/rubygems] Fix line spacing to make Layout/EmptyLines happy
The Gemfile wasn't properly put in the last commit.
As a result, Layout/EmptyLines inspected an offense
in the Gemfile.

This also fixes the spec w.r.t change in the task
default.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/d1418fddd3
2020-07-15 16:05:12 +09:00
David Rodríguez 2fafc08aa3 [rubygems/rubygems] Remove unneeded trailing conditions on exitstatus
https://github.com/rubygems/rubygems/commit/27e0e4ecb6
2020-07-15 16:05:12 +09:00
David Rodríguez 547ba6608e [rubygems/rubygems] Easier way to find path to ruby binary
https://github.com/rubygems/rubygems/commit/cdc201f5c4
2020-07-15 16:05:12 +09:00
David Rodríguez 16823d4a05 [rubygems/rubygems] Remove unnecessary assertions on exitstatus
Since our helpers now raise by default if the subcommand fails, these
will never actually fail and are not necessary.

https://github.com/rubygems/rubygems/commit/6153b9321e
2020-07-15 16:05:12 +09:00
David Rodríguez 17b92d221f [rubygems/rubygems] No need to update remotes
Everything is already fetched locally.

https://github.com/rubygems/rubygems/commit/9c304639b1
2020-07-15 16:05:12 +09:00
David Rodríguez d189d31ce9 [rubygems/rubygems] Git clone already takes care of this
https://github.com/rubygems/rubygems/commit/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.

https://github.com/rubygems/rubygems/commit/d088d936b8
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 5ebca6d709 [rubygems/rubygems] Skip this spec on ruby_core workflow
ruby_core has an 'ast.rb' file that gets in the
middle and breaks this spec, so it's better we skip
this test on this workflow for now.

Also, slightly change the spec name from "run" to
"runs" and change the last assertion, it's cleaner
to check empty error.
Thanks to David Rodríguez for this!

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/ba8eaa70c3
2020-07-15 16:05:12 +09:00
Utkarsh Gupta d0810fdee4 [rubygems/rubygems] Use latest version of rubocop for RUBY_VERSION > 2.4
With older versions of rubocop, the dependency on
`jaro_winkler` seems to be a pain.
However, in the later versions of rubocop, this
dependency was dropped. So we only need to use
the older version for ruby2.3.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/9cd87eaee3
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 077dcacb08 [rubygems/rubygems] Use `--config .rubocop.yml` instead
because rubocop configuration inheritance is
messed up and when using `--ignore-parent-exclusion`,
even though the exit status is 0, the example
still fails because of the configuration issue.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/3e20b2738c
2020-07-15 16:05:12 +09:00
Utkarsh Gupta ecb87b55d8 [rubygems/rubygems] Lock rubocop version to 0.80.1
The later RuboCop versions don't work with ruby2.3
so we should lock the version to what works with
ruby2.3 as we haven't dropped the support yet.

And since we're using the older version of rubocop,
also fix `Max` value of `LineLength` to 120, which
is the current standard. Without this, rubocop
will throw the line length offenses.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/46d0a800a2
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 215f7c3165 [rubygems/rubygems] Fix linting and make Style/RedundantInterpolation happy
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/83e330fa87
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 4875a96edd [rubygems/rubygems] Fix test to run rubocop on the generated gem
With this, it will be ensured that the generated
(skeleton) gem will have no offenses.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/47411262e0
2020-07-15 16:05:12 +09:00
Utkarsh Gupta b28c6d04d0 [rubygems/rubygems] Make Style/HashSyntax cop happy
Previously, we were using the old syntax like:
`task :default => :spec`, but now this commit
uses the new Ruby 1.9 hash syntax.

Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/b41d0fdb56
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 449d24200b [rubygems/rubygems] WIP: add test to run rubocop on the generated gem
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/730b770f8a
2020-07-15 16:05:12 +09:00
Utkarsh Gupta 084489be87 [rubygems/rubygems] Fix tests pertaining to newgem
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

https://github.com/rubygems/rubygems/commit/e2ee0b7de3
2020-07-15 16:05:12 +09:00
David Rodríguez 2b73f26fde [rubygems/rubygems] Show also output from all commands on rubygems checkout errors
https://github.com/rubygems/rubygems/commit/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.

https://github.com/rubygems/rubygems/commit/baa4ccf5a6
2020-07-15 16:05:12 +09:00
MSP-Greg 23cf99e99d [rubygems/rubygems] Bundler specs - Windows - remove skips, File.open => File.readlines
Using File.open without a block leaves a file reference that causes issues with file operations

commands/binstubs_spec.rb
install/gems/compact_index_spec.rb
install/gems/dependency_api_spec.rb
install/gems/standalone_spec.rb
runtime/executable_spec.rb

https://github.com/rubygems/rubygems/commit/4b9a6ca156
2020-07-15 16:05:12 +09:00
MSP-Greg ad743337b3 [rubygems/rubygems] bundler/spec/commands/binstubs_spec.rb - remove global Windows skip
Added one skip for:
bundle binstubs <gem>
when the gem exists in the lockfile
when generating bundle binstub outside bundler
should abort

https://github.com/rubygems/rubygems/commit/b77b484889
2020-07-15 16:05:12 +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 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
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 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 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 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 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