webfontloader 1.0.20 → 1.0.21

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ v1.0.21 (June 17, 2011)
2
+ * Added a protocol detect for the Typekit module so JS is loaded securely on
3
+ secure pages. Thanks to bee525 for the pull request.
4
+
1
5
  v1.0.20 (March 30, 2011)
2
6
  * Changed CSS style for hidden span so it's not affected by inline or floated elements at the end of the body
3
7
 
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.0.20'
6
+ VERSION = '1.0.21'
7
7
 
8
8
  ProjectRoot = File.expand_path(File.dirname(__FILE__) + "/..")
9
9
 
@@ -13,7 +13,8 @@ webfont.TypekitScript.NAME = 'typekit';
13
13
  webfont.TypekitScript.HOOK = '__webfonttypekitmodule__';
14
14
 
15
15
  webfont.TypekitScript.prototype.getScriptSrc = function(kitId) {
16
- var api = this.configuration_['api'] || 'http://use.typekit.com';
16
+ var protocol = 'https:' == window.location.protocol ? 'https:' : 'http:';
17
+ var api = this.configuration_['api'] || protocol + '//use.typekit.com';
17
18
  return api + '/' + kitId + '.js';
18
19
  };
19
20
 
@@ -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.0.20'
17
- s.date = '2011-03-30'
16
+ s.version = '1.0.21'
17
+ s.date = '2011-06-17'
18
18
 
19
19
  ## Make sure your summary is short. The description may be as long
20
20
  ## as you like.
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: 63
5
- prerelease: false
4
+ hash: 61
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 20
10
- version: 1.0.20
9
+ - 21
10
+ version: 1.0.21
11
11
  platform: ruby
12
12
  authors:
13
13
  - Ryan Carver
@@ -16,12 +16,11 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-30 00:00:00 -07:00
19
+ date: 2011-06-17 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
- name: rack
24
- prerelease: false
23
+ type: :development
25
24
  requirement: &id001 !ruby/object:Gem::Requirement
26
25
  none: false
27
26
  requirements:
@@ -33,11 +32,11 @@ dependencies:
33
32
  - 2
34
33
  - 1
35
34
  version: 1.2.1
36
- type: :development
35
+ name: rack
36
+ prerelease: false
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
39
- name: sinatra
40
- prerelease: false
39
+ type: :development
41
40
  requirement: &id002 !ruby/object:Gem::Requirement
42
41
  none: false
43
42
  requirements:
@@ -48,11 +47,11 @@ dependencies:
48
47
  - 1
49
48
  - 0
50
49
  version: "1.0"
51
- type: :development
50
+ name: sinatra
51
+ prerelease: false
52
52
  version_requirements: *id002
53
53
  - !ruby/object:Gem::Dependency
54
- name: vegas
55
- prerelease: false
54
+ type: :development
56
55
  requirement: &id003 !ruby/object:Gem::Requirement
57
56
  none: false
58
57
  requirements:
@@ -64,7 +63,8 @@ dependencies:
64
63
  - 1
65
64
  - 6
66
65
  version: 0.1.6
67
- type: :development
66
+ name: vegas
67
+ prerelease: false
68
68
  version_requirements: *id003
69
69
  description: |
70
70
  WebFont Loader gives you added control when using linked fonts via
@@ -194,7 +194,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
194
194
  requirements: []
195
195
 
196
196
  rubyforge_project:
197
- rubygems_version: 1.3.7
197
+ rubygems_version: 1.6.2
198
198
  signing_key:
199
199
  specification_version: 2
200
200
  summary: WebFont Loader gives you added control when using linked fonts via @font-face.