Sha256: 978021dc806a6031717f0dca1bcbf9521a4d458700222e93d1af5f676ff9d9c5
Contents?: true
Size: 700 Bytes
Versions: 6
Compression:
Stored size: 700 Bytes
Contents
require 'rbconfig' module Xot extend module Util def osx?() /darwin/.match? RUBY_PLATFORM end def ios?() false end def win32?() /mswin|ming|cygwin/.match? RUBY_PLATFORM end def mswin?() /mswin/.match? RUBY_PLATFORM end def mingw?() /ming/.match? RUBY_PLATFORM end def cygwin?() /cygwin/.match? RUBY_PLATFORM end def gcc?() /(^|\s)g\+\+/i.match? RbConfig::CONFIG['CXX'] end def clang?() /(^|\s)clang/i.match? RbConfig::CONFIG['CXX'] end def github_actions?() ENV['GITHUB_ACTIONS'] == 'true' end alias ci? github_actions? self end# Util end# Xot
Version data entries
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
xot-0.3.4 | lib/xot/util.rb |
xot-0.3.3 | lib/xot/util.rb |
xot-0.3.2 | lib/xot/util.rb |
xot-0.3.1 | lib/xot/util.rb |
xot-0.3 | lib/xot/util.rb |
xot-0.2.1 | lib/xot/util.rb |