middleman-core 4.3.1 → 4.3.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: b71eed8a1dc3fe20baffc523a4d6776f618d495c1e9768fbcd0571dc0b77b8ad
4
- data.tar.gz: bc16caf2903f6bc30cbd351985784f197a32a51049f46dd7024bd606530df77b
3
+ metadata.gz: fb75ea4ac0afae1968d76af0348066991e0fe4d6be8b7554cb0fd57744da8ae5
4
+ data.tar.gz: a01a7220b19626efe15591e61c98b7698b6ab92d9be9734f6044e1a3fe7ae52e
5
5
  SHA512:
6
- metadata.gz: 163d0781408379a39a2f1ab2a6b50a482fe506a63eb045c6beba5689aeccda79e2491c52cdab8222d1c750ce63cbbd2ac6595954e8a167d681685ae4bbdbb9e2
7
- data.tar.gz: 73d04b696fd1687e77e8159c689f4034dd72882e13b649cf8c629797e09134a82972abc8fb4edab1cb3c4c8e181c638e4b78897ceeb09a16d9e93efff17742a1
6
+ metadata.gz: fde264ab5c1cfce6903ebe2cd32e461ce6aef586085cf10b3c1bb2d2bc7fb7c1423094032c7f4a2fbea57ef3f0037ff2cb7e354ccacff80bee87a4b77aff6cda
7
+ data.tar.gz: ad5160848a55cc8353856d0ad556d6e14dbac20f62f29c71886fa67d29334412d892fcdf070e0d3ec6ea4541f1c58efefff9e5371c085968206e80ecfded7d2c
@@ -30,6 +30,10 @@ module Middleman
30
30
 
31
31
  def evaluate(scope, locals, &block)
32
32
  options = {}.merge!(@options).merge!(filename: eval_file, line: line, context: @context || scope)
33
+ if options.include?(:outvar)
34
+ options[:buffer] = options.delete(:outvar)
35
+ options[:save_buffer] = true
36
+ end
33
37
  @engine = ::Haml::Engine.new(data, options)
34
38
  output = @engine.render(scope, locals, &block)
35
39
 
@@ -44,6 +48,9 @@ module Middleman
44
48
 
45
49
  ::Haml::Options.defaults[:context] = nil
46
50
  ::Haml::Options.send :attr_accessor, :context
51
+ if defined?(::Haml::TempleEngine)
52
+ ::Haml::TempleEngine.define_options context: nil
53
+ end
47
54
 
48
55
  # rubocop:disable NestedMethodDefinition
49
56
  [::Haml::Filters::Sass, ::Haml::Filters::Scss, ::Haml::Filters::Markdown].each do |f|
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  # Current Version
3
3
  # @return [String]
4
- VERSION = '4.3.1'.freeze unless const_defined?(:VERSION)
4
+ VERSION = '4.3.2'.freeze unless const_defined?(:VERSION)
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.3.1
4
+ version: 4.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Reynolds
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2019-01-14 00:00:00.000000000 Z
13
+ date: 2019-01-16 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler