Sha256: 68daff8a71b7319e7fff28907b4a122d36cb1b747614ee2399abf03d2bba43d4

Contents?: true

Size: 651 Bytes

Versions: 1

Compression:

Stored size: 651 Bytes

Contents

module GoogleMapsService
  # GoogleMapsService gem version
  VERSION = "0.6.1"

  # Current operating system
  # @private
  OS_VERSION = begin
    if RUBY_PLATFORM.match?(/mswin|win32|mingw|bccwin|cygwin/)
      `ver`.sub(/\s*\[Version\s*/, "/").sub("]", "").strip
    elsif RUBY_PLATFORM.match?(/darwin/i)
      "Mac OS X/#{`sw_vers -productVersion`}".strip
    elsif RUBY_PLATFORM == "java"
      require "java"
      name = java.lang.System.getProperty("os.name")
      version = java.lang.System.getProperty("os.version")
      "#{name}/#{version}".strip
    else
      `uname -sr`.sub(" ", "/").strip
    end
  rescue
    RUBY_PLATFORM
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
google_maps_service_ruby-0.6.1 lib/google_maps_service/version.rb