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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6689e944b498fc72ad1241de2f9223cb76e8250d
4
- data.tar.gz: ad1a27023be7348159a1f551e3f4f58209c414d3
3
+ metadata.gz: 5f0331d20167670922477dea635073e93cde5963
4
+ data.tar.gz: add2fdf9d9a138c4d3392ef8b93b6b5039e81b49
5
5
  SHA512:
6
- metadata.gz: 05d6889cb302b6089f8f8bbecd1150ce0ab8a9a09e2f42d090e42d58145784285a3cbaf50a808d6181a191d99564d2030538962ed1080775c536c8aa922e688e
7
- data.tar.gz: d8edad5f3cc8236cce92405b9e5c52761d18e683dbaa8e6a115350cc6eef052574582244f814460c0ae8ee7cc18e0a4b6e21b52b88866059b88202880173c07c
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.4...master)
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
 
@@ -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 :Fluid, :OmniWeb
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
@@ -1,3 +1,3 @@
1
1
  class Aua
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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" =>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aua
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sebastian Munz