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 +4 -4
- data/lib/maglove/engine/scope.rb +1 -2
- data/lib/maglove/engine/version.rb +1 -1
- data/lib/maglove/engine.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 39200244c164c39a252df7cf91240b79b13939cf
|
4
|
+
data.tar.gz: d304cc2fb57d8bbcb535bbe6f4f975d5cfda8241
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 940f678ba5e9f7b219085f748d6cb6a0c28288c6918fc29d8c81057c24b803a4e80d03fa46a19d99015f029d50782013580e287436245064d4511b6c82f4011d
|
7
|
+
data.tar.gz: '008e36970409da3dfd4a4cafc144abb6caf92f696a8eeeaed1cfd0726acd89486cca642b3e88b44c8f322712c7d08142a9b59cba25ffd8bf22e5d912698a07ed'
|
data/lib/maglove/engine/scope.rb
CHANGED
data/lib/maglove/engine.rb
CHANGED
@@ -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(
|
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.
|
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-
|
11
|
+
date: 2018-03-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: haml
|