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.8.5 lib/fontist/utils/system.rb
fontist-1.8.4 lib/fontist/utils/system.rb
fontist-1.8.3 lib/fontist/utils/system.rb
fontist-1.8.2 lib/fontist/utils/system.rb
fontist-1.8.1 lib/fontist/utils/system.rb
fontist-1.7.3 lib/fontist/utils/system.rb
fontist-1.7.2 lib/fontist/utils/system.rb
fontist-1.7.1 lib/fontist/utils/system.rb
fontist-1.7.0 lib/fontist/utils/system.rb
fontist-1.6.0 lib/fontist/utils/system.rb
fontist-1.5.1 lib/fontist/utils/system.rb
fontist-1.5.0 lib/fontist/utils/system.rb
fontist-1.4.0 lib/fontist/utils/system.rb