ichiban 1.0.12 → 1.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ichiban/file.rb +3 -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: bed8e1c7721e2dde1e29fe7ee6e749ef444c4da6
|
4
|
+
data.tar.gz: cc2e0054c59fe95cb59637c42427656fa95568eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2db860d451e68cc3f83c1d4e77e8a64bddaa266a9daad0fc2d252299e5bb812566d8d7041692ad2c8886ab4bdd86dec46e28f7439b1f15f0b5dee399fba8a10
|
7
|
+
data.tar.gz: 0549dde9e9d8db5c32edff2c1ef16f83fac511e07fab45c5157a101467581d48dad913e3e86efa74a08f6ab61d5deb21c503335929914d33d995951d4991004e
|
data/lib/ichiban/file.rb
CHANGED
@@ -68,7 +68,9 @@ module Ichiban
|
|
68
68
|
# If this is an index file, the web path is just the folder name.
|
69
69
|
'/' + File.dirname(d) + '/'
|
70
70
|
else
|
71
|
-
'/' + File.join(File.dirname(d), fname) + '/'
|
71
|
+
p = '/' + File.join(File.dirname(d), fname) + '/'
|
72
|
+
p.sub!('/./', '/') if p.start_with?('/./')
|
73
|
+
p
|
72
74
|
end
|
73
75
|
end
|
74
76
|
end
|