lib/browser_sniffer/patterns.rb in browser_sniffer-1.1.2 vs lib/browser_sniffer/patterns.rb in browser_sniffer-1.1.3

- old
+ new

@@ -67,10 +67,13 @@ %r{^(okhttp)\/([\d\.]+)}i ], [:name, :version], [ # Shopify Mobile for iPhone or iPad %r{.*(Shopify Mobile)\/(?:iPhone\sOS|iOS)\/([\d\.]+) \((iPhone|iPad|iPod)}i ], [[:name, 'Shopify Mobile'], :version], [ + # Shopify POS Next for iPhone or iPad + %r{.*(Shopify POS Next|Shopify POS)\/(?:iOS)\/([\d\.]+) \((iPhone|iPad|iPod)}i + ], [[:name, 'Shopify POS'], :version], [ # Shopify Mobile for Android %r{.*(Shopify Mobile)\/Android\/([\d\.]+(?: \(debug(?:|-push)\))?) \(Build (\d+) with API (\d+)}i ], [[:name, 'Shopify Mobile'], :version, :build, :sdk_version], [ # ShopifyFoundation shared library /^(ShopifyFoundation)/i, @@ -157,10 +160,19 @@ %r{.*Shopify Mobile/(?:iPhone\sOS|iOS)/[\d\.]+ \((iPad)([\d,]+)}i ], [[:type, :tablet], :model], [ # Shopify Mobile for iPod touch %r{.*Shopify Mobile/(?:iPhone\sOS|iOS)/[\d\.]+ \((iPod)([\d,]+)}i ], [[:type, :handheld], :model], [ + # Shopify POS Next for iPhone + %r{.*(?:Shopify POS Next|Shopify POS)/(?:iPhone\sOS|iOS)/[\d\.]+ \((iPhone)([\d,]+)}i + ], [[:type, :handheld], :model], [ + # Shopify POS Next for iPad + %r{.*(?:Shopify POS Next|Shopify POS)/(?:iPhone\sOS|iOS)/[\d\.]+ \((iPad)([\d,]+)}i + ], [[:type, :tablet], :model], [ + # Shopify POS Next for iPod touch + %r{.*(?:Shopify POS Next|Shopify POS)/(?:iPhone\sOS|iOS)/[\d\.]+ \((iPod)([\d,]+)}i + ], [[:type, :handheld], :model], [ # Shopify Ping for iPhone %r{.*Shopify Ping/(?:iPhone\sOS|iOS)/[\d\.]+ \((iPhone)([\d,]+)}i ], [[:type, :handheld], :model], [ # Shopify Mobile for Android %r{.*Shopify Mobile\/(Android)\/[\d\.]+(?: \(debug(?:|-push)\))? \(Build \d+ with API \d+ on (.*?) ([^\)]*)\)}i @@ -276,9 +288,12 @@ # Shopify Mobile for iOS %r{.*Shopify Mobile\/(iPhone\sOS|iOS)\/[\d\.]+ \(.*\/OperatingSystemVersion\((.*)\)}i ], [[:type, :ios], [:version, lambda { |str| str && str.scan(/\d+/).join(".") }], [:name, 'iOS']], [ # Shopify Mobile for iPhone or iPad %r{.*(Shopify Mobile)\/(?:iPhone\sOS|iOS)[\/\d\.]* \((iPhone|iPad|iPod).*\/([\d\.]+)\)}i + ], [[:type, :ios], [:name, 'iOS'], :version], [ + # Shopify POS Next for iPhone or iPad + %r{.*(Shopify POS Next|Shopify POS)\/(?:iPhone\sOS|iOS)[\/\d\.]* \((iPhone|iPad|iPod).*\/([\d\.]+)\)}i ], [[:type, :ios], [:name, 'iOS'], :version], [ # Shopify Ping for iOS %r{.*Shopify Ping\/(iOS)\/[\d\.]+ \(.*\/([\d\.]+)\)}i ], [[:type, :ios], :version, [:name, 'iOS']], [ # Shopify Mobile for Android