user_agent_parser 2.1.3 → 2.1.4
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of user_agent_parser might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Readme.md +12 -0
- data/bin/user_agent_parser +0 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63fba72411cd6f5a6abb1a1fc066479f60b50d14
|
4
|
+
data.tar.gz: a169357b37a9dbe604c73cd1e10414324c139b4a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4de6f103556c10c73080d12f6fda1db551a7a0b487a5ba0812fd11bac9db7b6c9773e57458843d2ce151c1717377eea1567bde79143f6f146b673eda29ef8da
|
7
|
+
data.tar.gz: dac63ba14206459b3ed336586c9b1a7a330b54b6be76297704f0313c240a699c591ed1f6ba854c2cd0db613b6479d8435f7c0c2d22b54fc5d6138cde2e6d3a8e
|
data/Readme.md
CHANGED
@@ -74,6 +74,17 @@ or when instantiating a `UserAgentParser::Parser`:
|
|
74
74
|
UserAgentParser::Parser.new(patterns_path: '/some/path/to/regexes.yaml').parse(ua_string)
|
75
75
|
```
|
76
76
|
|
77
|
+
## Binary: user_agent_parser
|
78
|
+
|
79
|
+
There is a binary called `user_agent_parser` that will read from
|
80
|
+
standard input, parse each line and print the result, for example:
|
81
|
+
|
82
|
+
```ruby
|
83
|
+
$ cat SOME-FILE.json | user_agent_parser --format '%n %M' | distribution
|
84
|
+
```
|
85
|
+
|
86
|
+
See `user_agent_parser -h` for more information.
|
87
|
+
|
77
88
|
## Contributing
|
78
89
|
|
79
90
|
1. Fork
|
@@ -94,6 +105,7 @@ All accepted pull requests will earn you commit and release rights.
|
|
94
105
|
* Some new feature
|
95
106
|
* Some new bug fix
|
96
107
|
3. `rake release`
|
108
|
+
4. Create a [new Github release](https://github.com/toolmantim/user_agent_parser/releases/new)
|
97
109
|
|
98
110
|
## License
|
99
111
|
|
data/bin/user_agent_parser
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: user_agent_parser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Lucas
|
@@ -13,7 +13,8 @@ dependencies: []
|
|
13
13
|
description: A simple, comprehensive Ruby gem for parsing user agent strings with
|
14
14
|
the help of BrowserScope's UA database
|
15
15
|
email: t@toolmantim.com
|
16
|
-
executables:
|
16
|
+
executables:
|
17
|
+
- user_agent_parser
|
17
18
|
extensions: []
|
18
19
|
extra_rdoc_files: []
|
19
20
|
files:
|
@@ -48,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
48
49
|
version: '0'
|
49
50
|
requirements: []
|
50
51
|
rubyforge_project:
|
51
|
-
rubygems_version: 2.2.
|
52
|
+
rubygems_version: 2.2.1
|
52
53
|
signing_key:
|
53
54
|
specification_version: 4
|
54
55
|
summary: A simple, comprehensive Ruby gem for parsing user agent strings with the
|