Readme.md in user_agent_parser-2.2.0 vs Readme.md in user_agent_parser-2.3.0
- old
+ new
@@ -1,11 +1,12 @@
-# UserAgentParser [![Build Status](https://secure.travis-ci.org/toolmantim/user_agent_parser.png?branch=master)](http://travis-ci.org/toolmantim/user_agent_parser)
+# UserAgentParser [![Build Status](https://secure.travis-ci.org/ua-parser/uap-ruby.png?branch=master)](http://travis-ci.org/ua-parser/uap-ruby)
-UserAgentParser is a simple, comprehensive Ruby gem for parsing user agent strings. It uses [BrowserScope](http://www.browserscope.org/)'s [parsing patterns](https://github.com/tobie/ua-parser).
+UserAgentParser is a simple, comprehensive Ruby gem for parsing user agent strings. It uses [BrowserScope](http://www.browserscope.org/)'s [parsing patterns](https://github.com/ua-parser/uap-core).
## Supported Rubies
+* Ruby 2.2
* Ruby 2.1
* Ruby 2.0
* Ruby 1.9.3
* Ruby 1.9.2
* JRuby
@@ -62,11 +63,11 @@
end
```
## The pattern database
-The [ua-parser database](https://github.com/tobie/ua-parser/blob/master/regexes.yaml) is included via a [git submodule](http://help.github.com/submodules/). To update the database the submodule needs to be updated and the gem re-released (pull requests for this are very welcome!).
+The [ua-parser database](https://github.com/ua-parser/uap-core/blob/master/regexes.yaml) is included via a [git submodule](http://help.github.com/submodules/). To update the database the submodule needs to be updated and the gem re-released (pull requests for this are very welcome!).
You can also specify the path to your own, updated and/or customised `regexes.yaml` file as a second argument to `UserAgentParser.parse`:
```ruby
UserAgentParser.parse(ua_string, patterns_path: '/some/path/to/regexes.yaml')
@@ -76,17 +77,21 @@
```ruby
UserAgentParser::Parser.new(patterns_path: '/some/path/to/regexes.yaml').parse(ua_string)
```
-## Binary: user_agent_parser
+## Command line tool
-There is a binary called `user_agent_parser` that will read from
+The gem incldes a `user_agent_parser` bin command which will read from
standard input, parse each line and print the result, for example:
-```ruby
-$ cat SOME-FILE.json | user_agent_parser --format '%n %M' | distribution
+```bash
+$ cat > SOME-FILE-WITH-USER-AGENTS.txt
+USER_AGENT_1
+USER_AGENT_2
+...
+$ cat SOME-FILE-WITH-USER-AGENTS.txt | user_agent_parser --format '%f %M' | distribution
```
See `user_agent_parser -h` for more information.
## Contributing
@@ -107,10 +112,10 @@
Changelog:
* Some new feature
* Some new bug fix
3. `rake release`
-4. Create a [new Github release](https://github.com/toolmantim/user_agent_parser/releases/new)
+4. Create a [new Github release](https://github.com/ua-parser/uap-ruby/releases/new)
## License
MIT