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

13281 Коммитов

Автор SHA1 Сообщение Дата
David Rodríguez 6b3935250e [rubygems/rubygems] Bump COCs to latest Contributor Covenant version
https://github.com/rubygems/rubygems/commit/73794a95b9
2024-05-28 15:10:59 +00:00
verdy89 7c6e4bc7ca [ruby/reline] Implement the redo command
(https://github.com/ruby/reline/pull/707)

* Implement the redo command

* Commented out a test that does not pass

* Changed key assignment for redo from "\C-[" to "\C-g"

* Changed redo key assignment from `\C-g` to `\M-\C-_`

* Revert the first implemantation

* Implemented redo by sharing `@past_lines` between undo and redo

* Fixed the index of past_lines that is updated when the cursor is moved

* Fixed deletion of the redo history in regular input

* Renamed variables: past_lines -> input_lines

* Rename @position to @input_lines_position

* Deleted unused variables: `@old_byte_pointer` and `@old_line_index`

https://github.com/ruby/reline/commit/0b2d9fab5f
2024-05-27 16:38:22 +00:00
License Update 5853a38043 [rubygems/rubygems] Update SPDX license list as of 2024-05-22
https://github.com/rubygems/rubygems/commit/f91ac04397
2024-05-27 01:45:38 +00:00
Marcus Stollsteimer 4949f0a928 [rubygems/rubygems] Fix typo in description of build:checksum task
https://github.com/rubygems/rubygems/commit/351ff2512f
2024-05-26 21:42:45 +00:00
Go 508f331048 [ruby/reline] allow space in config value
(https://github.com/ruby/reline/pull/705)

* allow space in config value

fix https://github.com/ruby/reline/pull/657

* remove inline comments

* Revert "remove inline comments"

This reverts commit https://github.com/ruby/reline/commit/2438347c1a10.

* refactoring

* remove unnecessary comment handling

https://github.com/ruby/reline/commit/d60f1e1e39
2024-05-26 08:28:25 +00:00
Martin Emde 6b0afbb111 [rubygems/rubygems] Reorganize and refactor CompactIndexClient
https://github.com/rubygems/rubygems/commit/71bcf354f5
2024-05-25 17:47:07 +00:00
Jacklyn Ma 4d0c5486a2 [rubygems/rubygems] update cache checksums to decrease string allocations
https://github.com/rubygems/rubygems/commit/85371a961a
2024-05-24 21:04:21 +00:00
Kevin Newton c7281e2d67 [ruby/prism] Fix up ruby_parser string concat
https://github.com/ruby/prism/commit/4b06eae0df
2024-05-24 19:27:44 +00:00
Kevin Newton f8b750370e [ruby/prism] Remove Debug module
https://github.com/ruby/prism/commit/4d8929ff6a
2024-05-24 17:19:38 +00:00
Kevin Newton 745a948b6d [ruby/prism] Remove dynamic Debug module methods
https://github.com/ruby/prism/commit/b850794db9
2024-05-24 17:19:36 +00:00
David Rodríguez 6a7e4c40e1 [rubygems/rubygems] Neither `--force` flag or inline mode should mandate a remote resolution
https://github.com/rubygems/rubygems/commit/50dd93e217
2024-05-24 15:02:31 +00:00
David Rodríguez eef125fd09 [rubygems/rubygems] Fix error messages to not mention cached gems when they were not used
https://github.com/rubygems/rubygems/commit/5ce9a7ff17
2024-05-24 15:02:30 +00:00
David Rodríguez 744dd5a362 [rubygems/rubygems] Fix performance regression on applications with a local cache
Even if all gems are properly installed and no resolve is needed, we
recently started always reading all packages in `vendor/cache` and
extracting specifications from them.

This commit fixes the problem by longer making considering cached specs
the default and only enable them when a resolve is actually needed.

https://github.com/rubygems/rubygems/commit/edeb2c42bf
2024-05-24 15:02:30 +00:00
David Rodríguez c23798c2c4 [rubygems/rubygems] Remove `@remote` instance variable from Definition
It's a sources specific concern, so keep it there. It allows to simplify
the code quite a lot.

https://github.com/rubygems/rubygems/commit/639f0b72f4
2024-05-24 15:02:30 +00:00
David Rodríguez ea7e3e7b78 [rubygems/rubygems] Give better message when resolving because there's no lockfile
https://github.com/rubygems/rubygems/commit/4e048bc255
2024-05-24 15:02:29 +00:00
David Rodríguez 0f9781b5c1 [rubygems/rubygems] Use `Definition#no_resolve_needed?`
https://github.com/rubygems/rubygems/commit/5074c58ffb
2024-05-24 15:02:29 +00:00
David Rodríguez 3832a1bda8 [rubygems/rubygems] Make code more symmetric
https://github.com/rubygems/rubygems/commit/dc7c9f029a
2024-05-24 15:02:28 +00:00
Martin Emde acdd19facc [rubygems/rubygems] Fiks speeling cott bye codespell
https://github.com/rubygems/rubygems/commit/508ed917a5
2024-05-24 01:53:35 +00:00
Martin Emde 76e31d9aa9 [rubygems/rubygems] Remove MD5 ETag generation from compact index
This was an offramp for generated etags to allow existing caches
to be served until people could upgrade. It has been about 6 months
since the transitional version was released, so we can remove this
transitional code now.

https://github.com/rubygems/rubygems/commit/4ec8cfe611
2024-05-23 22:57:26 +00:00
Hiroshi SHIBATA 2cc047df9a [ruby/rdoc] Bump up 6.7.0
https://github.com/ruby/rdoc/commit/a667e616e1
2024-05-23 01:17:32 +00:00
Kevin Newton e575954887 [ruby/prism] Fix support for 'it' implicit local variable
https://github.com/ruby/prism/commit/53bbcfe513
2024-05-22 16:34:04 -04:00
Ellen Keal 5b9b6b4d2b [rubygems/rubygems] move git clone depth error handling to else branch
https://github.com/rubygems/rubygems/commit/022eb473f8
2024-05-22 06:01:51 +00:00
Ellen Keal ec9de0c471 [rubygems/rubygems] fix for gems not downloading from git via http
https://github.com/rubygems/rubygems/commit/592a2fcd54
2024-05-22 06:01:50 +00:00
Vladimir Támara Patiño 911b7d1dcf [ruby/reline] Catches Errno::ENODEV and Errno::EBADF in
get_screen_size. Closes https://github.com/ruby/reline/pull/690
(https://github.com/ruby/reline/pull/702)

* Catches exceptions Errno::ENODEV and Errno::EBADF in get_screen_size. Closes https://github.com/ruby/reline/pull/690

* Just catching Errno::ENOTTY and Errno::ENODEV

https://github.com/ruby/reline/commit/a5b5298e4a
2024-05-22 04:16:42 +00:00
Kevin Newton b20adf90e3 [ruby/prism] Fix up ruby_parser interpolation concatenation
https://github.com/ruby/prism/commit/79cec4be22
2024-05-21 18:45:16 +00:00
Kevin Newton 12386d36f0 [ruby/prism] Provide deprecated numeric method
https://github.com/ruby/prism/commit/77bf9038a2
2024-05-21 18:43:56 +00:00
Kevin Newton 89efb94fec [ruby/prism] Reconfigure rationals
This eliminates the subnode on RationalNode and replaces it with two
integer fields, which represent the ratio for the rational. It also
reduces those two integers if they both fit into 32 bits.

Importantly, this PR does not implement bignum reduction. That's something
I'd like to consider for the future, but it's simple enough for now to
leave them unreduced, which makes it more useful than it used to be.

https://github.com/ruby/prism/commit/86e06c7068
2024-05-21 14:27:46 -04:00
Kevin Newton 84d2bacb42 [ruby/irb] Reorder ruby lex clauses for unrecoverable first
(https://github.com/ruby/irb/pull/956)

When a syntax error includes multiple error messages, we want to
check for unrecoverable messages first so that we do not
accidentally match a recoverable error later in the message.

https://github.com/ruby/irb/commit/2f42b2360d
2024-05-17 02:44:57 +00:00
Olle Jonsson b90ea8ae52 [ruby/find] find.gemspec: Drop executables dir config
This gem contains no executables.

https://github.com/ruby/find/commit/7bd452155e
2024-05-17 02:05:31 +00:00
David Rodriguez c55c11d7d5 [rubygems/rubygems] Fix binstubs sometimes not getting regenerated when `--destdir` is given
This was only working for gems also installed in the default gem home.

https://github.com/rubygems/rubygems/commit/47df02dbd9
2024-05-16 13:34:33 +00:00
David Rodriguez 35c5c7edb9 [rubygems/rubygems] Refactor `Gem::Specification#find_all_by_name`
So that it can also be delegated to `Gem::SpecificationRecord`.

https://github.com/rubygems/rubygems/commit/1407807a99
2024-05-16 13:34:33 +00:00
David Rodriguez 5111b3d479 [rubygems/rubygems] Fix `gem uninstall --user-install` for symlinked HOME's
https://github.com/rubygems/rubygems/commit/7f0706a897
2024-05-16 11:55:53 +00:00
David Rodriguez 847fc9af18 [rubygems/rubygems] Fix error message calling method removed a long time ago
https://github.com/rubygems/rubygems/commit/5fbe5e43d6
2024-05-16 11:55:52 +00:00
David Rodriguez 7857061ecd [rubygems/rubygems] Fix regression when caching gems from secondary sources
If `cache_all_platforms` setting is enabled, the secondary source was
no longer considering cached gems.

That means that if the remote secondary source has removed its gems,
then this was now resulting in an error while before the previously
cached gem from the source would still be used.

This commit restores previous behavior.

https://github.com/rubygems/rubygems/commit/2d2cd00255
2024-05-16 09:21:32 +00:00
David Rodriguez 29a9ab0ba6 [rubygems/rubygems] Deprecate Bundler constants
https://github.com/rubygems/rubygems/commit/6166e4bce1
2024-05-16 09:20:17 +00:00
David Rodriguez 9fd41480fb [rubygems/rubygems] Use RubyGems freebsd helper
https://github.com/rubygems/rubygems/commit/5d03a346ab
2024-05-16 09:20:17 +00:00
David Rodriguez 4db76d198b [rubygems/rubygems] Add a FreeBSD platform helper
https://github.com/rubygems/rubygems/commit/535c83d5be
2024-05-16 09:20:16 +00:00
David Rodriguez 965cb3ab4c [rubygems/rubygems] Fix issue when cleaning up plugin stubs
When `gem uninstall <gem> --install-dir <dir>` is run, if the version
removed had a plugin, and that same version happened to also be
installed globally, then the plugin stub would fail to be removed.

https://github.com/rubygems/rubygems/commit/4e2fa0be77
2024-05-14 16:08:03 +00:00
David Rodriguez bd84236169 [rubygems/rubygems] Extract a `Gem::SpecificationRecord` class
This class handles all logic to handle the list of specifications, given
a set of GEM_PATH directories. Makes `Gem::Specification` has less
responsibilities and will help with fixing some bugs next.

https://github.com/rubygems/rubygems/commit/df280dbbed
2024-05-14 16:08:03 +00:00
David Rodriguez c219ee00b4 [rubygems/rubygems] Fix typo in attribute documentation
https://github.com/rubygems/rubygems/commit/8c9807092c
2024-05-14 16:08:02 +00:00
David Rodriguez 5628cc1229 [rubygems/rubygems] Add missing docs
Other analog methods are documented, so document this one too.

https://github.com/rubygems/rubygems/commit/76da34d44d
2024-05-14 16:08:02 +00:00
David Rodriguez 91e3871970 [rubygems/rubygems] Simplify documentation
I don't think this method is any worse than others, let's only document
what it does.

https://github.com/rubygems/rubygems/commit/dec722187f
2024-05-14 16:08:01 +00:00
David Rodriguez 4dc0b23018 [rubygems/rubygems] Remove redundant receivers
https://github.com/rubygems/rubygems/commit/7b71965a70
2024-05-14 16:08:00 +00:00
Mari Imaizumi 4a1e4436a9 [ruby/reline] Bump version to 0.5.7
(https://github.com/ruby/reline/pull/704)

https://github.com/ruby/reline/commit/b9b3d392ff
2024-05-14 08:18:32 +00:00
Mari Imaizumi 9d01f657b3 [ruby/reline] Implement the undo command
(https://github.com/ruby/reline/pull/701)

* Refactor send

* Implement the undo command

* Fix @past_lines initialization

* Improve assertion

* Hide to save buffer in insert_pasted_text

* Replace @using_delete_command with @undoing

* Refactor `@past_lines`

https://github.com/ruby/reline/commit/4ab72f9cbd
2024-05-14 01:58:31 +00:00
David Rodriguez 5319587ac3 [rubygems/rubygems] Restore previous way of loading monitor
I'm not sure why but this particular change seems to have introduced
some flaky test failures. So I'll revert it.

https://github.com/rubygems/rubygems/commit/668488014b
2024-05-13 18:04:55 +00:00
David Rodriguez d1c172dfd0 [rubygems/rubygems] Don't load `SharedHelpers` unnecessarily
https://github.com/rubygems/rubygems/commit/de4650f629
2024-05-13 18:04:55 +00:00
David Rodriguez 22dab73971 [rubygems/rubygems] Don't depend on Pathname unnecessarily
https://github.com/rubygems/rubygems/commit/8c8aaecc48
2024-05-13 18:04:55 +00:00
Kevin Newton b5e53e2f32 [ruby/prism] Rescue LoadError for ruby_parser as well
https://github.com/ruby/prism/commit/d4eb13e703
2024-05-13 16:31:55 +00:00
Koichi ITO 5931f857ab [ruby/prism] Add error handling for missing `parser` gem in `Prism::Translation`
Resolves https://github.com/ruby/prism/pull/2803.

This PR adds error handling for missing `parser` gem in `Prism::Translation`.

The `parser` gem is a required runtime dependency when using `Prism::Translation::Parser`.
But it is not required for other uses of Prism. To avoid unnecessary dependencies,
it is not added as a `runtime_dependency` in the prism.gemspec. Instead, if the dependency is missing,
instructions are given to add it to Gemfile.

## Before

```console
$ bundle exec ruby -e 'require "prism"; require "prism/translation/parser33"'
/Users/koic/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require': cannot load such file -- parser (LoadError)
from /Users/koic/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
from /Users/koic/src/github.com/ruby/prism/lib/prism/translation/parser.rb:3:in `<top (required)>'
from /Users/koic/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
from /Users/koic/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
from /Users/koic/src/github.com/ruby/prism/lib/prism/translation/parser33.rb:6:in `<module:Translation>'
from /Users/koic/src/github.com/ruby/prism/lib/prism/translation/parser33.rb:4:in `<module:Prism>'
from /Users/koic/src/github.com/ruby/prism/lib/prism/translation/parser33.rb:3:in `<top (required)>'
from /Users/koic/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `require'
from /Users/koic/.rbenv/versions/3.3.1/lib/ruby/3.3.0/bundled_gems.rb:74:in `block (2 levels) in replace_require'
from -e:1:in `<main>'
```

## After

```console
$ bundle exec ruby -e 'require "prism"; require "prism/translation/parser33"'
Error: Unable to load parser. Add `gem "parser"` to your Gemfile.
```

https://github.com/ruby/prism/commit/4880aec22d
2024-05-13 16:29:27 +00:00