directory_listing 0.6.3 → 0.6.4
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.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: f273c4b80ea336f44632a3f25a2ed1ea8bb637c4
|
|
4
|
+
data.tar.gz: 471796a8cd211916903cb52aa5c5bdf290c172cb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5f606775d8a5e6d7d26068484124f9e04e20ae81cba4e4e4e848aaabbe7107599730c58bd5852bad9dc80689d34a60ee7f0eba4ef0e59f3c18b8d0696f19286
|
|
7
|
+
data.tar.gz: b762239df947a1c087827fd7753891d9cab9d1a07b612168404fa29fb75677a9a3ac0c29bbb8e88e4667b5e896fd7b51dccd48ca5f36621a905f176844e83f00
|
data/Gemfile.lock
CHANGED
|
@@ -130,7 +130,7 @@ module Sinatra
|
|
|
130
130
|
if !page.embed_in.empty?
|
|
131
131
|
path = File.join(settings.public_folder, page.embed_in)
|
|
132
132
|
if File.exists?(path)
|
|
133
|
-
erb = ERB.new(IO.read(path))
|
|
133
|
+
erb = ERB.new(IO.read(path).force_encoding("utf-8"))
|
|
134
134
|
else
|
|
135
135
|
erb = ERB.new(LAYOUT)
|
|
136
136
|
end
|
|
@@ -60,7 +60,7 @@ class Resource
|
|
|
60
60
|
# Remove the extension if neccesary and truncate it.
|
|
61
61
|
# URI.unescape seems to work best to decode uris.
|
|
62
62
|
|
|
63
|
-
file = URI.unescape(file)
|
|
63
|
+
file = URI.unescape(file).force_encoding("utf-8")
|
|
64
64
|
file_noext = file.gsub(File.extname(file), "") if @page.should_show_file_exts == false
|
|
65
65
|
if file_noext
|
|
66
66
|
file_truncated = file_noext.truncate(@page.filename_truncate_length, '...')
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: directory_listing
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.6.
|
|
4
|
+
version: 0.6.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Richard Myers
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-
|
|
11
|
+
date: 2015-03-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: sinatra
|