minimal-http-ruby 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/minimal-http-ruby.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6162689f1c2cedb0286deb3a7a707ad64674b1d0
|
4
|
+
data.tar.gz: 6f62b800eca05a72f9117e492392ab931c9f9c16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9fa2b066af757c16cfdd055eee92cb571412b1c27e84d1c08dd00b57f25dcc1c272c54a276d8b11e8ab0650e7cb4ead16cc4aceccb2461630f9f26fedc615607
|
7
|
+
data.tar.gz: 2a2665f4f2536f885ce2bc8c5ef6860d68e362053c5ab617f4ac3bd9be1bf3fb598ab217e0c5fd4fdd1ab45ad752b6b89f67027bb7d311d1749c5c6c01d44cea
|
data/lib/minimal-http-ruby.rb
CHANGED
@@ -28,7 +28,7 @@ def minimal_http_server options={}
|
|
28
28
|
elsif File.directory? './http'
|
29
29
|
$http_dir="http/"
|
30
30
|
else
|
31
|
-
$http_dir = File.join( Gem.loaded_specs['
|
31
|
+
$http_dir = File.join( Gem.loaded_specs['minimal-http-ruby'].full_gem_path, 'http/')
|
32
32
|
end
|
33
33
|
puts "Serving pages from home directory: '#{$http_dir}'"
|
34
34
|
statuses={ "200" => "OK", "404" => "Not Found", "500" => "Internal Server Error"}
|