font_assets 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/font_assets.gemspec +1 -1
- data/lib/font_assets/railtie.rb +4 -4
- data/lib/font_assets/version.rb +1 -1
- metadata +2 -2
data/font_assets.gemspec
CHANGED
@@ -7,7 +7,7 @@ Gem::Specification.new do |s|
|
|
7
7
|
s.version = FontAssets::VERSION
|
8
8
|
s.authors = ["Eric Allam"]
|
9
9
|
s.email = ["rubymaverick@gmail.com"]
|
10
|
-
s.homepage = ""
|
10
|
+
s.homepage = "https://github.com/rubymaverick/font_assets"
|
11
11
|
s.summary = %q{Improve font serving in Rails 3.1}
|
12
12
|
s.description = %q{Improve font serving in Rails 3.1}
|
13
13
|
|
data/lib/font_assets/railtie.rb
CHANGED
@@ -11,10 +11,10 @@ module FontAssets
|
|
11
11
|
end
|
12
12
|
|
13
13
|
config.after_initialize do
|
14
|
-
Rack::Mime::MIME_TYPES
|
15
|
-
Rack::Mime::MIME_TYPES
|
16
|
-
Rack::Mime::MIME_TYPES
|
17
|
-
Rack::Mime::MIME_TYPES
|
14
|
+
Rack::Mime::MIME_TYPES['.woff'] ||= 'application/x-font-woff'
|
15
|
+
Rack::Mime::MIME_TYPES['.ttf'] ||= 'application/x-font-ttf'
|
16
|
+
Rack::Mime::MIME_TYPES['.eot'] ||= 'application/vnd.ms-fontobject'
|
17
|
+
Rack::Mime::MIME_TYPES['.svg'] ||= 'image/svg+xml'
|
18
18
|
end
|
19
19
|
end
|
20
20
|
end
|
data/lib/font_assets/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: font_assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -27,7 +27,7 @@ files:
|
|
27
27
|
- lib/font_assets/middleware.rb
|
28
28
|
- lib/font_assets/railtie.rb
|
29
29
|
- lib/font_assets/version.rb
|
30
|
-
homepage:
|
30
|
+
homepage: https://github.com/rubymaverick/font_assets
|
31
31
|
licenses: []
|
32
32
|
post_install_message:
|
33
33
|
rdoc_options: []
|