webfontloader 1.5.4 → 1.5.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG +3 -0
- data/lib/webfontloader.rb +1 -1
- data/spec/core/useragentparser_spec.js +21 -0
- data/src/core/useragentparser.js +2 -2
- data/webfontloader.gemspec +2 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b59aa330495e3322b63996a48f290ee2fe85b547
|
4
|
+
data.tar.gz: 21524a08ddfdf3934f59af13e00baac7c1cf8fb1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a66dffeec358c13ef82ed544966357001bfa400ea7d0d63f67a24df85babc3a4239852e6ec2c9577a65f17f21e1c8bca4f1cb8f14fbac611c9daea621233dca3
|
7
|
+
data.tar.gz: 0cf1f2208bea28c17cc54ebda0ce9bf19b012abf45443f385dc5ff5a5cd8822204fe967d724e195805609ac59d3774f1fc879213cafec00e8d9a653cbac23974
|
data/CHANGELOG
CHANGED
data/lib/webfontloader.rb
CHANGED
@@ -303,6 +303,27 @@ describe('UserAgentParser', function () {
|
|
303
303
|
});
|
304
304
|
});
|
305
305
|
|
306
|
+
it('should detect Chrome on CromeCast', function () {
|
307
|
+
expect(parse('Mozilla/5.0 (CrKey armv71 1.6.16664) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.0 Safari/537.36'))
|
308
|
+
.toMatchUserAgent({
|
309
|
+
name: 'Chrome',
|
310
|
+
parsedVersion: new Version(31, 0, 1650, 0),
|
311
|
+
version: '31.0.1650.0',
|
312
|
+
platform: 'CrKey',
|
313
|
+
parsedPlatformVersion: new Version(1, 6, 16664),
|
314
|
+
platformVersion: '1.6.16664',
|
315
|
+
engine: 'AppleWebKit',
|
316
|
+
parsedEngineVersion: new Version(537, 36),
|
317
|
+
engineVersion: '537.36',
|
318
|
+
documentMode: undefined,
|
319
|
+
browserInfo: {
|
320
|
+
hasWebFontSupport: true,
|
321
|
+
hasWebKitFallbackBug: false,
|
322
|
+
hasWebKitMetricsBug: false
|
323
|
+
}
|
324
|
+
});
|
325
|
+
});
|
326
|
+
|
306
327
|
it('should detect Chrome on Android', function () {
|
307
328
|
expect(parse('Mozilla/5.0 (Linux; U; Android 4.0.3; en-us; Nexus S Build/IML74K) AppleWebKit/535.7 (KHTML, like Gecko) CrMo/16.0.912.75 Mobile Safari/535.7'))
|
308
329
|
.toMatchUserAgent({
|
data/src/core/useragentparser.js
CHANGED
@@ -87,7 +87,7 @@ goog.scope(function () {
|
|
87
87
|
return mobileOs;
|
88
88
|
}
|
89
89
|
var os = this.getMatchingGroup_(this.userAgent_,
|
90
|
-
/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS|PlayStation)/, 1);
|
90
|
+
/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS|PlayStation|CrKey)/, 1);
|
91
91
|
|
92
92
|
if (os != "") {
|
93
93
|
if (os == "Mac_PowerPC") {
|
@@ -121,7 +121,7 @@ goog.scope(function () {
|
|
121
121
|
return iVersion;
|
122
122
|
}
|
123
123
|
var linuxOrCrOsVersion = this.getMatchingGroup_(this.userAgent_,
|
124
|
-
/(?:Linux|CrOS) ([^;)]+)/, 1);
|
124
|
+
/(?:Linux|CrOS|CrKey) ([^;)]+)/, 1);
|
125
125
|
if (linuxOrCrOsVersion) {
|
126
126
|
var parts = linuxOrCrOsVersion.split(/\s/);
|
127
127
|
for (var i = 0; i < parts.length; i += 1) {
|
data/webfontloader.gemspec
CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
## If your rubyforge_project name is different, then edit it and comment out
|
14
14
|
## the sub! line in the Rakefile
|
15
15
|
s.name = 'webfontloader'
|
16
|
-
s.version = '1.5.
|
17
|
-
s.date = '2014-05
|
16
|
+
s.version = '1.5.5'
|
17
|
+
s.date = '2014-06-05'
|
18
18
|
|
19
19
|
## Make sure your summary is short. The description may be as long
|
20
20
|
## as you like.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: webfontloader
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ryan Carver
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-05
|
12
|
+
date: 2014-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -208,7 +208,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
208
208
|
version: '0'
|
209
209
|
requirements: []
|
210
210
|
rubyforge_project:
|
211
|
-
rubygems_version: 2.0.
|
211
|
+
rubygems_version: 2.0.14
|
212
212
|
signing_key:
|
213
213
|
specification_version: 2
|
214
214
|
summary: WebFont Loader gives you added control when using linked fonts via @font-face.
|