Stan Lo
191e4ae33f
[ruby/irb] Drop chained methods' completion support
...
(https://github.com/ruby/irb/pull/529 )
Consider completion for this example: `foo.bar.b`
Without type information, it is hard to know the return value of the `bar`
method, so the current implementation interates through `ObjectSpace` to
get all possible candidates for the second method.
In small projects, the performance and accuracy are acceptable. But in
bigger projects, the performance is unacceptable and the accuracy is mostly
poor.
So this commit drops the support for chained methods' completion.
2023-03-04 15:34:49 +00:00
tomoya ishida
6f81e38d1d
[ruby/reline] Fix completion with multiline
...
(https://github.com/ruby/reline/pull/513 )
d76c482c5f
2023-03-04 05:56:00 +00:00
tomoya ishida
b49053a6be
[ruby/irb] Avoid slow symbol completion when completion target is an
...
empty symbol
(https://github.com/ruby/irb/pull/534 )
35697f3ef3
2023-03-03 13:41:21 +00:00
Johnny Shields
f1fe4a4a99
[rubygems/rubygems] Update current_ruby.rb
...
8755ca959e
2023-03-03 09:50:30 +00:00
johnnyshields
79ede4ae99
[rubygems/rubygems] Alias CurrentRuby#mswin?, mswin64?, mingw?, x64_mingw? to #windows?. (This is done instead of logging a deprecation warning.)
...
b9fcc7c0ab
2023-03-03 09:50:29 +00:00
Hiroshi SHIBATA
103a65316c
Regenerate parsers with racc-1.6.2
2023-03-03 13:46:04 +09:00
Orien Madgwick
573522bd84
[rubygems/rubygems] Simplify the gem package file filter in the gemspec template
...
The regular expression is difficult to understand at a glance.
Let's replace it with a much simpler string comparison.
a3745aa03f
2023-03-02 17:05:04 +00:00
Tony Hsu
5f3c7ac196
[rubygems/rubygems] Replace lockfile with .locked
...
203f3e3802
2023-03-02 14:43:27 +00:00
tomoya ishida
556439613a
[ruby/irb] Handle long inspect and control character in prompt
...
string
(https://github.com/ruby/irb/pull/528 )
* Handle long inspect and control characters in prompt string
* Add constants for prompt truncate length, omission and replace pattern
* Simply compare string instead of regexp in prompt truncation test
2023-03-02 13:53:44 +00:00
Stan Lo
da6ac30d1e
[ruby/irb] Specify metadata to provide richer information on
...
rubygems.org
(https://github.com/ruby/irb/pull/532 )
f01c2a6ac1
2023-03-02 13:49:03 +00:00
Ellen Marie Dash
d2d521b274
[rubygems/rubygems] Regenerate lockfile if spec list is invalid/empty.
...
d2c56315e2
2023-03-02 00:50:58 +00:00
Alexander Popov
35457ebb8f
[ruby/uri] Replace RubyDoc.info links with Ruby.GitHub.io
...
As requested.
c272f205f9
2023-03-01 23:42:50 +00:00
Alexander Popov
bc668d75f6
[ruby/uri] Take out GitHub link for gemspec metadata
...
ca4638a4b3
2023-03-01 23:42:49 +00:00
Alexander Popov
8a5110b664
[ruby/uri] Populate gemspec metadata object
...
31748915d0
2023-03-01 23:42:48 +00:00
Alexander Popov
93a54a3c30
[ruby/uri] Sort gemspec metadata
object alphabetical
...
1e9420b57c
2023-03-01 23:42:47 +00:00
Alexander Popov
932c0e77ee
[ruby/uri] Remake metadata
object in gemspec
into one assignment
...
19a19ccde6
2023-03-01 23:42:47 +00:00
Alexander Popov
57e6d66450
[ruby/uri] Add documentation link into gemspec
...
19ced145f4
2023-03-01 23:42:46 +00:00
Daniel Colson
62b3bcba5e
[rubygems/rubygems] Auto-heal on corrupted lockfile with missing deps
...
Following up on https://github.com/rubygems/rubygems/pull/6355 , which
turned a crash into a nicer error message, this commit auto-heals the
corrupt lockfile instead.
In this particular case (a corrupt Gemfile.lock with missing
dependencies) the LazySpecification will not have accurate dependency
information, we have to materialize the SpecSet to determine there are
missing dependencies. We've already got a way to handle this, via
`SpecSet#incomplete_specs`, but it wasn't quite working for this case
because we'd get to `@incomplete_specs += lookup[name]` and
`lookup[name]` would be empty for the dependency.
With this commit we catch it a bit earlier, marking the parent spec
containing the missing dependency as incomplete.
486ecb8f20
2023-03-01 02:50:40 +00:00
Stan Lo
9ddd73060b
[ruby/irb] Display and prioritise instance methods in `ls
...
<module/class>`
(https://github.com/ruby/irb/pull/496 )
e3d21f9329
2023-02-28 14:36:12 +00:00
Samuel Giddins
2d6097a0f5
[rubygems/rubygems] Fix method redefinition warning in gem exec specs
...
f177990d4c
2023-02-28 12:54:37 +00:00
Hiroshi SHIBATA
9cc0ac22f7
Update lib/net/http/status.rb
2023-02-28 14:29:57 +09:00
Stan Lo
ea830ab29d
[ruby/irb] Add a comment about Rails' patch on
...
Workspace#filter_backtrace
(https://github.com/ruby/irb/pull/526 )
* Add a comment about Rails' patch on Workspace#filter_backtrace
* Update lib/irb/workspace.rb
Co-authored-by: Sorah Fukumori <sora134@gmail.com>
---------
9443d911fc
Co-authored-by: Sorah Fukumori <sora134@gmail.com>
2023-02-27 15:23:31 +00:00
Stan Lo
0aa50a03b1
[ruby/irb] Provide more useful message when
...
`IRB::Inspector#inspect_value` errors
(https://github.com/ruby/irb/pull/511 )
**Before**
```
irb(main):001:0> c = Cat.new "foo"
(Object doesn't support #inspect)
=>
```
**After**
```
irb(main):001:0> c = Cat.new "foo"
An error occurred when inspecting the object: #<NoMethodError: undefined method `is_a?' for foo:Cat
if obj.is_a?(String)
^^^^^^>
Result of Kernel#inspect: #<Cat:0x0000000109090d80 @name="foo">
=>
```
2023-02-27 11:07:19 +00:00
tomoya ishida
4f611df3f7
[ruby/reline] Fix wrong indent number in prompt. whole_lines has
...
duplicated line.
(https://github.com/ruby/reline/pull/460 )
* whole_lines should consider prev_line_index, and must not duplicate last_line
* Add test for lines passed to dynamic prompt proc
* Refactor whole_lines parameters used in test helper
* Remove whole_line's arguments
2023-02-27 10:21:30 +00:00
Hiroshi SHIBATA
db0a4c8923
Prefer to use File.foreach instead of IO.foreach
2023-02-27 18:49:18 +09:00
Hiroshi SHIBATA
d3d8cd304f
Prefer to use File.readlines instead of IO.readlines
2023-02-27 18:49:18 +09:00
tomoya ishida
92ed8e6f3f
[ruby/reline] Fix the cause of test_yamatanooroti randomly failing
...
(https://github.com/ruby/reline/pull/474 )
* Add repeated input-delete test that fails on HEAD
* Use raw mode while readmultiline
2023-02-27 08:44:02 +00:00
Sven Schwyn
cc8329e8bc
[ruby/tempfile] Fix inconsistency in doc of Tempfile.create
...
3f96b2ed29
2023-02-27 02:29:06 +00:00
Burdette Lamar
6e6992e5db
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/127 )
07b2b88ef5
2023-02-26 13:37:15 +00:00
ima1zumi
672b81b090
[ruby/irb] Remove unused Struct
...
(https://github.com/ruby/irb/pull/522 )
97dae166ae
2023-02-25 16:50:33 +00:00
Burdette Lamar
05f016cdad
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/126 )
4700d0660b
2023-02-24 19:09:06 +00:00
Akinori MUSHA
5d5ff6e5ed
[ruby/set] Set#merge does not take keyword arguments as a Hash
...
ca1c9532a9
2023-02-24 11:48:08 +00:00
Akinori MUSHA
454ac4cbb2
[ruby/set] Set#merge takes many enumerable objects like Hash#merge! does
...
becaca994d
2023-02-24 11:48:07 +00:00
Burdette Lamar
7c47c2617a
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/125 )
2ea20380fc
2023-02-23 16:51:58 +00:00
Mercedes Bernard
583137fe56
[rubygems/rubygems] make Bundler.load_marshal private
...
4909d071d2
2023-02-23 08:50:03 +00:00
Mercedes Bernard
d5994eb436
[rubygems/rubygems] safe marshal gem specs when inflating
...
5c5d0c5350
2023-02-23 08:50:02 +00:00
Mercedes Bernard
3d5ec8401f
[rubygems/rubygems] safe marshal gem versions when fetching Marshal.specs.4.8.gz
...
23880353c1
2023-02-23 08:50:02 +00:00
Burdette Lamar
4edb2a29f6
[ruby/net-http] [DOC] Enhanced RDoc for Net:HTTP
...
(https://github.com/ruby/net-http/pull/124 )
aaf26b21d6
2023-02-22 13:58:36 +00:00
Samuel Giddins
a17b1b19b1
[rubygems/rubygems] Always join with a string
...
Gem.path_separator can also be a regexp...
7e6e56a5f3
2023-02-22 08:42:20 +00:00
Samuel Giddins
0ca3a095be
[rubygems/rubygems] Only update env if var exists
...
Will save on an error if it would be nil from an exception happening during that line
d6797a04e9
2023-02-22 08:42:19 +00:00
Samuel Giddins
80bfa1b30a
[rubygems/rubygems] Fix resetting env in gem exec, and make sure it is set for gem exec gem
...
13a6dd4992
2023-02-22 08:42:18 +00:00
Samuel Giddins
2dd9698350
[rubygems/rubygems] Allow gem exec gem
...
a767f7b9be
2023-02-22 08:42:17 +00:00
Samuel Giddins
47d4f73ee7
[rubygems/rubygems] Remove platform option for gem exec
...
Also fix native extensions that load dependencies
a06f9870c7
2023-02-22 08:42:17 +00:00
Samuel Giddins
612ebd10c0
[rubygems/rubygems] Ensure dependencies are updated by default when running gem exec
...
664f3e1e5f
2023-02-22 08:42:16 +00:00
Samuel Giddins
3f0f9a7942
[rubygems/rubygems] Add gem exec description
...
dac1609fd5
2023-02-22 08:42:16 +00:00
Samuel Giddins
d81be0609b
[rubygems/rubygems] Add specs for gem exec
...
3078e5834e
2023-02-22 08:42:16 +00:00
Samuel Giddins
cbe14cc8e6
[rubygems/rubygems] Add gem exec command
...
ca69a317f3
2023-02-22 08:42:15 +00:00
Étienne Barrié
bc101f0fc1
[ruby/rdoc] Fix RDoc::Parser::Ruby not being documented
...
The calls to require prevent the class from being documented.
76283fc42e
2023-02-21 19:32:14 +09:00
Vivek Bharath Akupatni
2ac1efc0f3
[ruby/csv] Use https links instead of http
...
(https://github.com/ruby/csv/pull/274 )
e2a06929a8
2023-02-21 19:31:29 +09:00
Mau Magnaguagno
1a05d988d3
[ruby/csv] Remove unused @double_quote_character from Parser
...
(https://github.com/ruby/csv/pull/273 )
e5622c53ae
2023-02-21 19:31:28 +09:00