Sha256: 4522041bb9ccfcd92cd64fb17ce990281cfbd265c1916599d36d6f2e00799d7d
Contents?: true
Size: 739 Bytes
Versions: 4
Compression:
Stored size: 739 Bytes
Contents
class UserAgent module Browsers module Gecko def self.extend?(agent) agent.application && agent.application.product == "Mozilla" end GeckoBrowsers = %w( Firefox Camino Iceweasel Seamonkey ).freeze def browser GeckoBrowsers.detect { |browser| respond_to?(browser) } || super end def version send(browser).version || super 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
4 entries across 4 versions & 1 rubygems