browser 0.9.0 → 0.9.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browser.rb +1 -0
- data/lib/browser/version.rb +1 -1
- data/test/browser_spec.rb +2 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eddee2b6db8afdf0d9c36a8a74f9517b76c215c7
|
4
|
+
data.tar.gz: 74c6356881cef0f1caeb310286e10a5741cab185
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e536d711e96ccb39895a5bdde0d6c7425c740fe2ab81201a8db257f56b1e26d586388d339ff12b49a09716e0876188a938becf50c20d96225a07008054eaa239
|
7
|
+
data.tar.gz: 18c18599e9891ada9c6dadeaf42181390037f53830c8fe541efeeb307646716ab80f37bc071cb112ca205416a48531cf39d14b0a1259bf1fdbc9709498ee8c27
|
data/lib/browser.rb
CHANGED
@@ -91,6 +91,7 @@ class Browser
|
|
91
91
|
rules << -> b { b.webkit? }
|
92
92
|
rules << -> b { b.firefox? && b.version.to_i >= 17 }
|
93
93
|
rules << -> b { b.ie? && b.version.to_i >= 9 }
|
94
|
+
rules << -> b { b.edge? }
|
94
95
|
rules << -> b { b.opera? && b.version.to_i >= 12 }
|
95
96
|
rules << -> b { b.firefox? && b.tablet? && b.android? && b.version.to_i >= 14 }
|
96
97
|
end
|
data/lib/browser/version.rb
CHANGED
data/test/browser_spec.rb
CHANGED
@@ -819,6 +819,7 @@ describe Browser do
|
|
819
819
|
assert_equal "12", @browser.version
|
820
820
|
assert @browser.windows10?
|
821
821
|
assert @browser.edge?
|
822
|
+
assert @browser.modern?
|
822
823
|
refute @browser.webkit?
|
823
824
|
refute @browser.chrome?
|
824
825
|
refute @browser.safari?
|
@@ -835,6 +836,7 @@ describe Browser do
|
|
835
836
|
refute @browser.windows10?
|
836
837
|
assert @browser.windows_phone?
|
837
838
|
assert @browser.edge?
|
839
|
+
assert @browser.modern?
|
838
840
|
assert @browser.mobile?
|
839
841
|
refute @browser.webkit?
|
840
842
|
refute @browser.chrome?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browser
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.9.
|
4
|
+
version: 0.9.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|