Skip to content

Commit cfbf6ac

Browse files
author
Xavier MORTELETTE
committed
Fix issue undefined method 'transform'
Simple path like joallard say to fix with jekyll 3.3.0 and later #19 Rel to #19
1 parent 075cd8e commit cfbf6ac

File tree

4 files changed

+18
-6
lines changed

4 files changed

+18
-6
lines changed

CHANGELOG.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
1+
## 0.1.5 2016-12-30
2+
### minor enhancements
3+
* Fixed an error with Jekyll 3.3.0 and later https://github.com/samvincent/jekyll-haml/issues/19
4+
15
## 0.1.4 2016-06-01
26
### minor enhancements
3-
* Fixed loss of content in layout conversion - ([@sspreitzer][])
7+
* Fixed loss of content in layout conversion - ([@sspreitzer][])
48

59
## 0.1.3 2015-12-08
610
### minor enhancements
7-
* Fixed an error with Jekyll 2.3.0 (and probably with prior versions) that crashes when building the site - ([@kalvinarts][])
11+
* Fixed an error with Jekyll 2.3.0 (and probably with prior versions) that crashes when building the site - ([@kalvinarts][])
812

913
## 0.1.2 2015-04-28
1014
### minor enhancements

jekyll-haml.gemspec

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ Gem::Specification.new do |gem|
1717
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
1818
gem.require_paths = ["lib"]
1919

20-
gem.add_runtime_dependency 'jekyll', ">= 0.10.0"
21-
gem.add_runtime_dependency 'haml', ">= 3.0.0"
20+
gem.add_runtime_dependency 'jekyll', '>= 3.3.0'
21+
gem.add_runtime_dependency 'haml', '>= 3.0.0'
2222
end

lib/jekyll-haml/ext/convertible.rb

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,15 @@ class Layout
55

66
def initialize(*args)
77
old_initialize(*args)
8-
self.content = self.transform
8+
self.content = transform
9+
end
10+
11+
def transform
12+
_renderer.convert(content)
13+
end
14+
15+
def extname
16+
ext
917
end
1018
end
1119
end

lib/jekyll-haml/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Jekyll
22
module Haml
3-
VERSION = "0.1.4"
3+
VERSION = '0.1.5'.freeze
44
end
55
end

0 commit comments

Comments
 (0)