emd 0.4.0 → 0.5.0

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: b6a120fcc380aac1adc2274b84b9ffeb5a17de5f34394fa3b021ef094a64e0dc
4
- data.tar.gz: 8febe211f709ea3955ed3644b59c2024aefb944027ea06180792fad9f031c7e7
3
+ metadata.gz: 1e8dc43dfd6b92d9f64be7efb17ffeb7bd91e4499ee86864dde7b9c6ebd0c2e7
4
+ data.tar.gz: 2454b8a5241453b7f6f63111d3d954c737ca2430f2ab2195b83cfbd9bfa83519
5
5
  SHA512:
6
- metadata.gz: 1b6bdfac43d21736ee4a43cec0301abf086162cb80a3518b3e9c79518474c806407c2215b3f8876d3693c44d37b9e4907f873239a2713d2217f4b822312557b8
7
- data.tar.gz: 3e25d0961ca784466ffb95a120ba75791a113dc8fbcb2c96accaeede9f0f9538d19a716b4e77f011f2a10f7eba620aa1ec4e46cc95d20101e3bd45f445d23f78
6
+ metadata.gz: 3b81bec64727eb98c3eeefdceaca3f03d4fb353f6109ceb55152fd211f75ba05e3bafcda10145210d8608d28781b7a4a53eb2e90288f58655fcc89a8abf4d715
7
+ data.tar.gz: 2cbfd17832dcb68f1f56969dc18563afb92769706b28ddf3126d9e168a396527cd2af02fedaf9cd17c6f7febeee6f463d06f6d793a0e7bfe9236c4e72b83d9c3
@@ -13,8 +13,13 @@ module MarkdownTemplateHandler
13
13
  @erb ||= ActionView::Template.registered_template_handler(:erb)
14
14
  end
15
15
 
16
- def self.call(template)
17
- compiled_source = erb.call(template)
16
+ def self.call(template, source = nil)
17
+
18
+ compiled_source = if source
19
+ erb.call(template, source)
20
+ else
21
+ erb.call(template)
22
+ end
18
23
 
19
24
  %(Redcarpet::Markdown.new(CodeRayify.new(:filter_html => false,
20
25
  :hard_wrap => true),
@@ -1,3 +1,3 @@
1
1
  module Emd
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: emd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bryan Lim
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-08-12 00:00:00.000000000 Z
11
+ date: 2019-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redcarpet