font_assets 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,13 @@
1
1
  ### master
2
2
 
3
+ ### 0.1.1 / 2012-01-18
4
+
5
+ [full changelog](https://github.com/rubymaverick/font_assets/compare/v0.1.0...v0.1.1)
6
+
7
+ Bug Fixes
8
+
9
+ * Fix Rack::File#empty? call in middleware causing an exception.
10
+
3
11
  ### 0.1.0 / 2012-01-18
4
12
 
5
13
  [full changelog](https://github.com/rubymaverick/font_assets/compare/v0.0.2...v0.1.0)
@@ -19,5 +19,5 @@ Gem::Specification.new do |s|
19
19
  s.require_paths = ["lib"]
20
20
 
21
21
  s.add_dependency "rack"
22
- s.add_development_dependency "rspec"
22
+ s.add_development_dependency "rspec", "~>2.0"
23
23
  end
@@ -45,7 +45,7 @@ module FontAssets
45
45
  def set_headers!(headers, body, path)
46
46
  if ext = extension(path) and font_asset?(ext)
47
47
  headers.merge!(access_control_headers)
48
- headers.merge!('Content-Type' => mime_type(ext)) unless body.empty?
48
+ headers.merge!('Content-Type' => mime_type(ext)) if headers['Content-Type']
49
49
  end
50
50
  end
51
51
 
@@ -1,3 +1,3 @@
1
1
  module FontAssets
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
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.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-18 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
16
- requirement: &70274473944840 !ruby/object:Gem::Requirement
16
+ requirement: &2164268920 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,18 +21,18 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70274473944840
24
+ version_requirements: *2164268920
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec
27
- requirement: &70274473944080 !ruby/object:Gem::Requirement
27
+ requirement: &2164268420 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
- - - ! '>='
30
+ - - ~>
31
31
  - !ruby/object:Gem::Version
32
- version: '0'
32
+ version: '2.0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70274473944080
35
+ version_requirements: *2164268420
36
36
  description: Improve font serving in Rails 3.1
37
37
  email:
38
38
  - rubymaverick@gmail.com