fluent-plugin-ua-parser 0.0.1 → 0.1.0
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.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/fluent-plugin-ua-parser.gemspec +1 -1
- data/lib/fluent/plugin/filter_ua_parser.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 0bfaad885e169c908b5b18e1728c562d4a79e52e
|
|
4
|
+
data.tar.gz: 8fe29abe85417832006f06e754d0c32cc38f0816
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 29830d7fcff2f8a16571197ec9a611800ccc628ad400b9bb17a75be5a9f0137c3ba099a56990e844a236ce806e61e6699f9bf6c9065c19b2f5cd8a2f8f564df9
|
|
7
|
+
data.tar.gz: c4b72e1c42ab599f1431054d5b0a5379aa823eb9ec60ea6b4ceffff24605b0900e3d947d355498512019ca43af6648259968ba5e7e0a7d933f212352933f97db
|
data/README.md
CHANGED
|
@@ -75,7 +75,7 @@ access.nginx: {
|
|
|
75
75
|
Assuming following inputs are coming:
|
|
76
76
|
|
|
77
77
|
```
|
|
78
|
-
access.
|
|
78
|
+
access.apache: {
|
|
79
79
|
"remote_addr":"10.20.30.40",
|
|
80
80
|
"scheme":"http", "method":"GET", "host":"example.com",
|
|
81
81
|
"path":"/", "query":"-", "req_bytes":200, "referer":"-",
|
|
@@ -87,7 +87,7 @@ access.nginx: {
|
|
|
87
87
|
then output bocomes as belows:
|
|
88
88
|
|
|
89
89
|
```
|
|
90
|
-
access.
|
|
90
|
+
access.apache: {
|
|
91
91
|
"remote_addr":"10.20.30.40",
|
|
92
92
|
"scheme":"http", "method":"GET", "host":"example.com",
|
|
93
93
|
"path":"/", "query":"-", "req_bytes":200, "referer":"-",
|
|
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
|
4
4
|
|
|
5
5
|
Gem::Specification.new do |spec|
|
|
6
6
|
spec.name = "fluent-plugin-ua-parser"
|
|
7
|
-
spec.version = "0.0
|
|
7
|
+
spec.version = "0.1.0"
|
|
8
8
|
spec.authors = ["Yuri Umezaki"]
|
|
9
9
|
spec.email = ["bungoume@gmail.com"]
|
|
10
10
|
spec.homepage = "https://github.com/bungoume/fluent-plugin-ua-parser"
|
|
@@ -41,7 +41,7 @@ module Fluent
|
|
|
41
41
|
|
|
42
42
|
def get_ua_detail(ua_string)
|
|
43
43
|
ua = @parser.parse(ua_string)
|
|
44
|
-
data = {"browser"=>{}, "os"=>{}, "device"=>""
|
|
44
|
+
data = {"browser"=>{}, "os"=>{}, "device"=>""}
|
|
45
45
|
return data if ua.nil?
|
|
46
46
|
data['browser']['family'] = ua.family
|
|
47
47
|
data['browser']['version'] = ua.version.to_s
|