woothee 1.10.0 → 1.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/woothee/browser.rb +9 -0
- data/lib/woothee/dataset.rb +4 -1
- data/lib/woothee/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b7cdd891b50b1747dc1485d82f748c0c9342bc4351d75d94c3d93f6a566f064
|
4
|
+
data.tar.gz: 2b22b679d2f3f912d24a5763109e1f1b90bbc423edc5a21906b6a66836e3095c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 769a3ae73ffe492a4b697582a726b66fed39e02004aef51befe004c810360c884916c3210c23e89bec597836fcdb3b1183d0bf70d9ade25d792b131d455ec71f
|
7
|
+
data.tar.gz: 57562b8017d8cbb80deaac05b6cfc384c3ef27d45519426439c69163227a4688db73a7fa6960db8ce4757c3594b5c09f3a4507364f35a554a69297c6a5607313
|
data/lib/woothee/browser.rb
CHANGED
@@ -74,6 +74,15 @@ module Woothee::Browser
|
|
74
74
|
return true
|
75
75
|
end
|
76
76
|
|
77
|
+
# Google Search App
|
78
|
+
if ua =~ /GSA\/([.0-9]+)/o
|
79
|
+
version = $1
|
80
|
+
p(dataset: Woothee::DataSet.get("GSA"), version: version)
|
81
|
+
update_map(result, Woothee::DataSet.get("GSA"))
|
82
|
+
update_version(result, version)
|
83
|
+
return true
|
84
|
+
end
|
85
|
+
|
77
86
|
# Safari
|
78
87
|
if ua =~ /Version\/([.0-9]+)/o
|
79
88
|
version = $1
|
data/lib/woothee/dataset.rb
CHANGED
@@ -35,7 +35,7 @@ end
|
|
35
35
|
|
36
36
|
module Woothee::DataSet
|
37
37
|
DATASET = {}
|
38
|
-
# GENERATED from dataset.yaml at
|
38
|
+
# GENERATED from dataset.yaml at Tue Mar 17 20:33:08 JST 2020 by tagomoris
|
39
39
|
obj = {:label => 'MSIE', :name => 'Internet Explorer', :type => :browser}
|
40
40
|
obj[:vendor] = 'Microsoft'
|
41
41
|
DATASET[obj[:label]] = obj
|
@@ -60,6 +60,9 @@ module Woothee::DataSet
|
|
60
60
|
obj = {:label => 'Sleipnir', :name => 'Sleipnir', :type => :browser}
|
61
61
|
obj[:vendor] = 'Fenrir Inc.'
|
62
62
|
DATASET[obj[:label]] = obj
|
63
|
+
obj = {:label => 'GSA', :name => 'Google Search App', :type => :browser}
|
64
|
+
obj[:vendor] = 'Google'
|
65
|
+
DATASET[obj[:label]] = obj
|
63
66
|
obj = {:label => 'Webview', :name => 'Webview', :type => :browser}
|
64
67
|
obj[:vendor] = 'OS vendor'
|
65
68
|
DATASET[obj[:label]] = obj
|
data/lib/woothee/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woothee
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TAGOMORI Satoshi
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
85
85
|
- !ruby/object:Gem::Version
|
86
86
|
version: '0'
|
87
87
|
requirements: []
|
88
|
-
rubygems_version: 3.
|
88
|
+
rubygems_version: 3.1.2
|
89
89
|
signing_key:
|
90
90
|
specification_version: 4
|
91
91
|
summary: Cross-language UserAgent classifier library, ruby implementation
|