Sha256: 83f79a8fa4d4c13dbe7c6612f786a0b6744f70e008711d2d76197707caff037d
Contents?: true
Size: 813 Bytes
Versions: 6
Compression:
Stored size: 813 Bytes
Contents
class UserAgent module Browsers module Gecko def self.extend?(agent) agent.application && agent.application.product == "Mozilla" end GeckoBrowsers = %w( Firefox Camino ).freeze unless defined? GeckoBrowsers def browser GeckoBrowsers.detect { |browser| respond_to?(browser) } || super end def version send(browser).version || super end def version=(v) send(browser).version = v end def platform application.comment[0] end def security Security[application.comment[1]] end def os OperatingSystems.normalize_os(application.comment[2]) end def localization application.comment[3] end end end end
Version data entries
6 entries across 6 versions & 2 rubygems