rack-fonts 0.1 → 0.1.1

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.
@@ -1,5 +1,9 @@
1
1
  # rack-fonts changelog
2
2
 
3
+ ## v0.1.1
4
+ - otf fonts served as application/x-font-woff until application/font-woff gets approved
5
+ (see http://code.google.com/p/chromium/issues/detail?id=70283#c3)
6
+
3
7
  ## v0.1
4
8
 
5
9
  First release, supporting:
@@ -28,7 +28,7 @@ module Rack
28
28
 
29
29
  class Fonts
30
30
 
31
- VERSION = '0.1'
31
+ VERSION = '0.1.1'
32
32
 
33
33
  def initialize(app, options = {})
34
34
  @original_app = app
@@ -61,7 +61,7 @@ module Rack
61
61
  {
62
62
  :ttf => 'font/truetype',
63
63
  :otf => 'font/opentype',
64
- :woff => 'font/woff',
64
+ :woff => 'application/x-font-woff',
65
65
  :eot => 'application/vnd.ms-fontobject',
66
66
  :svg => 'image/svg+xml'
67
67
  }[ext.to_sym]
@@ -51,7 +51,7 @@ class RackFontsTest < MiniTest::Unit::TestCase
51
51
  def test_woff_file
52
52
  @res = request.get('/assets/Forum.woff')
53
53
  assert_status 200
54
- assert_h 'Content-Type', 'font/woff'
54
+ assert_h 'Content-Type', 'application/x-font-woff'
55
55
  assert_equal asset_file_content('Forum.woff'), @res.body
56
56
  end
57
57
 
metadata CHANGED
@@ -1,11 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-fonts
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- version: "0.1"
4
+ prerelease:
5
+ version: 0.1.1
9
6
  platform: ruby
10
7
  authors:
11
8
  - Raul Murciano
@@ -13,8 +10,7 @@ autorequire:
13
10
  bindir: bin
14
11
  cert_chain: []
15
12
 
16
- date: 2011-07-09 00:00:00 -07:00
17
- default_executable:
13
+ date: 2011-08-18 00:00:00 Z
18
14
  dependencies:
19
15
  - !ruby/object:Gem::Dependency
20
16
  name: rack
@@ -24,10 +20,6 @@ dependencies:
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 1
29
- - 2
30
- - 3
31
23
  version: 1.2.3
32
24
  type: :runtime
33
25
  version_requirements: *id001
@@ -39,9 +31,6 @@ dependencies:
39
31
  requirements:
40
32
  - - ">"
41
33
  - !ruby/object:Gem::Version
42
- segments:
43
- - 2
44
- - 0
45
34
  version: "2.0"
46
35
  type: :development
47
36
  version_requirements: *id002
@@ -53,10 +42,6 @@ dependencies:
53
42
  requirements:
54
43
  - - ">="
55
44
  - !ruby/object:Gem::Version
56
- segments:
57
- - 0
58
- - 6
59
- - 0
60
45
  version: 0.6.0
61
46
  type: :development
62
47
  version_requirements: *id003
@@ -87,7 +72,6 @@ files:
87
72
  - LICENSE
88
73
  - RakeFile
89
74
  - README.md
90
- has_rdoc: true
91
75
  homepage: http://github.com/raul/rack-assets
92
76
  licenses: []
93
77
 
@@ -101,21 +85,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
85
  requirements:
102
86
  - - ">="
103
87
  - !ruby/object:Gem::Version
104
- segments:
105
- - 0
106
88
  version: "0"
107
89
  required_rubygems_version: !ruby/object:Gem::Requirement
108
90
  none: false
109
91
  requirements:
110
92
  - - ">="
111
93
  - !ruby/object:Gem::Version
112
- segments:
113
- - 0
114
94
  version: "0"
115
95
  requirements: []
116
96
 
117
97
  rubyforge_project: rack-fonts
118
- rubygems_version: 1.3.7
98
+ rubygems_version: 1.8.8
119
99
  signing_key:
120
100
  specification_version: 3
121
101
  summary: Rack middleware to serve static files, with special love to web fonts.