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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: faf7a6dc91c3f0ba3a0964e44d2c3e1d42ea0577
4
- data.tar.gz: 61dbaeff39ee6f0f6fee49b0480352d0c62a3343
3
+ metadata.gz: b59aa330495e3322b63996a48f290ee2fe85b547
4
+ data.tar.gz: 21524a08ddfdf3934f59af13e00baac7c1cf8fb1
5
5
  SHA512:
6
- metadata.gz: 4d764058add9bf7ee11af7d6cb6c727af637ff784fcf160824e389a5987e1cf5db7e010b47912c6b905ae9b248cf84ab2d59019ba21ea67f5f73b8ae2bc2f3df
7
- data.tar.gz: e771143a89ff0f542f13aaed83fef1521ec35e4155c330e9d2797fc9f722de4dec1ab5df3b61f76c1c554bb99f8359779a1ced6b1d284fbffda9f3807db9e882
6
+ metadata.gz: a66dffeec358c13ef82ed544966357001bfa400ea7d0d63f67a24df85babc3a4239852e6ec2c9577a65f17f21e1c8bca4f1cb8f14fbac611c9daea621233dca3
7
+ data.tar.gz: 0cf1f2208bea28c17cc54ebda0ce9bf19b012abf45443f385dc5ff5a5cd8822204fe967d724e195805609ac59d3774f1fc879213cafec00e8d9a653cbac23974
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ v1.5.5 (June 5, 2014)
2
+ * Add support for the Chromecast browser
3
+
1
4
  v1.5.4 (May 2, 2014)
2
5
  * Add support for the PlayStation 4 browser
3
6
 
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.4'
6
+ VERSION = '1.5.5'
7
7
 
8
8
  ProjectRoot = File.expand_path(File.dirname(__FILE__) + "/..")
9
9
 
@@ -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({
@@ -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) {
@@ -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.4'
17
- s.date = '2014-05-02'
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
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-02 00:00:00.000000000 Z
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.3
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.