Sha256: 37b35c1361c6f1baac824e1c617808c4b902e84a371a777403300e2aae6864a9

Contents?: true

Size: 341 Bytes

Versions: 2

Compression:

Stored size: 341 Bytes

Contents

module LicenseFinder
  module Platform
    def self.darwin?
      RUBY_PLATFORM =~ /darwin/
    end

    def self.windows?
      # SO: What is the correct way to detect if ruby is running on Windows?,
      # cf. https://stackoverflow.com/a/21468976/2592915
      Gem.win_platform? || RUBY_PLATFORM =~ /mswin|cygwin|mingw/
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
license_finder-5.4.1 lib/license_finder/platform.rb
license_finder-5.4.0 lib/license_finder/platform.rb