Commit graph

247 commits

Author SHA1 Message Date
David Rodríguez
f3320f164f [rubygems/rubygems] Fix bundle info sometimes claiming that bundler has been deleted
fe1a31db31
2021-11-26 08:50:52 +09:00
David Rodriguez
9fbf3a1f6f
Unify issue template and ISSUES.md document
Some crucial information to ease maintainers work, like the advice of
upgrading rubygems and bundler, was one step away from the issue
template, making it easier for some users to miss.

Now all relevant information is written directly in the bug report
template.
2021-10-25 20:48:51 +09:00
David Rodriguez
0f1f95a3e3 [rubygems/rubygems] Fix bundle install to force reinstallation of deleted gems
8950631f02
2021-10-13 16:21:42 +09:00
David Rodriguez
0c3ac87345 [rubygems/rubygems] Show a warning in bundle info if gem has been deleted
ff86cd7dd2
2021-10-11 19:13:16 +09:00
David Rodriguez
607efe9154 [rubygems/rubygems] Show the exact name of the gem that was deleted
If a non exact name (matched as a regexp) is passed to `bundle info`,
these strings might not match.

831edf1edf
2021-10-11 19:13:15 +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
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
David Rodríguez
3683781f53 [rubygems/rubygems] Restore working bundle check behaviour
As part of a recent bug fix where bundler was accidentally hitting the
network when not supposed to, I made some refactoring, and the commit I'm
reverting here
(d74830d00b)
was some cleanup that those refactorings allowed according to "past me".

That was completely wrong, `bundle check` should never consider cached
gems, only installed gems, so the code that was removed was necessary.

5483e98305
2021-08-31 19:06:14 +09:00
David Rodríguez
a3b3fdc3cd [rubygems/rubygems] Take advantage of target being a Pathname
c31b8cd232
2021-08-31 19:06:14 +09:00
David Rodríguez
8adc606271 [rubygems/rubygems] Fix git repo initialization on a path with spaces
a2d6e10192
2021-08-31 19:06:14 +09:00
David Rodríguez
8c1b31f7b3 [rubygems/rubygems] Don't warn default behaviour
ed845d861c
2021-08-31 19:06:14 +09:00
David Rodríguez
97de4c02ad [rubygems/rubygems] Remove now unnecessary code
d74830d00b
2021-08-31 19:06:14 +09:00
David Rodríguez
570167eaa9 [rubygems/rubygems] Give a bundle install hint when bundle list fails
98f5087e34
2021-08-31 19:06:14 +09:00
David Rodríguez
8116b7fef7 [rubygems/rubygems] Move rescue block around the code that can raise it
310937a546
2021-08-31 19:06:14 +09:00
David Rodríguez
c6e5267a77 [rubygems/rubygems] Remove unnecessary check
This error can only be raised when loading the cache, and we only load
the cache if this condition is met.

86d692edb8
2021-08-31 19:06:14 +09:00
David Rodríguez
dd22549e07 [rubygems/rubygems] Let original exception be re-raised
a669401a5a
2021-08-31 19:06:14 +09:00
Daniel Niknam
bd8daa8523
[rubygems/rubygems] Remove the warning for not defining a gem server source
Bundler has deprecated gemfiles without a global source and this feature
is now obsolete. `Bundler::Definition#has_rubygems_remotes?` is removed
because it's not used anymore.

d29dd2cb7b
2021-07-27 09:25:57 +09:00
David Rodríguez
095b5bbcc1
[rubygems/rubygems] Lazily load shellwords
ef6388656a
2021-07-27 09:25:56 +09:00
David Rodríguez
9ac89fe35e
[rubygems/rubygems] The --quiet should still display warnings
The is the previous intentional behaviour until
ca0676cb1c.

In my opinion, that previous behaviour was better and should be
restored, because we want our users to always see warnings and fix them.
And the original issue that motivated the change is fixable by other
means, namely through `BUNDLE_SILENCE_ROOT_WARNING`, or through
`BUNDLE_SILENCE_DEPRECATIONS` in general. Finally, the --quiet option is
still documented as "only print errors and warnings".

So this PR essentially reverts
ca0676cb1c
for the above reasons.

35f2254dfc
2021-07-27 09:25:56 +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
David Rodríguez
53468cc111 Sync latest development version of bundler & rubygems 2021-03-08 13:47:35 +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
0e40cc9b19 Merge RubyGems 3.2.2 and Bundler 2.2.2 2020-12-18 13:33:18 +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
Kazuhiro NISHIYAMA
e4dbb91f4c
Fix typos [ci skip]
s/overriden/overridden/
2020-09-17 20:34:59 +09:00
Utkarsh Gupta
22ee047f73 [rubygems/rubygems] Only add .rubocop.yml when --rubocop flag is passed
Signed-off-by: Utkarsh Gupta <utkarsh@debian.org>

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>

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
Frank Lam
1cb88eb2ba Use consistent filenaming for Travis template 2020-06-18 19:14:15 +09:00
Frank Lam
f6c8ca0359 [rubygems/rubygems] Move already configured --test hint to before test file creation
9e5f7a9099
2020-06-18 19:14:15 +09:00
Frank Lam
0ba2f3e8a9 [rubygems/rubygems] Move already configured --ci hint to before CI file creation
2af2abe5fd
2020-06-18 19:14:15 +09:00
Frank Lam
091daaa715 [rubygems/rubygems] Lower verboseness of user-facing text for bundle gem
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

5f779f45b0
2020-06-18 19:14:15 +09:00
Frank Lam
52a900773e [rubygems/rubygems] Incorporate naming/grammar suggestions from olleolleolle
80571452ca
2020-06-18 19:14:15 +09:00
Andre Arko
3a2016b994 [rubygems/rubygems] minor language tweaks, small code refactor
84e9f3711c
2020-06-18 19:14:15 +09:00
Colby Swandale
6f9faa66fa [rubygems/rubygems] update question text
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
Jakob Krigovsky
f9872c50cc Update links from rubygems/bundler to rubygems/rubygems 2020-06-05 07:32:42 +09:00
DEVRAJ KUMAR
9139acca66 [rubygems/rubygems] Fix bundle info not indicating a gem which has been deleted, unlike bundle show
Co-Authored-By: David Rodríguez <deivid.rodriguez@riseup.net>

2851b40ffb
2020-06-05 07:32:42 +09:00
Frank Lam
f0ae5ac313 [rubygems/rubygems] Display test_framework_hint before prompting for user selection
* On ubuntu-bundler/ubuntu_bundler3, longer lines of text get cut off
after ~50 characters
* Example: https://github.com/rubygems/rubygems/pull/3544/checks?check_run_id=703658810

6a17847fd8
2020-06-05 07:32:42 +09:00
Frank Lam
154c2717da [rubygems/rubygems] Add user hint specs for bundle gem --test
1d2292a88f
2020-06-05 07:32:42 +09:00
Frank Lam
58267fa59e [rubygems/rubygems] Conditionally display test framework help text
8b51a86265
2020-06-05 07:32:42 +09:00
Frank Lam
f75bd9bb8b [rubygems/rubygems] Fix bundle gem ignoring global gem.test config
* bundle gem previously ignored gem.test when passed empty -t flag,
defaulting to RSpec
* bundle gem will now ask user for test framework when passed empty -t
flag and gem.test is set to false, but will not overwrite gem.test
* thor option parsing for String types falls back to human name for nil,
so setting lazy_default to nil won't work
* c5161501e0/lib/thor/parser/options.rb (L224)

Default to Bundler.settings["gem.test"] for empty --test

Add shared examples for test framework to newgem spec

Add examples for empty --test flag to newgem spec

Simplify conditional for prompting test framework

Follow naming conventions for bundler settings

Add more descriptive test framework help text for bundle gem

Update man pages for bundler

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