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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f29797804311503897ef43506edd345549145b1e9fe852d298631886813cf3ea
4
- data.tar.gz: 9dbb2079ba1e68183506cfb88a59cdedcf3203b6f30f6370e8c8a2be0c675396
3
+ metadata.gz: b4ef0ca3c30802cc9e653f3f4e5a18967dbdce754d93ecc957c5948cd82b2c29
4
+ data.tar.gz: 9e0c0f5b4fdfb31d021065567427d57e123f2b3d952598a108b72a79e77df3df
5
5
  SHA512:
6
- metadata.gz: a75789019a09dd0dec0af9f96e8bba30c7ca965f5696c022537625169ff6c37835c24f11b41abc2c8a886e5f4039b81ef1f986f6f49a067c5f08ff345074f092
7
- data.tar.gz: '090e7c39a2d68a3ee50c1a5820ab4ba5e5bddeeff771f561e96fde685e267d032c4f0ca875d2e09181387134bfec1c9a55e5ba3ab996cfe8f05ee10cd5d8b083'
6
+ metadata.gz: 62d0be4e930d8ecedc8462060424c3e89d9a920513e9bb5917711ccbdd6bc5e4bf669d585a25f68d4421c6d1441da9b863e98c8303fa3a551be14c33f2d381b4
7
+ data.tar.gz: b301b1ab2e98ced5852205aa505ea5d68639958572766338a89dc8e91fc3e85817860f29728592fa8f377a63bb514619ea05937086cf8a01197086f634951407
@@ -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") or
49
- browser.safari?(">= 10") or
50
- browser.firefox?(">= 52") or
51
- browser.ie?(">= 11") && !browser.compatibility_view? or
52
- browser.edge?(">= 15") or
53
- browser.opera?(">= 50") or
54
- browser.facebook? \
55
- && browser.safari_webapp_mode? \
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
@@ -1,3 +1,3 @@
1
1
  module BrowserWarrior
2
- VERSION = '0.12.0'
2
+ VERSION = '0.13.0'
3
3
  end
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.12.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-02-28 00:00:00.000000000 Z
11
+ date: 2020-03-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails