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

9375 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 1663dd5f73 [rubygems/rubygems] Simplify rescue of bundler errors
As far as I understand, this block should only be run when
`bundler/setup` fails. The only other case where these errors could be
run is when bundler itself is required.

If bundler itself fails to be required or activated (like in old rubies
where it was not a default gem, for example), the raw error is much more
helpful than this message.

So we can move the rescue after bundler is succesfully required, and
that simplifies the list of exceptions that we need to track to just
`Bundler::Error`.

https://github.com/rubygems/rubygems/commit/3663c11e93
2021-08-31 19:06:14 +09:00
David Rodríguez 0aa9eb9eed [rubygems/rubygems] Move list of exceptions to the `rescue` clause
Instead of having to match classes and re-raise in the exception body.

https://github.com/rubygems/rubygems/commit/5edf74b781
2021-08-31 19:06:14 +09:00
David Rodríguez 87dfb55c16 [rubygems/rubygems] Use `Gem.use_gemdeps` only from binstubs
The previous behavior was to automatically require `bundler/setup`
everytime `rubygems` was required, which I think was too much.

https://github.com/rubygems/rubygems/commit/b25379a295
2021-08-31 19:06:14 +09:00
David Rodríguez a3b3fdc3cd [rubygems/rubygems] Take advantage of `target` being a `Pathname`
https://github.com/rubygems/rubygems/commit/c31b8cd232
2021-08-31 19:06:14 +09:00
David Rodríguez 8adc606271 [rubygems/rubygems] Fix git repo initialization on a path with spaces
https://github.com/rubygems/rubygems/commit/a2d6e10192
2021-08-31 19:06:14 +09:00
David Rodríguez d9ecc97f33 [rubygems/rubygems] Remove bad TODO
The commented out code causes failing tests because it's not correct.

https://github.com/rubygems/rubygems/commit/38f0eca91a
2021-08-31 19:06:14 +09:00
David Rodríguez 19d77a1cfc [rubygems/rubygems] Remove unnecessary spec manipulation
https://github.com/rubygems/rubygems/commit/c7c00c280f
2021-08-31 19:06:14 +09:00
David Rodríguez 10dcd0eb5b [rubygems/rubygems] Deprecate `bundle exec --no-keep-file-descriptors`
https://github.com/rubygems/rubygems/commit/591466d512
2021-08-31 19:06:14 +09:00
David Rodríguez 8c1b31f7b3 [rubygems/rubygems] Don't warn default behaviour
https://github.com/rubygems/rubygems/commit/ed845d861c
2021-08-31 19:06:14 +09:00
David Rodríguez 58635d4ff7 [rubygems/rubygems] Keep file descriptors by default
https://github.com/rubygems/rubygems/commit/88b7a3e7e2
2021-08-31 19:06:14 +09:00
Nobuyoshi Nakada 9fc16a31d9 [rubygems/rubygems] Exclude gemspec file itself from gem
The processed YML data is included as metadata, the source gemspec
file is unused and just confusing.

https://github.com/rubygems/rubygems/commit/f444478eac
2021-08-31 19:06:14 +09:00
Tim Sutton d7c734a27e [rubygems/rubygems] typos in UI messages: fix a couple missing spaces between sentence breaks
https://github.com/rubygems/rubygems/commit/5cdda53382
2021-08-31 19:06:14 +09:00
David Rodríguez 97de4c02ad [rubygems/rubygems] Remove now unnecessary code
https://github.com/rubygems/rubygems/commit/d74830d00b
2021-08-31 19:06:14 +09:00
David Rodríguez 0e01ad881a [rubygems/rubygems] The `--local` flag to `bundle install` shouldn't hit the network
If the cache was missing, `bundler` would try to re-fetch it. With the
`--local` flag, it should just look at installed gems.

https://github.com/rubygems/rubygems/commit/630d29c69e
2021-08-31 19:06:14 +09:00
David Rodríguez 7116ec6199 [rubygems/rubygems] Requiring `bundler/setup` shouldn't try to hit the network
https://github.com/rubygems/rubygems/commit/06f5efce02
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.

https://github.com/rubygems/rubygems/commit/30eb14f853
2021-08-31 19:06:14 +09:00
David Rodríguez 2e850e0038 [rubygems/rubygems] Only set local variable in the branch using it
https://github.com/rubygems/rubygems/commit/9fd39bd5a3
2021-08-31 19:06:14 +09:00
David Rodríguez b351cebab2 [rubygems/rubygems] Simplify error message building in resolver
Since all requirements have an explicit source now (even if it's the
default source).

https://github.com/rubygems/rubygems/commit/2c341cfc22
2021-08-31 19:06:14 +09:00
David Rodríguez b17cdad2f8 [rubygems/rubygems] Remove redundant part of error message
It doesn't really add much, in my opinion. We want to be helpful, but
also concise when possible.

https://github.com/rubygems/rubygems/commit/9d56009cf7
2021-08-31 19:06:14 +09:00
David Rodríguez f1c0729128 [rubygems/rubygems] Fix standalone generated script to deal with path sources
In the case of path sources, the path the source is pointing to should
be added directly to the `$LOAD_PATH` without any modifications.

https://github.com/rubygems/rubygems/commit/d3bba936f0

Co-authored-by: Daniel Niknam <mhmd.niknam@gmail.com>
2021-08-31 19:06:14 +09:00
David Rodríguez 7465b94f8a [rubygems/rubygems] Remove unnecessary `ruby_version` local variable
Under some case, this variable might not end up being used, in which
case running the script would print unused variable warnings.

https://github.com/rubygems/rubygems/commit/bf96030362
2021-08-31 19:06:14 +09:00
David Rodríguez 7566c85cc0 [rubygems/rubygems] Use same criteria for ruby engine as in the final script
https://github.com/rubygems/rubygems/commit/fcb8c3d188
2021-08-31 19:06:14 +09:00
David Rodríguez 3aa087d533 [rubygems/rubygems] Remove unnecessary `ruby_engine` local variable
Under some case, this variable might not end up being used, in which
case running the script would print unused variable warnings.

https://github.com/rubygems/rubygems/commit/a2d6392ada
2021-08-31 19:06:14 +09:00
David Rodríguez 1d6551a02d [rubygems/rubygems] Remove unnecessary `path` local variable
We can use `__dir__` directly.

https://github.com/rubygems/rubygems/commit/0e6083ca94
2021-08-31 19:06:14 +09:00
David Rodríguez 97c0d3fead [rubygems/rubygems] Fix unnecessary $LOAD_PATH modification in standalone script
Due to the `bundler` gem itself being ignored from `$LOAD_PATHS`, a
`nil` value is being introduced here, resulting in the current folder
being added to the `$LOAD_PATH` by the standalone script.

I'm pretty sure this is unintentional.

https://github.com/rubygems/rubygems/commit/df54b07b5e
2021-08-31 19:06:14 +09:00
David Rodríguez 23c27d2c7b [rubygems/rubygems] Don't sort materialized specs when not necessary
This should fix a weird flaky spec failure, given that the code
producing the error will be no longer run.

https://github.com/rubygems/rubygems/commit/a171965409
2021-08-31 19:06:14 +09:00
David Rodríguez 0ab160e2e0 [rubygems/rubygems] Respect `BUNDLE_USER_CONFIG` if set
https://github.com/rubygems/rubygems/commit/f28ab141af
2021-08-31 19:06:14 +09:00
David Rodríguez d37c2441cc [rubygems/rubygems] We can now avoid source materialization work
No need to fill up missing names from sources anymore since they should
now be properly set up correctly from the beginning.

https://github.com/rubygems/rubygems/commit/706fd28681
2021-08-31 19:06:14 +09:00
David Rodríguez 1b9b41472f [rubygems/rubygems] Completely avoid replacing sources when in multisource compatibility mode
Since this mode is only enabled in frozen mode, it's fine to use the
lockfile and means we don't have to "prepare" the replacement for
materialization.

https://github.com/rubygems/rubygems/commit/dda01b288e
2021-08-31 19:06:14 +09:00
David Rodríguez c2f376bcc0 [rubygems/rubygems] Fix standalone install of default gems
Rubygems source replacement was broken.

https://github.com/rubygems/rubygems/commit/3549c122f6
2021-08-31 19:06:14 +09:00
David Rodríguez 570167eaa9 [rubygems/rubygems] Give a `bundle install` hint when `bundle list` fails
https://github.com/rubygems/rubygems/commit/98f5087e34
2021-08-31 19:06:14 +09:00
David Rodríguez 81c0643762 [rubygems/rubygems] Remove unnecessary escape sequences
Bundler formatters already take care of this.

https://github.com/rubygems/rubygems/commit/c24415fdd5
2021-08-31 19:06:14 +09:00
David Rodríguez fe47ac213b [rubygems/rubygems] Remove unnecessary exception
If we have succeeded to materialize the bundle, all specs should be
loaded.

https://github.com/rubygems/rubygems/commit/bd3712d824
2021-08-31 19:06:14 +09:00
David Rodríguez 9a25a98c6b [rubygems/rubygems] Show all missing gems when using a bundle before installing it
Not only the first one that's missing.

This also allows us to simplify things.

https://github.com/rubygems/rubygems/commit/69718a9509
2021-08-31 19:06:14 +09:00
David Rodríguez d298ef40f2 [rubygems/rubygems] Small refactor by DRYing up some logic
https://github.com/rubygems/rubygems/commit/c7e3c092e1
2021-08-31 19:06:14 +09:00
David Rodríguez 8116b7fef7 [rubygems/rubygems] Move rescue block around the code that can raise it
https://github.com/rubygems/rubygems/commit/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.

https://github.com/rubygems/rubygems/commit/86d692edb8
2021-08-31 19:06:14 +09:00
David Rodríguez dd22549e07 [rubygems/rubygems] Let original exception be re-raised
https://github.com/rubygems/rubygems/commit/a669401a5a
2021-08-31 19:06:14 +09:00
aycabta 80309800f1 [ruby/irb] Version 1.3.8.pre.5
https://github.com/ruby/irb/commit/968422799c
2021-08-31 15:23:54 +09:00
aycabta a512496b3f [ruby/irb] Update dependency, reline >= 0.2.8.pre.5
https://github.com/ruby/irb/commit/657bd3fd12
2021-08-31 15:23:47 +09:00
aycabta 8273e95753 [ruby/reline] Version 0.2.8.pre.5
https://github.com/ruby/reline/commit/79b7d80fee
2021-08-31 15:22:05 +09:00
aycabta 817694481c [ruby/irb] Set the dialog width to render with a fixed width
https://github.com/ruby/irb/commit/80c4329643
2021-08-31 15:20:34 +09:00
aycabta 077bc98ce4 [ruby/irb] Follow that Dialog#contents_width has been renamed to #width
https://github.com/ruby/irb/commit/49a73d929e
2021-08-31 15:20:27 +09:00
aycabta a8e6a850d5 [ruby/irb] Make show doc dialog appears on the left at the right edge
https://github.com/ruby/irb/commit/6480eddd31
2021-08-31 15:20:22 +09:00
aycabta cf0ece810a [ruby/irb] Rename a variable "dialog" with "autocomplete_dialog"
Because it's just used to receive data from the autocomplete dialog, not
for show doc dialog.

https://github.com/ruby/irb/commit/f8b752bd98
2021-08-31 15:20:17 +09:00
aycabta 7afb5b8b95 [ruby/reline] Use Reline::Unicode.take_range to devide exactly by width
https://github.com/ruby/reline/commit/de1ad93f44
2021-08-31 15:19:44 +09:00
aycabta 4f5166e790 [ruby/reline] Check if dialog_render_info is nil or not
https://github.com/ruby/reline/commit/e2b87fe831
2021-08-31 15:19:37 +09:00
aycabta c8a07a1231 [ruby/reline] Fix Reline::Unicode.take_range as it was not fully functional
https://github.com/ruby/reline/commit/5da6a8d851
2021-08-31 15:19:32 +09:00
aycabta 7fae57dbb4 [ruby/reline] Use dynamic contents width
https://github.com/ruby/reline/commit/f0e54f239b
2021-08-31 15:19:25 +09:00
aycabta a598730e79 [ruby/reline] Remove an unused variable
https://github.com/ruby/reline/commit/0ae7d8b336
2021-08-31 05:45:02 +09:00
aycabta 4a174b7c55 [ruby/irb] Version 1.3.8.pre.4
https://github.com/ruby/irb/commit/61fe6cfa43
2021-08-31 05:30:09 +09:00
aycabta 96131c5ae9 [ruby/irb] Update dependency, reline >= 0.2.8.pre.4
https://github.com/ruby/irb/commit/24315382d0
2021-08-31 05:30:04 +09:00
aycabta bb2b5052f5 [ruby/reline] Version 0.2.8.pre.4
https://github.com/ruby/reline/commit/059d39b090
2021-08-31 05:28:17 +09:00
aycabta c98b2e14c7 [ruby/reline] Pass "dialog" to context to get "dialog.scroll_top" later
https://github.com/ruby/reline/commit/d81f29a134
2021-08-31 05:26:53 +09:00
aycabta 32abd38014 [ruby/reline] Autocompletion dialog height 15
https://github.com/ruby/reline/commit/7e18716754
2021-08-31 05:26:45 +09:00
aycabta 81d40b5b7e [ruby/reline] Scroll autocompletion pointer in dialog correctly
https://github.com/ruby/reline/commit/dc79ed2dd8
2021-08-31 05:26:39 +09:00
aycabta 282f7ce896 [ruby/reline] Use DialogRenderInfo struct
https://github.com/ruby/reline/commit/ac6f652a39
2021-08-31 05:26:33 +09:00
aycabta 0c09418fff [ruby/reline] Fix dialog rendering at the bottom edge
https://github.com/ruby/reline/commit/860be91bd7
2021-08-31 05:26:28 +09:00
aycabta c63d98b401 [ruby/irb] Use DialogRenderInfo
https://github.com/ruby/irb/commit/5bc3a72ca3
2021-08-31 05:24:55 +09:00
aycabta b30be9f222 [ruby/irb] Take dialog to get scroll_top
https://github.com/ruby/irb/commit/7209082a11
2021-08-31 05:24:45 +09:00
aycabta 16cf2ef6f2 [ruby/irb] Don't show doc when pointer is negative
https://github.com/ruby/irb/commit/48af34bfc2
2021-08-31 05:24:36 +09:00
aycabta 7379a493bd [ruby/irb] Version 1.3.8.pre.3
https://github.com/ruby/irb/commit/a1fc68abaa
2021-08-30 12:00:35 +09:00
aycabta aeec02d7f3 [ruby/irb] [].name to display the doc for Array.name
https://github.com/ruby/irb/commit/7c2abc14d8
2021-08-30 11:58:56 +09:00
aycabta 1e2f10e8aa [ruby/irb] Rescue unknown error to quash crashing
https://github.com/ruby/irb/commit/92cce941cb
2021-08-30 11:58:51 +09:00
aycabta ece4ed0da7 Add --autocomplete / --noautocomplete options 2021-08-30 02:45:13 +09:00
aycabta b6b2b767ed [ruby/reline] Version 0.2.8.pre.3
https://github.com/ruby/reline/commit/6e0ea3362a
2021-08-30 02:37:23 +09:00
aycabta 8750e1ada8 [ruby/reline] Fix Reline.autocompletion=() interface
https://github.com/ruby/reline/commit/71c2eb143d
2021-08-30 02:37:23 +09:00
aycabta e1ee7f9ced [ruby/reline] Version 0.2.8.pre.2
https://github.com/ruby/reline/commit/5e3ea74891
2021-08-30 02:37:23 +09:00
aycabta 62555d7ae6 [ruby/reline] Set autocompletion is false by default
For compatibility with ext/readline.

https://github.com/ruby/reline/commit/13d9b936bc
2021-08-30 02:37:23 +09:00
aycabta 3a2e2a6848 [ruby/reline] Add Reline.autocompletion=() interface
https://github.com/ruby/reline/commit/a2e69f6277
2021-08-30 02:37:23 +09:00
aycabta 935bb4c617 [ruby/reline] Add autocompletion on emacs mode by Tab / S-Tab
https://github.com/ruby/reline/commit/22d0b4e5d8
2021-08-30 02:37:23 +09:00
aycabta 11b825076b [ruby/reline] Add config.autocompletion
https://github.com/ruby/reline/commit/3d918e4ccb
2021-08-30 02:37:23 +09:00
aycabta 60eb328d42 [ruby/irb] Version 1.3.8.pre.2
https://github.com/ruby/irb/commit/ff111173fd
2021-08-30 02:34:18 +09:00
aycabta b35eff27dd [ruby/irb] Update dependency, reline >= 0.2.8.pre.3
https://github.com/ruby/irb/commit/2f1d989d7c
2021-08-30 02:33:34 +09:00
aycabta 4750dfa6db [ruby/irb] Update dependency to "reline >= 0.2.7.pre.2" for Reline.autocomplete=()
https://github.com/ruby/irb/commit/66178f34b9
2021-08-30 02:33:21 +09:00
aycabta 5f7c2291d6 [ruby/irb] Version 1.3.8.pre.1
https://github.com/ruby/irb/commit/9f82ae66fc
2021-08-29 20:33:21 +09:00
aycabta 8876710f2a [ruby/reline] Version 0.2.8.pre.1
https://github.com/ruby/reline/commit/2668715509
2021-08-29 20:30:33 +09:00
aycabta 7857a1ab66 [ruby/reline] Make autocomplete dialog is registered first
https://github.com/ruby/reline/commit/d027dbe118
2021-08-29 20:30:33 +09:00
aycabta 535a1cc71c [ruby/reline] Delete show doc dialog to move it to IRB
https://github.com/ruby/reline/commit/640102fe27
2021-08-29 20:30:33 +09:00
aycabta 74ba532883 [ruby/reline] Remove an unnecessary variable
https://github.com/ruby/reline/commit/3b8cc5ce0a
2021-08-29 20:30:33 +09:00
aycabta 3248c42592 [ruby/reline] Remove dialog_proc_list accessor of Reline
https://github.com/ruby/reline/commit/ac8fa84f4d
2021-08-29 20:30:33 +09:00
aycabta 32124de17e [ruby/reline] Move constants of dialogs to under Reline
https://github.com/ruby/reline/commit/9100ea2934
2021-08-29 20:30:33 +09:00
aycabta 29586ec9f3 [ruby/reline] Use default dialog context to communicate others
https://github.com/ruby/reline/commit/5e67e6ffe0
2021-08-29 20:30:33 +09:00
aycabta b023ef8594 [ruby/reline] Clear dialog by C-c
https://github.com/ruby/reline/commit/f66a079c85
2021-08-29 20:30:33 +09:00
aycabta d41d41da38 [ruby/reline] Clear completion journey data when finished
https://github.com/ruby/reline/commit/03716a411e
2021-08-29 20:30:33 +09:00
aycabta 6273b9bb62 [ruby/reline] Use colored doc output with ANSI escape sequence
https://github.com/ruby/reline/commit/7d1c75b43f
2021-08-29 20:30:33 +09:00
aycabta 3d757ba1b6 [ruby/reline] Suppress crashes on nil
https://github.com/ruby/reline/commit/b5f62c366b
2021-08-29 20:30:33 +09:00
aycabta acd15a39d2 [ruby/reline] Support custom bg color
https://github.com/ruby/reline/commit/cd0cbf53d5
2021-08-29 20:30:33 +09:00
aycabta 78f46e6576 [ruby/reline] Show method or class doc correctly
https://github.com/ruby/reline/commit/a505294f12
2021-08-29 20:30:33 +09:00
aycabta 7e8a627052 [ruby/reline] Implement doc display dialog in conjunction with autocomplete
https://github.com/ruby/reline/commit/e97bbc4ccf
2021-08-29 20:30:33 +09:00
aycabta 4cd344c958 [ruby/reline] Add the ability to handle context between dialogs
https://github.com/ruby/reline/commit/063d9c70d9
2021-08-29 20:30:33 +09:00
aycabta 8d4370b066 [ruby/reline] Support for multiple dialog rendering
https://github.com/ruby/reline/commit/f589fab718
2021-08-29 20:30:33 +09:00
aycabta acffb0b068 [ruby/reline] Cut out the autocomplete callback
https://github.com/ruby/reline/commit/46aa2694da
2021-08-29 20:30:33 +09:00
aycabta 164e486225 [ruby/reline] Remove @dialog_updown and @dialog_contents_width
https://github.com/ruby/reline/commit/458cb8a9cc
2021-08-29 20:30:33 +09:00
aycabta 4b2b10707a [ruby/reline] Implement dynamic selection of candidates
https://github.com/ruby/reline/commit/e46437df00
2021-08-29 20:30:33 +09:00
aycabta 8e463e3e73 [ruby/reline] Remove unnecessary condition
https://github.com/ruby/reline/commit/07e911ec8e
2021-08-29 20:30:33 +09:00
aycabta fdc005e54e [ruby/reline] Completion journey starts with one of candidates
First one is just original string.

https://github.com/ruby/reline/commit/ccb70cc240
2021-08-29 20:30:33 +09:00
aycabta 18c0814fe0 [ruby/reline] Fix typo
https://github.com/ruby/reline/commit/6370353c71
2021-08-29 20:30:33 +09:00
aycabta 475038a622 [ruby/reline] Move cursor correctly when current line is auto wrapped
https://github.com/ruby/reline/commit/14c8fade54
2021-08-29 20:30:33 +09:00
aycabta ff43b0f2dd [ruby/reline] Update dialog backup before clearing
https://github.com/ruby/reline/commit/a39e2c8813
2021-08-29 20:30:33 +09:00