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.

Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/Readme.md +12 -0
  3. data/bin/user_agent_parser +0 -2
  4. metadata +4 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a721f503d9e59cd7813d9c18db733ef6ecb24c5e
4
- data.tar.gz: 7acb12c8b075c1f2cae73b8e3ce29023e5bae740
3
+ metadata.gz: 63fba72411cd6f5a6abb1a1fc066479f60b50d14
4
+ data.tar.gz: a169357b37a9dbe604c73cd1e10414324c139b4a
5
5
  SHA512:
6
- metadata.gz: d929dfb2af11c55a29a51cb81ae1a3210327275aed9c45c4055374d95d7d1957d6a446ec6cb3c78b9db90911ca7a041d66ca03ecae9e72a0fa423267005d1bc6
7
- data.tar.gz: 482194e192ffaac970357316d7ee7976b1add1c18d922de35210d82018d4b3dd003723072abb6f37556c24011a72f20b2cb1820c5af06cad7ec71696485eee01
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
 
@@ -1,7 +1,5 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- $: << File.expand_path('../../lib', File.readlink(__FILE__))
4
-
5
3
  require 'optparse'
6
4
 
7
5
  require 'user_agent_parser'
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.3
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.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