useragent 0.15.0 → 0.15.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.
- checksums.yaml +4 -4
- data/lib/user_agent/browsers/edge.rb +25 -0
- metadata +2 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 491061b798412424d440fb4a86bd93124721889a
|
|
4
|
+
data.tar.gz: 90ba94b160695015f7d7e0319432c480f3cb1651
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d4616fe7b1431890a90c5bab33a0a09bf2c16530278388e37bd75413970ca40b8dac9b335b99878513b44f7f313cbcfcecaac10854d69420efdbd45f8295c77b
|
|
7
|
+
data.tar.gz: d7bfde5c65cf1375ea73c9d48476a763ec536cea388b7366344ea1403fab8960d6bfadba31f169929805ae26b91148eaee988791e9761989463ef44c2a47ec0b
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
class UserAgent
|
|
2
|
+
module Browsers
|
|
3
|
+
class Edge < Base
|
|
4
|
+
def self.extend?(agent)
|
|
5
|
+
agent.last && agent.last.product == "Edge"
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
def browser
|
|
9
|
+
"Edge"
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
def version
|
|
13
|
+
last.version
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def platform
|
|
17
|
+
"Windows"
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def os
|
|
21
|
+
OperatingSystems.normalize_os(application.comment.join('; ').match(/Windows NT [\d\.]+|Windows Phone (OS )?[\d\.]+/).to_s)
|
|
22
|
+
end
|
|
23
|
+
end
|
|
24
|
+
end
|
|
25
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: useragent
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.15.
|
|
4
|
+
version: 0.15.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Joshua Peek
|
|
@@ -53,6 +53,7 @@ files:
|
|
|
53
53
|
- lib/user_agent/browsers/apple_core_media.rb
|
|
54
54
|
- lib/user_agent/browsers/base.rb
|
|
55
55
|
- lib/user_agent/browsers/chrome.rb
|
|
56
|
+
- lib/user_agent/browsers/edge.rb
|
|
56
57
|
- lib/user_agent/browsers/gecko.rb
|
|
57
58
|
- lib/user_agent/browsers/internet_explorer.rb
|
|
58
59
|
- lib/user_agent/browsers/itunes.rb
|