diff options
| author | David Rodriguez <deivid.rodriguez@riseup.net> | 2024-05-13 11:59:55 +0200 |
|---|---|---|
| committer | git <svn-admin@ruby-lang.org> | 2024-05-16 09:20:16 +0000 |
| commit | 4db76d198b4a152c416d657e97959ade3e50a185 (patch) | |
| tree | 617fcfd40b5ea090b86cf355e13a85f7f2b89a94 /lib | |
| parent | 2dd46bb82ffc4dff01d7ea70922f0e407acafb4e (diff) | |
[rubygems/rubygems] Add a FreeBSD platform helper
https://github.com/rubygems/rubygems/commit/535c83d5be
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/rubygems.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/rubygems.rb b/lib/rubygems.rb index ad7ab10756..ac225ca70a 100644 --- a/lib/rubygems.rb +++ b/lib/rubygems.rb @@ -1013,6 +1013,13 @@ An Array (#{env.inspect}) was passed in from #{caller[3]} end ## + # Is this platform FreeBSD + + def self.freebsd_platform? + RbConfig::CONFIG["host_os"].to_s.include?("bsd") + end + + ## # Load +plugins+ as Ruby files def self.load_plugin_files(plugins) # :nodoc: |
