directory_listing 0.3.0 → 0.3.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.
data/.gitignore CHANGED
@@ -1,4 +1,2 @@
1
1
  .DS_Store
2
2
  pkg/*
3
- test_app.rb
4
- public/*
@@ -19,4 +19,3 @@ Gem::Specification.new do |s|
19
19
  s.add_development_dependency "bundler", "~> 1.3"
20
20
  s.add_development_dependency "rake"
21
21
  end
22
-
@@ -23,7 +23,7 @@ module Sinatra
23
23
  </table>
24
24
 
25
25
  <br>
26
- <a><%= $readme if $readme %></a>
26
+ <a><%= $readme %></a>
27
27
  </body>
28
28
  </html>
29
29
  EOF
@@ -77,7 +77,7 @@ class Resource
77
77
  # Add a class of "dir" to directories and "file" to files.
78
78
 
79
79
  html = ""
80
- if File.directory?(File.join($public_folder, link))
80
+ if File.directory?(URI.unescape(File.join($public_folder, link)))
81
81
  html << "\t<td class='dir'>"
82
82
 
83
83
  ##
@@ -98,7 +98,6 @@ class Resource
98
98
  # apostrophes ourselves.
99
99
 
100
100
  link = link.gsub(" ", "%20").gsub("'", "%27")
101
-
102
101
  html << "<a href='#{link}'>#{file_truncated}</a></td>"
103
102
 
104
103
  return html
@@ -1,3 +1,3 @@
1
1
  module Directory_listing
2
- VERSION = '0.3.0'
2
+ VERSION = '0.3.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: directory_listing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-29 00:00:00.000000000 Z
12
+ date: 2013-09-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: filesize