rack-closed 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rack/closed.rb CHANGED
@@ -8,7 +8,7 @@ module Rack
8
8
  hour = Time.now.hour
9
9
 
10
10
  if hour < 9 || hour > 17
11
- file = File.read("#{File.expand_path(File.dirname(__FILE__))}/views/closed.html")
11
+ file = ::File.read("#{::File.expand_path(::File.dirname(__FILE__))}/views/closed.html")
12
12
  [503, {"Content-Type" => "text/html"}, file]
13
13
  else
14
14
  @app.call(env)
File without changes
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 0
8
- - 2
9
- version: 0.0.2
8
+ - 3
9
+ version: 0.0.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Phil Lee
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2011-06-21 00:00:00 +01:00
17
+ date: 2011-06-22 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies: []
20
20
 
@@ -28,7 +28,7 @@ extensions: []
28
28
  extra_rdoc_files: []
29
29
 
30
30
  files:
31
- - lib/views/closed.html
31
+ - lib/rack/views/closed.html
32
32
  - lib/rack/closed.rb
33
33
  - lib/rack-closed.rb
34
34
  - LICENSE