webfontloader 1.4.8 → 1.4.9

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v1.4.9 (July 24, 2013)
2
+ * Disable terminal spec report when not using PhantomJS
3
+ * Remove obsolete namespace declaration
4
+
1
5
  v1.4.8 (June 24, 2013)
2
6
  * Add support for the Chromium based Opera browser
3
7
  * Change the debug task to do a Closure Compiler debug build
data/README.md CHANGED
@@ -2,6 +2,8 @@
2
2
 
3
3
  Web Font Loader gives you added control when using linked fonts via `@font-face`. It provides a common interface to loading fonts regardless of the source, then adds a standard set of events you may use to control the loading experience. The Web Font Loader is able to load fonts from [Google Fonts](http://www.google.com/fonts/), [Typekit](http://www.typekit.com/), [Ascender](http://www.ascenderfonts.com/webfonts/), [Fonts.com](http://www.fonts.com/), and [Fontdeck](http://fontdeck.com/), as well as self-hosted web fonts. It is co-developed by [Google](http://www.google.com/) and [Typekit](http://www.typekit.com).
4
4
 
5
+ [![Build Status](https://travis-ci.org/typekit/webfontloader.png?branch=master)](https://travis-ci.org/typekit/webfontloader)
6
+
5
7
  ## Contents
6
8
 
7
9
  * [Get started](#get-started)
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.4.8'
6
+ VERSION = '1.4.9'
7
7
 
8
8
  ProjectRoot = File.expand_path(File.dirname(__FILE__) + "/..")
9
9
 
@@ -345,7 +345,11 @@ describe('FontWatchRunner', function () {
345
345
  });
346
346
 
347
347
  runs(function () {
348
- expect(inactiveCallback).toHaveBeenCalledWith(elena);
348
+ if (userAgent.getBrowserInfo().hasWebKitFallbackBug()) {
349
+ expect(activeCallback).toHaveBeenCalledWith(elena);
350
+ } else {
351
+ expect(inactiveCallback).toHaveBeenCalledWith(elena);
352
+ }
349
353
  });
350
354
  });
351
355
 
data/spec/index.html CHANGED
@@ -68,7 +68,9 @@
68
68
  color: true
69
69
  });
70
70
 
71
- env.addReporter(terminalReporter);
71
+ if (/PhantomJS/.test(navigator.userAgent)) {
72
+ env.addReporter(terminalReporter);
73
+ }
72
74
  env.addReporter(htmlReporter);
73
75
  env.specFilter = function (spec) {
74
76
  return htmlReporter.specFilter(spec);
@@ -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.4.8'
17
- s.date = '2013-06-24'
16
+ s.version = '1.4.9'
17
+ s.date = '2013-07-24'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
@@ -157,7 +157,6 @@ DESC
157
157
  src/core/fontwatcher.js
158
158
  src/core/fontwatchrunner.js
159
159
  src/core/initialize.js
160
- src/core/namespace.js
161
160
  src/core/useragent.js
162
161
  src/core/useragentparser.js
163
162
  src/core/version.js
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webfontloader
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 8
10
- version: 1.4.8
9
+ - 9
10
+ version: 1.4.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Carver
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2013-06-24 00:00:00 Z
19
+ date: 2013-07-24 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: rake
@@ -185,7 +185,6 @@ files:
185
185
  - src/core/fontwatcher.js
186
186
  - src/core/fontwatchrunner.js
187
187
  - src/core/initialize.js
188
- - src/core/namespace.js
189
188
  - src/core/useragent.js
190
189
  - src/core/useragentparser.js
191
190
  - src/core/version.js
@@ -1 +0,0 @@
1
- var webfont = {};