rack-fonts 0.1 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/Changelog.md +4 -0
- data/lib/rack-fonts.rb +2 -2
- data/test/rack-fonts_test.rb +1 -1
- metadata +4 -24
data/Changelog.md
CHANGED
data/lib/rack-fonts.rb
CHANGED
@@ -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
|
64
|
+
:woff => 'application/x-font-woff',
|
65
65
|
:eot => 'application/vnd.ms-fontobject',
|
66
66
|
:svg => 'image/svg+xml'
|
67
67
|
}[ext.to_sym]
|
data/test/rack-fonts_test.rb
CHANGED
@@ -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
|
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:
|
5
|
-
|
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-
|
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.
|
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.
|