Sha256: 54d5766cfe7878bb8142a0cd2ee2f43e3bd5d903b95e0c4660f64a63b06d47b2

Contents?: true

Size: 562 Bytes

Versions: 33

Compression:

Stored size: 562 Bytes

Contents

module Fontist
  module Utils
    module System
      def self.user_os # rubocop:disable Metrics/MethodLength
        @user_os ||= begin
          host_os = RbConfig::CONFIG["host_os"]
          case host_os
          when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
            :windows
          when /darwin|mac os/
            :macos
          when /linux/
            :linux
          when /solaris|bsd/
            :unix
          else
            raise Fontist::Error, "unknown os: #{host_os.inspect}"
          end
        end
      end
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
fontist-1.11.7 lib/fontist/utils/system.rb
fontist-1.11.6 lib/fontist/utils/system.rb
fontist-1.11.5 lib/fontist/utils/system.rb
fontist-1.11.3 lib/fontist/utils/system.rb
fontist-1.11.2 lib/fontist/utils/system.rb
fontist-1.9.3 lib/fontist/utils/system.rb
fontist-1.9.2 lib/fontist/utils/system.rb
fontist-1.11.1 lib/fontist/utils/system.rb
fontist-1.10.1 lib/fontist/utils/system.rb
fontist-1.10.0 lib/fontist/utils/system.rb
fontist-1.9.1 lib/fontist/utils/system.rb
fontist-1.9.0 lib/fontist/utils/system.rb
fontist-1.8.13 lib/fontist/utils/system.rb
fontist-1.8.12 lib/fontist/utils/system.rb
fontist-1.8.11 lib/fontist/utils/system.rb
fontist-1.8.10 lib/fontist/utils/system.rb
fontist-1.8.9 lib/fontist/utils/system.rb
fontist-1.8.8 lib/fontist/utils/system.rb
fontist-1.8.7 lib/fontist/utils/system.rb
fontist-1.8.6 lib/fontist/utils/system.rb