font_assets 0.1.11 → 0.1.12
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/README.md +3 -0
- data/lib/font_assets/mime_types.rb +2 -1
- data/lib/font_assets/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
|
@@ -48,6 +48,9 @@ you'd want to set the origin header to this:
|
|
|
48
48
|
config.font_assets.origin = 'http://coffeescript.codeschool.com'
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
+
To match the actual `Origin` value, omit the trailing slash
|
|
52
|
+
([details](http://dev.opera.com/articles/view/dom-access-control-using-cross-origin-resource-sharing/#AccessControlAllowOrigin)).
|
|
53
|
+
|
|
51
54
|
An Example Response
|
|
52
55
|
-------------------
|
|
53
56
|
|
|
@@ -6,7 +6,8 @@ module FontAssets
|
|
|
6
6
|
'.svg' => 'image/svg+xml',
|
|
7
7
|
'.ttf' => 'application/x-font-ttf',
|
|
8
8
|
'.otf' => 'application/x-font-otf',
|
|
9
|
-
'.woff' => 'application/x-font-woff'
|
|
9
|
+
'.woff' => 'application/x-font-woff',
|
|
10
|
+
'.woff2' => 'application/x-font-woff2'
|
|
10
11
|
}
|
|
11
12
|
|
|
12
13
|
def initialize(types, default = DEFAULT_TYPE.dup)
|
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.1.
|
|
4
|
+
version: 0.1.12
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2015-10-14 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rack
|
|
@@ -85,7 +85,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
85
85
|
version: '0'
|
|
86
86
|
requirements: []
|
|
87
87
|
rubyforge_project: font_assets
|
|
88
|
-
rubygems_version: 1.8.
|
|
88
|
+
rubygems_version: 1.8.23
|
|
89
89
|
signing_key:
|
|
90
90
|
specification_version: 3
|
|
91
91
|
summary: Improve font serving in Rails 3.1
|