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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 37252f7cb661e8d14c83014f166e0a278f3432a0
4
- data.tar.gz: 1b5dc1768052be44b9861ce4937fd16e28f66688
3
+ metadata.gz: eddee2b6db8afdf0d9c36a8a74f9517b76c215c7
4
+ data.tar.gz: 74c6356881cef0f1caeb310286e10a5741cab185
5
5
  SHA512:
6
- metadata.gz: 38e895ab3b7ee2a75526af927fcebfe87e75320680d8663e43c614b271e1ddc6c219f0e561cede2463672b351d4587cbe0ba35e8fa697dee26ed4cf1b7cf2130
7
- data.tar.gz: e3b27b51d5f4815289137fd63c1333797a7e83b6582fe57d428c3fd854f8094a96de6102fbb7be1080a871365eea17135650be99ca1b64ff2c47d3922e83de1e
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
@@ -2,7 +2,7 @@ class Browser
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 9
5
- PATCH = 0
5
+ PATCH = 1
6
6
  STRING = "#{MAJOR}.#{MINOR}.#{PATCH}"
7
7
  end
8
8
  end
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.0
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-29 00:00:00.000000000 Z
11
+ date: 2015-07-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler