hydeweb 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.
@@ -8,6 +8,8 @@ begin
8
8
  # Add the 'rack-cache' gem if you want to enable caching.
9
9
  require 'rack/cache'
10
10
  use Rack::Cache
11
+ rescue LoadError
12
+ # pass
11
13
  end
12
14
 
13
15
  Hyde::Project.new File.dirname(__FILE__)
data/lib/hyde/server.rb CHANGED
@@ -51,7 +51,7 @@ class Hyde
51
51
  # Make the clients use If-Modified-Since
52
52
  res['Cache-Control'] = 'max-age=86400, public, must-revalidate'
53
53
 
54
- mtime = [server.options[:last_modified], File.mtime(page.file)].compact.max
54
+ mtime = [server.options[:last_modified].to_i, File.mtime(page.file).to_i].compact.max
55
55
  res['Last-Modified'] = mtime.to_s if mtime
56
56
 
57
57
  # Get the MIME type from Hyde, then fallback to Rack
data/lib/hyde.rb CHANGED
@@ -15,7 +15,7 @@ require 'shake'
15
15
  Tilt.mappings['html'] = Tilt.mappings['erb']
16
16
 
17
17
  class Hyde
18
- VERSION = "0.1.11"
18
+ VERSION = "0.1.12"
19
19
  PREFIX = File.expand_path('../', __FILE__)
20
20
 
21
21
  Error = Class.new(StandardError)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hydeweb
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.11
5
+ version: 0.1.12
6
6
  platform: ruby
7
7
  authors:
8
8
  - Rico Sta. Cruz