uap-ruby icon indicating copy to clipboard operation
uap-ruby copied to clipboard

A simple, comprehensive Ruby gem for parsing user agent strings with the help of BrowserScope's UA database

Results 15 uap-ruby issues
Sort by recently updated
recently updated
newest added

`regexes.yaml` contains quite a lot of duplicated strings. By passing `freeze: true` to `YAML.load` we allow the parser to deduplicate them. Additionally, the regexes source and flags are never used,...

Allow passing multiple pattern databases as an array to the new `patterns_paths` argument - Support `patterns_path` argument but deprecate `pattern_path` attribute accessor - Add new `patterns_paths` array argument to enable...

Fixes #66 Make sure `useragent` string without spaces is present in the gem description.

It causes unexpected performance problems (#4 #5 #13). The simpler `UserAgentParser.new.parse` should be less confusing. A backwards incompatible change for v3.

User Agent: ``` Mozilla/5.0 (Linux; Android 10; Redm Note 9S) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.66 Mobile Safari/537.36 ```

The README gives the following example: ```ruby UserAgentParser.parse "Mozilla/5.0 (iPad; CPU OS 10_2_1 like Mac OS X) AppleWebKit/600.1.4 (KHTML, like Gecko) GSA/23.1.148956103 Mobile/14D27 Safari/600.1.4" #=> ``` however, with the current...

'Mozilla/5.0 (compatible; MSIE 10.6; Windows NT 6.1; Trident/5.0; InfoPath.2; SLCC1; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 2.0.50727) 3gpp-gba UNTRUSTED/1.0' is returning : #

https://rubygems.org/search?utf8=%E2%9C%93&query=useragent Can be solved by adding "useragent" without spaces into the gem description

Hi, can you give additional functionality to detect is UA string indicates a bot or not, something like `ua.is_bot?` ?? Or let me know if there's something like that built...