Method: Gem::Platform#normalized_linux_version_ext
- Defined in:
- lib/bundler/rubygems_ext.rb
permalink #normalized_linux_version_ext ⇒ Object
This is a copy of RubyGems 3.3.23 or higher ‘normalized_linux_method`. Once only 3.3.23 is supported, we can use the method in RubyGems.
102 103 104 105 106 107 108 109 |
# File 'lib/bundler/rubygems_ext.rb', line 102 def normalized_linux_version_ext return nil unless @version without_gnu_nor_abi_modifiers = @version.sub(/\Agnu/, "").sub(/eabi(hf)?\Z/, "") return nil if without_gnu_nor_abi_modifiers.empty? without_gnu_nor_abi_modifiers end |