Repository navigation
Avoid potentially loading the same extension from different versions of the same gem - #1155
Conversation
…of the same gem Avoids warnings like ``` /path/to/ruby/3.3.4/lib/ruby/gems/3.3.0/gems/rbs-3.4.0/lib/rdoc/discover.rb:10: warning: method redefined; discarding old scan /path/to/ruby/3.3.4/lib/ruby/gems/3.3.0/gems/rbs-3.5.1/lib/rdoc/discover.rb:10: warning: previous definition of scan was here ```
|
Today I learned: https://github.com/rubygems/rubygems/blob/633c1bffd4aa4b2eb9b37576fcb16d6f0a40ae93/lib/rubygems.rb#L529 is super-nice. |
|
I don't really like this "auto-discovery" mechanism for loading plugins. Minitest does something similar but allows to toggle off auto-discovery with an ENV variable, and also has recently added |
|
By the way, funny that Gem.find_latest_files docs using exactly this example, yet the real code was not actually using it 😅. Thanks for having a look @olleolleolle! |
Avoids warnings like