creole 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,10 +4,11 @@ require 'creole'
4
4
  module Creole
5
5
  class Template < Tilt::Template
6
6
  def prepare
7
- @creole = Creole::Parser.new(data,
8
- :allowed_schemes => options[:allowed_schemes],
9
- :extensions => options[:extensions],
10
- :no_escape => options[:no_escape])
7
+ opts = {}
8
+ [:allowed_schemes, :extensions, :no_escape].each do |k|
9
+ opts[k] = options[k] if options[k]
10
+ end
11
+ @creole = Creole::Parser.new(data, opts)
11
12
  @output = nil
12
13
  end
13
14
 
@@ -1,3 +1,3 @@
1
1
  module Creole
2
- VERSION = '0.4.0'
2
+ VERSION = '0.4.1'
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 0
9
- version: 0.4.0
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Lars Christensen