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
Hiroshi SHIBATA
38fa8eb4cb
Merge rubygems/bundler master
...
Pick from e9304aed7e
2023-02-21 19:28:12 +09:00
David Rodríguez
a47e1328e6
[rubygems/rubygems] Give a better message when Gemfile branch does not exist
...
cb4fc41cbc
2023-02-21 19:28:12 +09:00
John Hawthorn
4064e3e776
[rubygems/rubygems] Update pub_grub
...
* Replaces the wording of "is forbidden" with "cannot be used"
* Fixes the method signature of VersionRange::Empty#eql?
8c6b3f130b
Co-authored-by: Daniel Colson <danieljamescolson@gmail.com>
2023-02-21 19:28:12 +09:00
David Rodríguez
8038991583
[rubygems/rubygems] Sync with pub_grub main branch
...
We became a bit out of sync lately.
6161a2610a
2023-02-21 19:28:12 +09:00
David Rodríguez
e7bf85961d
[rubygems/rubygems] Restore better error message when locked ref does not exist
...
c8e024359f
2023-02-21 19:28:12 +09:00
Nobuyoshi Nakada
9b6d421ff4
[rubygems/rubygems] [DOC] Update the link to OpenSource.org
...
The static list in alphabetical order seems no longer provided.
a37dff7736
2023-02-21 10:26:53 +00:00
Burdette Lamar
899fad907c
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/123 )
220ff3f741
2023-02-20 21:57:16 +00:00
Burdette Lamar
5c0298bf18
[ruby/pstore] Remove (newly unneeded) remarks about aliases
...
(https://github.com/ruby/pstore/pull/8 )
01c4ccc7aa
2023-02-19 23:07:33 +00:00
Burdette Lamar
5fb64f5230
[ruby/fileutils] Remove (newly unneeded) remarks about aliases
...
(https://github.com/ruby/fileutils/pull/108 )
bbe595cfa5
2023-02-19 22:50:41 +00:00
Stan Lo
cbac0fa4cb
[ruby/irb] Remove unused context argument from Worksapce#evaluate
...
(https://github.com/ruby/irb/pull/488 )
The context argument was introduced in this change:
6806669d17 (diff-296327851fb7a2c307c2d0693b769f58c01aaf315972f290500d10081ee200a9)
perhaps for potential usages. But after that it's never used.
2023-02-18 11:34:28 +00:00
Burdette Lamar
a49bc73e1f
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP
...
(https://github.com/ruby/net-http/pull/122 )
06f79cda87
2023-02-16 21:52:10 +00:00
Hiroshi SHIBATA
65b6411e9d
[ruby/timeout] bump up 0.3.2
...
e1b2448101
2023-02-16 00:57:08 +00:00
Rick Blommers
610375edfc
[ruby/timeout] Don't move the timer_thread when it's enclosed
...
Don't move the timer_thread to ThreadGroup::Default, when it's
created in an enclosed ThreadGroup.
Prevents the exception: "add" can't move from the enclosed thread group"
eb889d2c8b
2023-02-15 19:25:05 +00:00
Burdette Lamar
847a0df058
[ruby/net-http] [DOC] Enhanced RDoc for Net::HTTP#get
...
(https://github.com/ruby/net-http/pull/121 )
51b9af1eed
2023-02-15 15:00:34 +00:00
HASUMI Hitoshi
3a9d52466a
[ruby/irb] Fix help-message ( https://github.com/ruby/irb/pull/506 )
...
a55ace0791
2023-02-15 14:53:33 +00:00
TJ
fba8f7783b
[DOC] remove redundant paragraph at set.rb ( #6472 )
...
remove redundant paragraph at set.rb
2023-02-15 12:46:16 +09:00