rack-jekyll 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rack/jekyll.rb CHANGED
@@ -16,7 +16,7 @@ module Rack
16
16
  end
17
17
  end
18
18
  @files = ::Dir[@path + "/**/*"].inspect
19
- @mimes = Rack::Mime::MIME_TYPES.reject{|k,v|k=~%r{html?}}.map{|k,v|%r{#{k.gsub('.','\.')}$}i}
19
+ @mimes = Rack::Mime::MIME_TYPES.map{|k,v|%r{#{k.gsub('.','\.')}$}i}
20
20
  @compiling = false
21
21
  if ::Dir[@path + "/**/*"].empty?
22
22
  begin
@@ -56,8 +56,12 @@ module Rack
56
56
  ::File.read(file)
57
57
  end
58
58
  def mime(path_info)
59
- ext = $1 if path_info =~ /(\.\S+)$/
60
- Mime.mime_type((ext.nil? ? ".html" : ext))
59
+ if path_info !~ /html$/i
60
+ ext = $1 if path_info =~ /(\.\S+)$/
61
+ Mime.mime_type((ext.nil? ? ".html" : ext))
62
+ else
63
+ Mime.mime_type(".html")
64
+ end
61
65
  end
62
66
  end
63
67
  end
@@ -1,7 +1,7 @@
1
1
  module Rack
2
2
  class Jekyll
3
3
  def self.version
4
- '0.3.1'
4
+ '0.3.2'
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rack-jekyll
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Goines
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-25 00:00:00 -06:00
12
+ date: 2010-01-02 00:00:00 -06:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency