aua 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGES.md +7 -1
- data/lib/aua/agents/safari.rb +3 -2
- data/lib/aua/version.rb +1 -1
- data/spec/aua_spec.rb +2 -0
- 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: 5f0331d20167670922477dea635073e93cde5963
|
4
|
+
data.tar.gz: add2fdf9d9a138c4d3392ef8b93b6b5039e81b49
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81e291279385ab2fbd0e55d9c44b0e023656ae60bcd564249b03157a8121f7f28e7935473cd4c15b0dfbff1634fea0e5918dc6d7412a763db1dd51e6aa8dc86a
|
7
|
+
data.tar.gz: 7f153e8e0751c762fb96a4cc9d1de0cbdc9e5b5f73faeb4bcb8940cfbbac1727bfc71bd20c7059a0edd834795ad39ded7840eb67bef895597bcb496471c0f6aa
|
data/CHANGES.md
CHANGED
@@ -1,6 +1,12 @@
|
|
1
1
|
### dev
|
2
2
|
|
3
|
-
[full changelog](http://github.com/yolk/aua/compare/v0.2.
|
3
|
+
[full changelog](http://github.com/yolk/aua/compare/v0.2.5...master)
|
4
|
+
|
5
|
+
### 0.2.5 / 2015-08-05
|
6
|
+
|
7
|
+
[full changelog](http://github.com/yolk/aua/compare/v0.2.4...v0.2.5)
|
8
|
+
|
9
|
+
* Fixed FluidApp detection
|
4
10
|
|
5
11
|
### 0.2.4 / 2015-08-05
|
6
12
|
|
data/lib/aua/agents/safari.rb
CHANGED
@@ -46,7 +46,7 @@ module Aua::Agents::Safari
|
|
46
46
|
def name
|
47
47
|
@name ||= begin
|
48
48
|
return :MobileSafari if products.include?("Mobile") || products[0] == "MobileSafari"
|
49
|
-
return :Fluid if products.include?("Fluid")
|
49
|
+
return :Fluid if products.include?("Fluid") || products.include?("FluidApp")
|
50
50
|
return :OmniWeb if products.include?("OmniWeb")
|
51
51
|
:Safari
|
52
52
|
end
|
@@ -55,9 +55,10 @@ module Aua::Agents::Safari
|
|
55
55
|
def version
|
56
56
|
@version ||= begin
|
57
57
|
case name
|
58
|
-
when :
|
58
|
+
when :OmniWeb
|
59
59
|
version_of(name)
|
60
60
|
else
|
61
|
+
(name == :Fluid && version_of(:Fluid)) ||
|
61
62
|
version_of("Version") || BUILDS[version_of("Safari")] ||
|
62
63
|
version_of("Mobile") || version_of("MobileSafari") || version_of("Safari")
|
63
64
|
end
|
data/lib/aua/version.rb
CHANGED
data/spec/aua_spec.rb
CHANGED
@@ -135,6 +135,8 @@ describe Aua do
|
|
135
135
|
{ :type => :Browser, :name => :Safari, :version => "6533.19.4", :major_version => "6533.19", :os_name => :MacOSX, :os_version => "10.6.6", :platform => :Macintosh },
|
136
136
|
|
137
137
|
# Safari based
|
138
|
+
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_10_3) AppleWebKit/600.5.17 (KHTML, like Gecko) FluidApp Version/2156 Safari/600.5.17" =>
|
139
|
+
{ :type => :Browser, :name => :Fluid, :version => "2156", :os_name => :MacOSX, :os_version => "10.10.3", :platform => :Macintosh },
|
138
140
|
"Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; de-de) AppleWebKit/533.18.1 (KHTML, like Gecko) Fluid/0.9.6 Safari/533.18.1" =>
|
139
141
|
{ :type => :Browser, :name => :Fluid, :version => "0.9.6", :os_name => :MacOSX, :os_version => "10.5.8", :platform => :Macintosh },
|
140
142
|
"Mozilla/5.0 (Macintosh; U; PPC Mac OS X 10_5_8; de-de) AppleWebKit/533.17.8 (KHTML, like Gecko) Fluid/0.9.6 Safari/533.17.8" =>
|