ichiban 1.2.6 → 1.2.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ichiban/scripts.rb +2 -1
- data/lib/ichiban/version.rb +1 -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: e432ce9f46b90434cc7dbbdaf5dc43d5797c90f3
|
4
|
+
data.tar.gz: 40ad539678520c0931556150b139e8f49dccde5a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bc627c2d62143885e1527df917e98f0ec849042cb8cbf1461c47807f600ba4e800600388b73b20ed62244e6aa585c63d0bb21db8c9dc435df05e5cf750000033
|
7
|
+
data.tar.gz: e9ac06ee5c7d1d9290d3ab939f5d33020f3f5bcfb2ceb688dd1d98611a8ab3778ea41d6281e4d805563f848aec6878d5a03492ec5428d5de13f6c7eab7f8f3f8
|
data/lib/ichiban/scripts.rb
CHANGED
@@ -15,7 +15,8 @@ module Ichiban
|
|
15
15
|
# Automatically appends .html to dest_path
|
16
16
|
def generate(template_path, dest_path, ivars)
|
17
17
|
dest_path += '.html'
|
18
|
-
|
18
|
+
ext_to_remove = File.extname(dest_path)
|
19
|
+
web_path = '/' + dest_path.sub(/#{ext_to_remove}$/, '') + '/'
|
19
20
|
compiler = Ichiban::HTMLCompiler.new(
|
20
21
|
Ichiban::HTMLFile.new(
|
21
22
|
File.join('html', template_path)
|
data/lib/ichiban/version.rb
CHANGED