browser_warrior 0.12.0 → 0.13.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/browser_warrior.rb +9 -10
- data/lib/browser_warrior/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4ef0ca3c30802cc9e653f3f4e5a18967dbdce754d93ecc957c5948cd82b2c29
|
4
|
+
data.tar.gz: 9e0c0f5b4fdfb31d021065567427d57e123f2b3d952598a108b72a79e77df3df
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 62d0be4e930d8ecedc8462060424c3e89d9a920513e9bb5917711ccbdd6bc5e4bf669d585a25f68d4421c6d1441da9b863e98c8303fa3a551be14c33f2d381b4
|
7
|
+
data.tar.gz: b301b1ab2e98ced5852205aa505ea5d68639958572766338a89dc8e91fc3e85817860f29728592fa8f377a63bb514619ea05937086cf8a01197086f634951407
|
data/lib/browser_warrior.rb
CHANGED
@@ -44,16 +44,15 @@ module BrowserWarrior
|
|
44
44
|
# Allow weixin callback
|
45
45
|
next true if browser.platform.other?
|
46
46
|
|
47
|
-
is_modern_browser =
|
48
|
-
browser.chrome?(">= 65")
|
49
|
-
browser.safari?(">= 10")
|
50
|
-
browser.firefox?(">= 52")
|
51
|
-
browser.ie?(">= 11") && !browser.compatibility_view
|
52
|
-
browser.edge?(">= 15")
|
53
|
-
browser.opera?(">= 50")
|
54
|
-
browser.facebook?
|
55
|
-
|
56
|
-
&& browser.webkit_full_version.to_i >= 602
|
47
|
+
is_modern_browser = [
|
48
|
+
browser.chrome?(">= 65"),
|
49
|
+
browser.safari?(">= 10"),
|
50
|
+
browser.firefox?(">= 52"),
|
51
|
+
browser.ie?(">= 11") && !browser.compatibility_view?,
|
52
|
+
browser.edge?(">= 15"),
|
53
|
+
browser.opera?(">= 50"),
|
54
|
+
browser.facebook? && browser.safari_webapp_mode? && browser.webkit_full_version.to_i >= 602
|
55
|
+
].any?
|
57
56
|
|
58
57
|
if ! is_modern_browser
|
59
58
|
next false
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: browser_warrior
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.13.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- yafeilee
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-03-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|