user_agent_parser 2.3.1 → 2.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/vendor/uap-core/regexes.yaml +32 -12
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7fe22bcba079cdff8ad9ae2c58b4270ebf2b877f
4
- data.tar.gz: 63e31e3fdc2f9074e44dfb7e52c3774d6bc03e9e
3
+ metadata.gz: b6e1552de9b5a79f538c36d78e34b049460aa0e6
4
+ data.tar.gz: 308969122b93727352654432bdd6b41a3a6fdccf
5
5
  SHA512:
6
- metadata.gz: 153fe2308068f9c566f8b5c25085f5cca6efa0bd05f8a0c0ef69c77d4b072dac6fb837dd76fc7c3f3ac6ff1fde7692d5bbf7299936e0dabe233da14fbd3b07bf
7
- data.tar.gz: e8854b5205443f2de36364a1c65d51d6f1c56a49caed1d3a305c1283edcce8bc83bfde797048c5465783618887e83f76d1686509df8adf24445eecc6360ea801
6
+ metadata.gz: 702a8bfbab57caa023acd6492573566e5e5a13c1320c183475cb19914dc5e15dbd44b521076bc9f57c7fd20702ddb2e264ed5e4e1451dccb44cfd87099b53ba9
7
+ data.tar.gz: ce9d88ce53afa4152729ec77d85d3d462c23db2359c22993f2618492287275a2ffa3710394aea17691bff2d61c683e3ea34ede8bff5fadd862705b5d9b6a9e8b
@@ -45,7 +45,7 @@ user_agent_parsers:
45
45
  - regex: '(Google-HTTP-Java-Client|Apache-HttpClient|http%20client|Python-urllib|HttpMonitor|TLSProber|WinHTTP|JNLP|okhttp)(?:[ /](\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
46
46
 
47
47
  # Bots
48
- - regex: '(1470\.net crawler|50\.nu|8bo Crawler Bot|Aboundex|Accoona-[A-z]+-Agent|AdsBot-Google(?:-[a-z]+)?|altavista|AppEngine-Google|archive.*?\.org_bot|archiver|Ask Jeeves|[Bb]ai[Dd]u[Ss]pider(?:-[A-Za-z]+)*|bingbot|BingPreview|blitzbot|BlogBridge|BoardReader(?: [A-Za-z]+)*|boitho.com-dc|BotSeer|\b\w*favicon\w*\b|\bYeti(?:-[a-z]+)?|Catchpoint bot|[Cc]harlotte|Checklinks|clumboot|Comodo HTTP\(S\) Crawler|Comodo-Webinspector-Crawler|ConveraCrawler|CRAWL-E|CrawlConvera|Daumoa(?:-feedfetcher)?|Feed Seeker Bot|findlinks|Flamingo_SearchEngine|FollowSite Bot|furlbot|Genieo|gigabot|GomezAgent|gonzo1|(?:[a-zA-Z]+-)?Googlebot(?:-[a-zA-Z]+)?|Google SketchUp|grub-client|gsa-crawler|heritrix|HiddenMarket|holmes|HooWWWer|htdig|ia_archiver|ICC-Crawler|Icarus6j|ichiro(?:/mobile)?|IconSurf|IlTrovatore(?:-Setaccio)?|InfuzApp|Innovazion Crawler|InternetArchive|IP2[a-z]+Bot|jbot\b|KaloogaBot|Kraken|Kurzor|larbin|LEIA|LesnikBot|Linguee Bot|LinkAider|LinkedInBot|Lite Bot|Llaut|lycos|Mail\.RU_Bot|masscan|masidani_bot|Mediapartners-Google|Microsoft .*? Bot|mogimogi|mozDex|MJ12bot|msnbot(?:-media *)?|msrbot|netresearch|Netvibes|NewsGator[^/]*|^NING|Nutch[^/]*|Nymesis|ObjectsSearch|Orbiter|OOZBOT|PagePeeker|PagesInventory|PaxleFramework|Peeplo Screenshot Bot|PlantyNet_WebRobot|Pompos|Read%20Later|Reaper|RedCarpet|Retreiver|Riddler|Rival IQ|scooter|Scrapy|Scrubby|searchsight|seekbot|semanticdiscovery|Simpy|SimplePie|SEOstats|SimpleRSS|SiteCon|Slackbot-LinkExpanding|Slack-ImgProxy|Slurp|snappy|Speedy Spider|Squrl Java|TheUsefulbot|ThumbShotsBot|Thumbshots\.ru|TwitterBot|WhatsApp|URL2PNG|Vagabondo|VoilaBot|^vortex|Votay bot|^voyager|WASALive.Bot|Web-sniffer|WebThumb|WeSEE:[A-z]+|WhatWeb|WIRE|WordPress|Wotbox|www\.almaden\.ibm\.com|Xenu(?:.s)? Link Sleuth|Xerka [A-z]+Bot|yacy(?:bot)?|Yahoo[a-z]*Seeker|Yahoo! Slurp|Yandex\w+|YodaoBot(?:-[A-z]+)?|YottaaMonitor|Yowedo|^Zao|^Zao-Crawler|ZeBot_www\.ze\.bz|ZooShot|ZyBorg)(?:[ /]v?(\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
48
+ - regex: '(1470\.net crawler|50\.nu|8bo Crawler Bot|Aboundex|Accoona-[A-z]+-Agent|AdsBot-Google(?:-[a-z]+)?|altavista|AppEngine-Google|archive.*?\.org_bot|archiver|Ask Jeeves|[Bb]ai[Dd]u[Ss]pider(?:-[A-Za-z]+)*|bingbot|BingPreview|blitzbot|BlogBridge|Bloglovin|BoardReader(?: [A-Za-z]+)*|boitho.com-dc|BotSeer|\b\w*favicon\w*\b|\bYeti(?:-[a-z]+)?|Catchpoint(?: bot)?|[Cc]harlotte|Checklinks|clumboot|Comodo HTTP\(S\) Crawler|Comodo-Webinspector-Crawler|ConveraCrawler|CRAWL-E|CrawlConvera|Daumoa(?:-feedfetcher)?|Feed Seeker Bot|Feedbin|findlinks|Flamingo_SearchEngine|FollowSite Bot|furlbot|Genieo|gigabot|GomezAgent|gonzo1|(?:[a-zA-Z]+-)?Googlebot(?:-[a-zA-Z]+)?|Google SketchUp|grub-client|gsa-crawler|heritrix|HiddenMarket|holmes|HooWWWer|htdig|ia_archiver|ICC-Crawler|Icarus6j|ichiro(?:/mobile)?|IconSurf|IlTrovatore(?:-Setaccio)?|InfuzApp|Innovazion Crawler|InternetArchive|IP2[a-z]+Bot|jbot\b|KaloogaBot|Kraken|Kurzor|larbin|LEIA|LesnikBot|Linguee Bot|LinkAider|LinkedInBot|Lite Bot|Llaut|lycos|Mail\.RU_Bot|masscan|masidani_bot|Mediapartners-Google|Microsoft .*? Bot|mogimogi|mozDex|MJ12bot|msnbot(?:-media *)?|msrbot|Mtps Feed Aggregation System|netresearch|Netvibes|NewsGator[^/]*|^NING|Nutch[^/]*|Nymesis|ObjectsSearch|Orbiter|OOZBOT|PagePeeker|PagesInventory|PaxleFramework|Peeplo Screenshot Bot|PlantyNet_WebRobot|Pompos|Qwantify|Read%20Later|Reaper|RedCarpet|Retreiver|Riddler|Rival IQ|scooter|Scrapy|Scrubby|searchsight|seekbot|semanticdiscovery|Simpy|SimplePie|SEOstats|SimpleRSS|SiteCon|Slackbot-LinkExpanding|Slack-ImgProxy|Slurp|snappy|Speedy Spider|Squrl Java|Stringer|TheUsefulbot|ThumbShotsBot|Thumbshots\.ru|Tiny Tiny RSS|TwitterBot|WhatsApp|URL2PNG|Vagabondo|VoilaBot|^vortex|Votay bot|^voyager|WASALive.Bot|Web-sniffer|WebThumb|WeSEE:[A-z]+|WhatWeb|WIRE|WordPress|Wotbox|www\.almaden\.ibm\.com|Xenu(?:.s)? Link Sleuth|Xerka [A-z]+Bot|yacy(?:bot)?|Yahoo[a-z]*Seeker|Yahoo! Slurp|Yandex\w+|YodaoBot(?:-[A-z]+)?|YottaaMonitor|Yowedo|^Zao|^Zao-Crawler|ZeBot_www\.ze\.bz|ZooShot|ZyBorg)(?:[ /]v?(\d+)(?:\.(\d+)(?:\.(\d+))?)?)?'
49
49
 
50
50
  # Bots General matcher 'name/0.0'
51
51
  - regex: '(?:\/[A-Za-z0-9\.]+)? *([A-Za-z0-9 \-_\!\[\]:]*(?:[Aa]rchiver|[Ii]ndexer|[Ss]craper|[Bb]ot|[Ss]pider|[Cc]rawl[a-z]*))/(\d+)(?:\.(\d+)(?:\.(\d+))?)?'
@@ -232,13 +232,30 @@ user_agent_parsers:
232
232
  - regex: '(SamsungBrowser)/(\d+)\.(\d+)'
233
233
  family_replacement: 'Samsung Internet'
234
234
 
235
+ # Seznam.cz browser (based on WebKit)
236
+ - regex: '(SznProhlizec)/(\d+)\.(\d+)(?:\.(\d+))?'
237
+ family_replacement: 'Seznam.cz'
238
+
239
+ # Coc Coc browser, based on Chrome (used in Vietnam)
240
+ - regex: '(coc_coc_browser)/(\d+)\.(\d+)(?:\.(\d+))?'
241
+ family_replacement: 'Coc Coc'
242
+
235
243
  # Baidu Browsers (desktop spoofs chrome & IE, explorer is mobile)
236
244
  - regex: '(baidubrowser)[/\s](\d+)(?:\.(\d+)(?:\.(\d+))?)?'
237
245
  family_replacement: 'Baidu Browser'
238
246
  - regex: '(FlyFlow)/(\d+)\.(\d+)'
239
247
  family_replacement: 'Baidu Explorer'
240
248
 
249
+ # MxBrowser is Maxthon. Must go before Mobile Chrome for Android
250
+ - regex: '(MxBrowser)/(\d+)\.(\d+)(?:\.(\d+))?'
251
+ family_replacement: 'Maxthon'
252
+
253
+ # Crosswalk must go before Mobile Chrome for Android
254
+ - regex: '(Crosswalk)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
255
+
241
256
  # Chrome Mobile
257
+ - regex: '; wv\).+(Chrome)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
258
+ family_replacement: 'Chrome Mobile WebView'
242
259
  - regex: '(CrMo)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
243
260
  family_replacement: 'Chrome Mobile'
244
261
  - regex: '(CriOS)/(\d+)\.(\d+)\.(\d+)\.(\d+)'
@@ -286,16 +303,22 @@ user_agent_parsers:
286
303
  # AOL Browser (IE-based)
287
304
  - regex: '(AOL) (\d+)\.(\d+); AOLBuild (\d+)'
288
305
 
289
- # MxBrowser is Maxthon
290
- - regex: '(MxBrowser)/(\d+)\.(\d+)(?:\.(\d+))?'
291
- family_replacement: 'Maxthon'
292
-
293
306
  #### END SPECIAL CASES TOP ####
294
307
 
295
308
  #### MAIN CASES - this catches > 50% of all browsers ####
296
309
 
310
+
311
+ # Slack desktop client (needs to be before Apple Mail, Electron, and Chrome as it gets wrongly detected on Mac OS otherwise)
312
+ - regex: '(Slack_SSB)/(\d+)\.(\d+)\.(\d+)'
313
+ family_replacement: 'Slack Desktop Client'
314
+
315
+ # HipChat provides a version on Mac, but not on Windows.
316
+ # Needs to be before Chrome on Windows, and AppleMail on Mac.
317
+ - regex: '(HipChat)/?(\d+)?'
318
+ family_replacement: 'HipChat Desktop Client'
319
+
297
320
  # Browser/major_version.minor_version.beta_version
298
- - regex: '\b(MobileIron|Crosswalk|FireWeb|Jasmine|ANTGalio|Midori|Fresco|Lobo|PaleMoon|Maxthon|Lynx|OmniWeb|Dillo|Camino|Demeter|Fluid|Fennec|Epiphany|Shiira|Sunrise|Spotify|Flock|Netscape|Lunascape|WebPilot|NetFront|Netfront|Konqueror|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|Opera Mini|iCab|NetNewsWire|ThunderBrowse|Iris|UP\.Browser|Bunjalloo|Google Earth|Raven for Mac|Openwave|MacOutlook|Electron)/(\d+)\.(\d+)\.(\d+)'
321
+ - regex: '\b(MobileIron|FireWeb|Jasmine|ANTGalio|Midori|Fresco|Lobo|PaleMoon|Maxthon|Lynx|OmniWeb|Dillo|Camino|Demeter|Fluid|Fennec|Epiphany|Shiira|Sunrise|Spotify|Flock|Netscape|Lunascape|WebPilot|NetFront|Netfront|Konqueror|SeaMonkey|Kazehakase|Vienna|Iceape|Iceweasel|IceWeasel|Iron|K-Meleon|Sleipnir|Galeon|GranParadiso|Opera Mini|iCab|NetNewsWire|ThunderBrowse|Iris|UP\.Browser|Bunjalloo|Google Earth|Raven for Mac|Openwave|MacOutlook|Electron)/(\d+)\.(\d+)\.(\d+)'
299
322
 
300
323
  # Outlook 2007
301
324
  - regex: 'Microsoft Office Outlook 12\.\d+\.\d+|MSOffice 12'
@@ -344,7 +367,7 @@ user_agent_parsers:
344
367
  - regex: '(Vivaldi)/(\d+)\.(\d+)\.(\d+)'
345
368
 
346
369
  # Edge/major_version.minor_version
347
- - regex: '(Edge)/(\d+)\.(\d+)'
370
+ - regex: '(Edge)/(\d+)(?:\.(\d+))?'
348
371
 
349
372
  # Brave Browser https://brave.com/
350
373
  - regex: '(brave)/(\d+)\.(\d+)\.(\d+) Chrome'
@@ -418,9 +441,6 @@ user_agent_parsers:
418
441
  - regex: '(MSIE) (\d+)\.(\d+).*XBLWP7'
419
442
  family_replacement: 'IE Large Screen'
420
443
 
421
- # Slack desktop client (needs to be before Apple Mail as it gets wrongly detected on Mac OS otherwise)
422
- - regex: '(Slack_SSB)/(\d+)\.(\d+)\.(\d+)'
423
- family_replacement: 'Slack Desktop Client'
424
444
 
425
445
  #### END MAIN CASES ####
426
446
 
@@ -4250,7 +4270,7 @@ device_parsers:
4250
4270
  #########
4251
4271
  # Noka Windows Phones
4252
4272
  #########
4253
- - regex: 'Windows Phone [^;]+; .*?IEMobile/[^;\)]+[;\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:NOKIA|Nokia)[^;]*; *(?:NOKIA ?|Nokia ?|LUMIA ?|[Ll]umia ?)*(\d{3,}[^;\)]*)'
4273
+ - regex: 'Windows Phone [^;]+; .*?IEMobile/[^;\)]+[;\)] ?(?:ARM; ?Touch; ?|Touch; ?)?(?:rv:11; )?(?:NOKIA|Nokia)[^;]*; *(?:NOKIA ?|Nokia ?|LUMIA ?|[Ll]umia ?)*(\d{3,}[^;\)]*)'
4254
4274
  device_replacement: 'Lumia $1'
4255
4275
  brand_replacement: 'Nokia'
4256
4276
  model_replacement: 'Lumia $1'
@@ -4883,7 +4903,7 @@ device_parsers:
4883
4903
  ##########
4884
4904
  # Spiders (this is hack...)
4885
4905
  ##########
4886
- - regex: '(bot|zao|borg|DBot|oegp|silk|Xenu|zeal|^NING|CCBot|crawl|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|^Java/|^JNLP/|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|spider|msnbot|msrbot|vortex|^vortex|crawler|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|bingbot|BingPreview|openbot|gigabot|furlbot|polybot|seekbot|^voyager|archiver|Icarus6j|mogimogi|Netvibes|blitzbot|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|SeznamBot|ProoXiBot|wsr\-agent|Squrl Java|EtaoSpider|PaperLiBot|SputnikBot|A6\-Indexer|netresearch|searchsight|baiduspider|YisouSpider|ICC\-Crawler|http%20client|Python-urllib|dataparksearch|converacrawler|Screaming Frog|AppEngine-Google|YahooCacheSystem|fast\-webcrawler|Sogou Pic Spider|semanticdiscovery|Innovazion Crawler|facebookexternalhit|Google.*/\+/web/snippet|Google-HTTP-Java-Client|BlogBridge|IlTrovatore-Setaccio|InternetArchive|GomezAgent|WebThumbnail|heritrix|NewsGator|PagePeeker|Reaper|ZooShot|holmes|NL-Crawler|Pingdom|StatusCake|WhatsApp|masscan)'
4906
+ - regex: '(bot|zao|borg|DBot|oegp|silk|Xenu|zeal|^NING|CCBot|crawl|htdig|lycos|slurp|teoma|voila|yahoo|Sogou|CiBra|Nutch|^Java/|^JNLP/|Daumoa|Genieo|ichiro|larbin|pompos|Scrapy|snappy|speedy|spider|msnbot|msrbot|vortex|^vortex|crawler|favicon|indexer|Riddler|scooter|scraper|scrubby|WhatWeb|WinHTTP|bingbot|BingPreview|openbot|gigabot|furlbot|polybot|seekbot|^voyager|archiver|Icarus6j|mogimogi|Netvibes|blitzbot|altavista|charlotte|findlinks|Retreiver|TLSProber|WordPress|SeznamBot|ProoXiBot|wsr\-agent|Squrl Java|EtaoSpider|PaperLiBot|SputnikBot|A6\-Indexer|netresearch|searchsight|baiduspider|YisouSpider|ICC\-Crawler|http%20client|Python-urllib|dataparksearch|converacrawler|Screaming Frog|AppEngine-Google|YahooCacheSystem|fast\-webcrawler|Sogou Pic Spider|semanticdiscovery|Innovazion Crawler|facebookexternalhit|Google.*/\+/web/snippet|Google-HTTP-Java-Client|BlogBridge|IlTrovatore-Setaccio|InternetArchive|GomezAgent|WebThumbnail|heritrix|NewsGator|PagePeeker|Reaper|ZooShot|holmes|NL-Crawler|Pingdom|StatusCake|WhatsApp|masscan|Google Web Preview|Qwantify)'
4887
4907
  regex_flag: 'i'
4888
4908
  device_replacement: 'Spider'
4889
4909
  brand_replacement: 'Spider'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: user_agent_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Lucas
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-05-07 00:00:00.000000000 Z
11
+ date: 2017-07-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: A simple, comprehensive Ruby gem for parsing user agent strings with
14
14
  the help of BrowserScope's UA database