Hiroshi SHIBATA
07ddb3589f
[ruby/shellwords] omit blank line
...
b45de514ab
2023-08-31 07:35:45 +00:00
Kevin Newton
00dbee94ac
[ruby/yarp] Add class variables to the constant pool
...
be5cb60c83
2023-08-30 19:59:28 +00:00
Kevin Newton
c4998bc3f2
[ruby/yarp] Desugar ||= more accurately
...
Class variables, global variables, constants, and constant paths
should actually desugar to `defined?` instead of just reading the
value.
551a59b876
2023-08-30 16:51:17 +00:00
Stan Lo
36a3899e9d
[ruby/irb] Bump version to 1.8.0
...
(https://github.com/ruby/irb/pull/700 )
a061744ed3
2023-08-30 09:17:06 +00:00
Josh Nichols
e747e2c36b
[rubygems/rubygems] Update bundler/lib/bundler/settings.rb
...
75ffa8ef76
Co-authored-by: Martin Emde <martinemde@users.noreply.github.com>
2023-08-30 00:36:38 +00:00
Josh Nichols
6a876a61d7
[rubygems/rubygems] (Further) Improve Bundler::Settings#[] performance and memory usage
...
I previously identified and improved this method over in https://github.com/rubygems/rubygems/pull/6884
but while reviewing another memory_profiler profile, I realized another
gain we can eek out.
This method keeps comes up in part because `configs` is allocating a new
Hash every time. My last change took advantage of that by using `map!`
on it. `configs` is called quite often, including in this `[]` method,
so there's a benefit to memoizing it.
Back in `[]`, logically we are trying to find the first Hash in `configs`
that has a value for the given key. Currently, we end up `map` and
`compact` to just get that value.
Instead, we can use a loop over `configs`, and break when we find the
value for the key.
b913cfc87b
2023-08-30 00:36:38 +00:00
Kevin Newton
b435161404
[ruby/yarp] Add instance variable names to the constant pool
...
f049932c44
2023-08-29 20:12:57 +00:00
Samuel Giddins
7a5df9d0ed
[rubygems/rubygems] Fix bundle update --redownload
...
It now does the redownloading/installing just like bundle install --redownload
3b058e5eca
2023-08-29 19:31:36 +00:00
Stan Lo
f37f357e80
[ruby/irb] Improve help/show_cmds message during debugger
...
integration
(https://github.com/ruby/irb/pull/693 )
* `help` should display debugger's help during irb:rdbg session
* Update `show_cmds`'s output when in irb:rdbg session
4029c2e564
2023-08-29 18:36:16 +00:00
ima1zumi
c58561b5e3
[ruby/reline] Remove ARGV.first
in east_asian_width.rb
...
(https://github.com/ruby/reline/pull/587 )
`ARGV.first` is the name of the EastAsianWidth file and is not needed for east_asian_width.rb
6649bda31c
2023-08-29 17:55:02 +00:00
elfham
95efdef3b2
[ruby/reline] Set EastAsianWidth::UNICODE_VERSION
...
(https://github.com/ruby/reline/pull/586 )
* Set EastAsianWidth::UNICODE_VERSION
* Commented out UNICODE_VERSION in Reline::Unicode::EastAsianWidth
* Commented out UNICODE_VERSION in Reline::Unicode::EastAsianWidth
6d94f2a26a
2023-08-29 17:20:18 +00:00
Chad Schroeder
51e7fb5331
[ruby/irb] fixes https://github.com/ruby/irb/pull/524
...
(https://github.com/ruby/irb/pull/696 )
59bcc07def
2023-08-29 13:10:35 +00:00
Stan Lo
6ed1a504d4
[ruby/irb] irb:rdbg cleanups ( https://github.com/ruby/irb/pull/697 )
...
* Remove unused method and constant from IRB::Debug
* Update comments
98914a963c
2023-08-29 12:54:25 +00:00
Petrik
cfae3ed422
Fix code example doc for Random.alphanumeric
2023-08-29 19:48:28 +09:00
Stan Lo
221c2d0e19
[ruby/irb] Print deprecation message for prompt_n methods
...
(https://github.com/ruby/irb/pull/691 )
They were removed in #685 , but we should still keep them to avoid breaking
changes to tools like Chef.
533ff08947/lib/chef/shell.rb (L138)
b585e0c835
2023-08-29 18:15:05 +09:00
Summer ☀️
0cd92819c9
[ruby/irb] Remove unused PROMPT_N
...
(https://github.com/ruby/irb/pull/685 )
66e69fa0dc
2023-08-29 18:15:05 +09:00
Hiroshi SHIBATA
f16c50772c
[rubygems/rubygems] rubocop -a
...
f240bfad2a
2023-08-29 17:41:41 +09:00
Nobuyoshi Nakada
7e5c662a6f
[Feature #18183 ] Add chars:
option to Random#alphanumeric
2023-08-29 10:56:56 +09:00
Alan Wu
85aa28e8a6
RJIT: Remove Type::CArray and limit use of Type::CString
...
See previous similar YJIT commit.
2023-08-28 17:14:33 -04:00
Imir Kiyamov
23eb13d49d
[rubygems/rubygems] Fixed malformed lockfile version on installing
...
c969a192bf
2023-08-28 07:41:51 +00:00
David Rodríguez
80f35d96ae
[rubygems/rubygems] Don't check for circular deps on full index sources
...
d275cdccb1
2023-08-28 11:15:34 +09:00
David Rodríguez
2edf9fa23a
[rubygems/rubygems] Remove redundant checks
...
d66815633b
2023-08-28 11:15:34 +09:00
David Rodríguez
279dcfab7a
[rubygems/rubygems] Fix standalone install crashing when using legacy multi remote gemfiles
...
If a legacy multi remote Gemfile depends transitively on a default gem,
then in standalone mode we'd fail to fetch the proper version from the
source that includes it, since we were adding it to `specs` (instead of
`remote_specs`), which was already including the default version of the
gem, and thus preventing the remote version from "overwriting that" and
being added to the index. We should add it to the `remote_specs` index
directly instead.
05f4f9dfc0
2023-08-28 11:15:33 +09:00
Martin Emde
7bf5f78028
[rubygems/rubygems] Refactor Fetcher#api_fetcher? and fetcher loading logic
...
f664d60114
2023-08-28 11:15:32 +09:00
Benoit Daloze
5937d01f7f
[ruby/yarp] Rename constant pool fields to name or operator
...
* `constant_id` and `operator_id` are confusing.
* See https://github.com/ruby/yarp/issues/1296
09d0a144df
2023-08-27 16:18:15 +00:00
Kevin Newton
e2b8eac767
[ruby/yarp] Bump to version 0.9.0
...
b327e39527
2023-08-26 00:20:44 +00:00
Kevin Newton
ca9a44795b
Remove version templating in YARP
2023-08-25 18:20:51 -04:00
Kevin Newton
9b8602dd90
[ruby/yarp] Introduce parse_lex instead of asking for a block
...
7e70339fe1
2023-08-25 21:10:19 +00:00
Kevin Newton
76512d78fc
[ruby/yarp] Rename Location#to to Location#join, include checks
...
de8924e3ec
2023-08-25 21:10:17 +00:00
Kevin Newton
20cf9e3ae8
[ruby/yarp] Add a Location#to method for combining them
...
1db2de98ac
2023-08-25 21:10:15 +00:00
Kevin Newton
55a8add304
[ruby/yarp] Fix rational parsing
...
c8f31eb5b6
2023-08-25 21:10:15 +00:00
Kevin Newton
934552618e
[ruby/yarp] Fix relative require for version in YARP gemspec
...
ca8e8cfa0d
2023-08-25 19:48:51 +00:00
Benoit Daloze
f603497105
[ruby/yarp] Use templating to avoid duplicating the YARP version in many places
...
9c359fd92e
2023-08-25 19:37:17 +00:00
Kevin Newton
2ebaf077f6
[ruby/yarp] Provide a desugar visitor
...
9fad513089
2023-08-25 19:31:30 +00:00
Kevin Newton
649aba28f4
[ruby/yarp] Add Node#copy and MutationVisitor
...
3693091661
2023-08-25 19:31:28 +00:00
HParker
f84690c6e2
[ruby/yarp] ignore state on embexpr_end
...
Ripper state can carry over from the previous node type making coparison less useful
74509728d4
2023-08-25 19:11:14 +00:00
Nobuyoshi Nakada
7d32011399
[Bug #19852 ] Use gem name without suffix
2023-08-26 02:47:04 +09:00
Kevin Newton
7002d44c10
Fix merge conflict in lib/yarp/lex_compat.rb
2023-08-25 09:00:04 -04:00
Kevin Newton
ec7a2fdc03
[ruby/yarp] Fix up lex compat on Ruby HEAD
...
7710cee248
2023-08-25 12:49:37 +00:00
Nobuyoshi Nakada
fe8f6dfed1
Remove yarp hack for BOM
2023-08-25 20:07:10 +09:00
David Rodríguez
023b8ddd22
[rubygems/rubygems] Don't use full indexes unnecessarily on legacy Gemfiles
...
On legacy Gemfiles with multiple remote sources, where all of them
support the compact index API, we were still falling back to full
indexes.
Fixing this also allows to simplifying the code.
b1357c8e72
2023-08-25 18:34:47 +09:00
Hiroshi SHIBATA
f7359e112a
Suggest to add bundled gems into gemspec if 3rd party gem try to load gem from Gem::BUNDLED_GEMS::SINCE
...
[Feature #19846 ]
2023-08-25 15:57:53 +09:00
Hiroshi SHIBATA
70272ca65c
Warn for bigdecimal.so case too
2023-08-25 13:11:06 +09:00
Hiroshi SHIBATA
3a70afad32
prime is bundled gems since Ruby 3.1.0. We should warn it under the bundler environment
2023-08-25 12:56:47 +09:00
Hiroshi SHIBATA
28b2cb10d5
We should also warn when loading 'bigdecimal/*' libraries
2023-08-25 12:52:10 +09:00
Hiroshi SHIBATA
bdd535eac6
Decorate Hash syntax for Gem::BUNDLED_GEMS::EXACT
2023-08-25 12:52:10 +09:00
Kevin Newton
0e3dc5a056
[ruby/yarp] Fix lex compat with BOM
...
* BOM should not impact looking for the encoding string
* We should re-encode tokens when the encoding changes
* BOM should change the column of comments only
119fc2d7b2
2023-08-24 21:30:01 +00:00
Stan Lo
e1d7066a5f
[ruby/irb] Deprecate RubyLex and warn about referencing to it
...
(https://github.com/ruby/irb/pull/692 )
`RubyLex` has always been a private component of IRB, so we should
explicitly discourage usages of it.
Also, it should be placed under the `IRB` module like other components.
069b5625f7
2023-08-24 15:35:40 +00:00
Jeremy Evans
43c2c1ed48
[ruby/open-uri] Make URI.open pass keywords
...
Fixes [Bug #19238 ]
f636d01b85
2023-08-23 21:30:16 +00:00
Kevin Newton
24bcd49473
[ruby/yarp] Fix first method param lex failures
...
When Ripper encounters a method parameter that is the first
parameter and is an identifier and it shadows a local scope, it
incorrectly marks it as END|LABEL (because it think it's a local).
We need to account for that in the lex compat in order to properly
compare.
15f725a1b1
2023-08-23 18:06:49 +00:00