referer-parser 0.0.3 → 0.1.1
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.
- data/README.md +5 -3
- data/data/referers.yml +3414 -0
- data/lib/referer-parser/errors.rb +2 -2
- data/lib/referer-parser/referer.rb +30 -15
- data/lib/referer-parser/referers.rb +11 -9
- data/lib/referer-parser/version.rb +5 -5
- data/lib/referer-parser.rb +2 -2
- data/referer-parser.gemspec +4 -4
- data/spec/referer-spec.rb +25 -3
- metadata +40 -52
- data/data/search.yml +0 -2846
data/README.md
CHANGED
@@ -2,7 +2,9 @@
|
|
2
2
|
|
3
3
|
This is the Ruby implementation of [referer-parser] [referer-parser], the library for extracting search marketing data from referer _(sic)_ URLs.
|
4
4
|
|
5
|
-
The implementation uses the shared 'database' of known
|
5
|
+
The implementation uses the shared 'database' of known referers found in [`referers.yml`] [referers-yml].
|
6
|
+
|
7
|
+
**Currently the Ruby library only extracts search engine referers - it needs updating with the additional functionality now found in the Java/Scala version.**
|
6
8
|
|
7
9
|
## Installation
|
8
10
|
|
@@ -46,7 +48,7 @@ puts r.uri.host # => 'www.google.com'
|
|
46
48
|
|
47
49
|
## Copyright and license
|
48
50
|
|
49
|
-
The referer-parser Ruby library is copyright 2012
|
51
|
+
The referer-parser Ruby library is copyright 2012-2013 Snowplow Analytics Ltd.
|
50
52
|
|
51
53
|
Licensed under the [Apache License, Version 2.0] [license] (the "License");
|
52
54
|
you may not use this software except in compliance with the License.
|
@@ -58,6 +60,6 @@ See the License for the specific language governing permissions and
|
|
58
60
|
limitations under the License.
|
59
61
|
|
60
62
|
[referer-parser]: https://github.com/snowplow/referer-parser
|
61
|
-
[
|
63
|
+
[referers-yml]: https://github.com/snowplow/referer-parser/blob/master/referers.yml
|
62
64
|
|
63
65
|
[license]: http://www.apache.org/licenses/LICENSE-2.0
|