dbrady-sinfile 0.1.0 → 0.1.1

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.
Files changed (3) hide show
  1. data/README.txt +4 -0
  2. data/bin/sinfile +0 -2
  3. metadata +1 -1
data/README.txt CHANGED
@@ -6,3 +6,7 @@ Just run "sinfile" in the current directory and you're done. Point
6
6
  your browser at http://localhost:4567 to see your files.
7
7
 
8
8
  Choose a different port with -p, e.g. "sinfile -p 80".
9
+
10
+ = Installation
11
+
12
+ sudo gem install dbrady-sinfile
@@ -17,8 +17,6 @@ get '*' do
17
17
  str += "<ul>"
18
18
  str += "<li><a href=\"#{File.split(params['splat'][0])[0]}\">..</a</li>\n" unless params['splat'] == ['/']
19
19
  str += (Dir[File.join(dir, '*')].map{|p| p + ('/' if File.directory?(p)).to_s}.map{|p| p.sub(%r{^#{dir}/}, '')}.map {|p| "<li><a href=\"#{File.join(params['splat'],p)}\">#{p}</a>"} * "\n") + "</ul>"
20
- elsif File.exists?(dir)
21
- 30.times { puts "Poohat!<br/>" }
22
20
  else
23
21
  "<h1>Path #{dir} does not exist</h1>"
24
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dbrady-sinfile
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Brady