maglove-engine 2.0.9 → 2.0.10

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
  SHA1:
3
- metadata.gz: 484080c3c8f030ce5fa228db032775011698c1c9
4
- data.tar.gz: 29828f14f890c547baa44a72994aca676b03034a
3
+ metadata.gz: 39200244c164c39a252df7cf91240b79b13939cf
4
+ data.tar.gz: d304cc2fb57d8bbcb535bbe6f4f975d5cfda8241
5
5
  SHA512:
6
- metadata.gz: 8b115c858c2c104d01991faad2851b851f5112232b2f09fac0c650590f188f326ce74010fac4ac3d2e9410d023599f3685d0ae01960fa7965ba40f66f2546a60
7
- data.tar.gz: 96a8f07e48b44d1555415b21a695edc46c14e451c024940ebbf1e0aa11e073162c951b15b1bd2c7f0bca961722df9dd4ea1d7e9b355ad07462722dbb4c911c11
6
+ metadata.gz: 940f678ba5e9f7b219085f748d6cb6a0c28288c6918fc29d8c81057c24b803a4e80d03fa46a19d99015f029d50782013580e287436245064d4511b6c82f4011d
7
+ data.tar.gz: '008e36970409da3dfd4a4cafc144abb6caf92f696a8eeeaed1cfd0726acd89486cca642b3e88b44c8f322712c7d08142a9b59cba25ffd8bf22e5d912698a07ed'
@@ -1,8 +1,7 @@
1
1
  module Maglove
2
2
  module Engine
3
3
  class Scope
4
- def initialize(engine, variables = {})
5
- @engine = engine
4
+ def initialize(variables = {})
6
5
  @variables = variables
7
6
  end
8
7
 
@@ -1,5 +1,5 @@
1
1
  module Maglove
2
2
  module Engine
3
- VERSION = "2.0.9"
3
+ VERSION = "2.0.10"
4
4
  end
5
5
  end
@@ -26,7 +26,7 @@ module Maglove
26
26
 
27
27
  def self.render(haml, variables = {})
28
28
  engine = Haml::Engine.new(haml, remove_whitespace: true)
29
- scope = Scope.new(engine, variables)
29
+ scope = Scope.new(variables)
30
30
  engine.render(scope)
31
31
  rescue StandardError => e
32
32
  raise RenderError.new(e.message, e)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maglove-engine
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.9
4
+ version: 2.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Strebitzer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-03-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml