Skip to content

Commit

Permalink
[rubygems/rubygems] Add a FreeBSD platform helper
Browse files Browse the repository at this point in the history
  • Loading branch information
deivid-rodriguez authored and matzbot committed May 16, 2024
1 parent 2dd46bb commit 4db76d1
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lib/rubygems.rb
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,13 @@ def self.solaris_platform?
RUBY_PLATFORM.include?("solaris")
end

##
# Is this platform FreeBSD

def self.freebsd_platform?
RbConfig::CONFIG["host_os"].to_s.include?("bsd")
end

##
# Load +plugins+ as Ruby files

Expand Down

0 comments on commit 4db76d1

Please sign in to comment.