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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e75247671503c6905c93fb55cca27be646d68626
4
- data.tar.gz: 894a82e6eb0d165d5e6fa58b0517998f0d109a80
3
+ metadata.gz: e432ce9f46b90434cc7dbbdaf5dc43d5797c90f3
4
+ data.tar.gz: 40ad539678520c0931556150b139e8f49dccde5a
5
5
  SHA512:
6
- metadata.gz: 84d001d474a73ae9cdced63b8f3ecc801dd67f1d65dc866372b7bb15efc82df41371c4848e89e2d86879c8e4b5273f75299166b5f6f9c2a9f741ba6a909ecb7c
7
- data.tar.gz: 0057724132944893a1b892193e84b36696c332762396059c441ac882e24c4992d9e627d0bc6775baa78f3d68d74bafbf908154792d5cd75b8e61244b8a37d741
6
+ metadata.gz: bc627c2d62143885e1527df917e98f0ec849042cb8cbf1461c47807f600ba4e800600388b73b20ed62244e6aa585c63d0bb21db8c9dc435df05e5cf750000033
7
+ data.tar.gz: e9ac06ee5c7d1d9290d3ab939f5d33020f3f5bcfb2ceb688dd1d98611a8ab3778ea41d6281e4d805563f848aec6878d5a03492ec5428d5de13f6c7eab7f8f3f8
@@ -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
- web_path = '/' + File.basename(dest_path, File.extname(dest_path)) + '/'
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)
@@ -1,3 +1,3 @@
1
1
  module Ichiban
2
- VERSION = '1.2.6'
2
+ VERSION = '1.2.7'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ichiban
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jarrett Colby