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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9f2d29daa39ef38194d69ef325ccd687a3b906fa
4
- data.tar.gz: 7dd1853c96e114304e74a2305c3585e03693cc20
3
+ metadata.gz: faf7a6dc91c3f0ba3a0964e44d2c3e1d42ea0577
4
+ data.tar.gz: 61dbaeff39ee6f0f6fee49b0480352d0c62a3343
5
5
  SHA512:
6
- metadata.gz: cd13cb3191c2608c60d65e8872f6945599161335ca299ca842f377298a8b53cdd2b8f8af8d5ba2f592fc50a01ad2bdbdce492adc05e7f6452ac8b029b3ccc8df
7
- data.tar.gz: cc7e4b91fe6b7c53e76de4c0baa39b09ec17f54d793d03b96ba185edd638c081376a9e7e470d8249f354be0df84bf7a83b9e91b1114ccac7be79ba45aea0e44c
6
+ metadata.gz: 4d764058add9bf7ee11af7d6cb6c727af637ff784fcf160824e389a5987e1cf5db7e010b47912c6b905ae9b248cf84ab2d59019ba21ea67f5f73b8ae2bc2f3df
7
+ data.tar.gz: e771143a89ff0f542f13aaed83fef1521ec35e4155c330e9d2797fc9f722de4dec1ab5df3b61f76c1c554bb99f8359779a1ced6b1d284fbffda9f3807db9e882
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v1.5.4 (May 2, 2014)
2
+ * Add support for the PlayStation 4 browser
3
+
1
4
  v1.5.3 (April 8, 2014)
2
5
  * Prevent a potential FOUT when setting the font event classes.
3
6
  * Add "display:block" to test rulers so "* { display: none; }" doesn't override it
data/lib/webfontloader.rb CHANGED
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  require 'webfontloader/modules'
4
4
 
5
5
  module WebFontLoader
6
- VERSION = '1.5.3'
6
+ VERSION = '1.5.4'
7
7
 
8
8
  ProjectRoot = File.expand_path(File.dirname(__FILE__) + "/..")
9
9
 
@@ -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 () {
@@ -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) {
@@ -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.3'
17
- s.date = '2014-04-08'
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.3
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-04-08 00:00:00.000000000 Z
12
+ date: 2014-05-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake