serbea 0.10.1 → 0.10.2

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
  SHA256:
3
- metadata.gz: 2b926b4c2862564b92db8e06de1c440827b96165cd63397e2c757cfcd2c077b0
4
- data.tar.gz: f6a31873aa5eecf6bc23ea2878b81b5b4872f30cd89debed7a313d4e98992e47
3
+ metadata.gz: 18cedf3b548b6461f0d5c65ed89aafb009691248811fb1155fa59d4b1b28ccc9
4
+ data.tar.gz: 5f3300902b294bbbc720d6f4c550d43989a13906c22f93a232f8acba051acf2c
5
5
  SHA512:
6
- metadata.gz: 4bf447cc67c26721d64a3cbc37b12519894a54e7e8ce03f0c801b4a0e273e29309179a5ac753c728cc8f9ccfd787a1b58ce554022905f57f1d14feb295b1cd26
7
- data.tar.gz: 1ba95acd1ba3905b3e41a109c1044e052d59a0a71c0b4f231c59c9f65d45af73c568f95486b30a2b13aa5a6eace5a250122b230db682bf77a8dd9f36afef9871
6
+ metadata.gz: 86fa6e781ab8d0b32bb4033dd33cae67167e97b43a14823f660a70d01532f36c041e6ef16861f3c8a1ff4aa0b3550651110455f110986588bd81e8aa3e84833f
7
+ data.tar.gz: ab43538b4eba0769421eb9138581b18a4d6c846dab8898c4bb037c1deba1c5e4dd6ee86a77fd99c9fdff597b41ff6330500d3cf190e93fc8e628ba10a1e253e7
@@ -2,8 +2,10 @@ require "serbea/rouge_lexer"
2
2
  require "bridgetown-core"
3
3
 
4
4
  module Bridgetown
5
- class SerbeaView < RubyTemplateView
5
+ class SerbeaView < ERBView
6
+ alias_method :_erb_capture, :capture
6
7
  include Serbea::Helpers
8
+ alias_method :capture, :_erb_capture
7
9
 
8
10
  def partial(partial_name, options = {}, &block)
9
11
  options.merge!(options[:locals]) if options[:locals]
@@ -17,14 +19,6 @@ module Bridgetown
17
19
  site.in_source_dir(site.config[:partials_dir], "#{partial_name}.serb")
18
20
  ).render(self, options)
19
21
  end
20
-
21
- def markdownify(input = nil, &block)
22
- content = Bridgetown::Utils.reindent_for_markdown(
23
- block.nil? ? input.to_s : capture(&block)
24
- )
25
- converter = site.find_converter_instance(Bridgetown::Converters::Markdown)
26
- converter.convert(content).strip
27
- end
28
22
  end
29
23
 
30
24
  module Converters
@@ -1,3 +1,3 @@
1
1
  module Serbea
2
- VERSION = "0.10.1"
2
+ VERSION = "0.10.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serbea
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bridgetown Team