webfontloader 1.5.3 → 1.5.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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 +5 -1
- data/webfontloader.gemspec +2 -2
- 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: faf7a6dc91c3f0ba3a0964e44d2c3e1d42ea0577
|
4
|
+
data.tar.gz: 61dbaeff39ee6f0f6fee49b0480352d0c62a3343
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4d764058add9bf7ee11af7d6cb6c727af637ff784fcf160824e389a5987e1cf5db7e010b47912c6b905ae9b248cf84ab2d59019ba21ea67f5f73b8ae2bc2f3df
|
7
|
+
data.tar.gz: e771143a89ff0f542f13aaed83fef1521ec35e4155c330e9d2797fc9f722de4dec1ab5df3b61f76c1c554bb99f8359779a1ced6b1d284fbffda9f3807db9e882
|
data/CHANGELOG
CHANGED
data/lib/webfontloader.rb
CHANGED
@@ -924,6 +924,27 @@ describe('UserAgentParser', function () {
|
|
924
924
|
}
|
925
925
|
});
|
926
926
|
});
|
927
|
+
|
928
|
+
it('should detect the PS4 browser', function () {
|
929
|
+
expect(parse('Mozilla/5.0 (PlayStation 4 1.70) AppleWebKit/536.26 (KHTML, like Gecko)'))
|
930
|
+
.toMatchUserAgent({
|
931
|
+
name: 'BuiltinBrowser',
|
932
|
+
parsedVersion: new Version(),
|
933
|
+
version: 'Unknown',
|
934
|
+
platform: 'Linux',
|
935
|
+
parsedPlatformVersion: new Version(),
|
936
|
+
platformVersion: 'Unknown',
|
937
|
+
engine: 'AppleWebKit',
|
938
|
+
parsedEngineVersion: new Version(536, 26),
|
939
|
+
engineVersion: '536.26',
|
940
|
+
documentMode: undefined,
|
941
|
+
browserInfo: {
|
942
|
+
hasWebFontSupport: true,
|
943
|
+
hasWebKitFallbackBug: false,
|
944
|
+
hasWebKitMetricsBug: false
|
945
|
+
}
|
946
|
+
});
|
947
|
+
});
|
927
948
|
});
|
928
949
|
|
929
950
|
describe('Amazon Silk', function () {
|
data/src/core/useragentparser.js
CHANGED
@@ -87,11 +87,13 @@ goog.scope(function () {
|
|
87
87
|
return mobileOs;
|
88
88
|
}
|
89
89
|
var os = this.getMatchingGroup_(this.userAgent_,
|
90
|
-
/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS)/, 1);
|
90
|
+
/(Linux|Mac_PowerPC|Macintosh|Windows|CrOS|PlayStation)/, 1);
|
91
91
|
|
92
92
|
if (os != "") {
|
93
93
|
if (os == "Mac_PowerPC") {
|
94
94
|
os = "Macintosh";
|
95
|
+
} else if (os == "PlayStation") {
|
96
|
+
os = "Linux";
|
95
97
|
}
|
96
98
|
return os;
|
97
99
|
}
|
@@ -339,6 +341,8 @@ goog.scope(function () {
|
|
339
341
|
browserName = "Safari";
|
340
342
|
} else if (this.userAgent_.indexOf("AdobeAIR") != -1) {
|
341
343
|
browserName = "AdobeAIR";
|
344
|
+
} else if (this.userAgent_.indexOf("PlayStation") != -1) {
|
345
|
+
browserName = "BuiltinBrowser";
|
342
346
|
}
|
343
347
|
|
344
348
|
if (browserName == UserAgentParser.BUILTIN_BROWSER) {
|
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-
|
16
|
+
s.version = '1.5.4'
|
17
|
+
s.date = '2014-05-02'
|
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.4
|
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-
|
12
|
+
date: 2014-05-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|