font_assets 0.0.1 → 0.0.2

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/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
 
@@ -11,10 +11,10 @@ module FontAssets
11
11
  end
12
12
 
13
13
  config.after_initialize do
14
- Rack::Mime::MIME_TYPES.merge! '.woff' => 'application/x-font-woff'
15
- Rack::Mime::MIME_TYPES.merge! '.ttf' => 'application/x-font-ttf'
16
- Rack::Mime::MIME_TYPES.merge! '.eot' => 'application/vnd.ms-fontobject'
17
- Rack::Mime::MIME_TYPES.merge! '.svg' => 'image/svg+xml'
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
@@ -1,3 +1,3 @@
1
1
  module FontAssets
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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: []