RubyGems
npm
Organizations
Log in
Sign up
RubyGems
adamcooke-htmlserve
Versions diffs
1.0.1 → 1.0.2
adamcooke-htmlserve 1.0.1 → 1.0.2
Sign up to get
free
protection for your applications and to get access to all the features.
Files changed (2)
hide
show
data/bin/htmlserve.rb
+1
-1
metadata
+1
-1
data/bin/htmlserve.rb
CHANGED
@@ -7,7 +7,7 @@ set :port, ARGV[0] || 4567
7
7
8
8
get '*' do
9
9
file = File.join('.', params[:splat].first)
10
-
if File.
exist
?(file)
&& !File.file?(file)
10
+
if File.
directory
?(file)
11
11
file = File.join(file, 'index.html')
12
12
end
13
13
metadata
CHANGED
@@ -1,7 +1,7 @@
1
1
--- !ruby/object:Gem::Specification
2
2
name: adamcooke-htmlserve
3
3
version: !ruby/object:Gem::Version
4
-
version: 1.0.
1
4
+
version: 1.0.
2
5
5
platform: ruby
6
6
authors:
7
7
- Adam Cooke