bridgetown-builder 0.18.6 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/bridgetown-builder/dsl/liquid.rb +4 -4
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9fff8de9faf874a66703eeafcb642b570a7bfc0d1a4ca8d716883c058800fa36
|
4
|
+
data.tar.gz: 758042bfb3bed69c6df29bb7da891ab406f0f8808feacfc7e930c71a4ecbcdd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b81e23427152af74cadc1e7d6abb404d015cee5de96051401697b3dc63af96b101923fbdca796da16fc2dff26553139cfdb965381bd77162b0cb3eb5cfecedd
|
7
|
+
data.tar.gz: 2ad2e19152fcc32ec5fb4818afd6a274b27618a341a95856111bb12bbca6286de4181a97ee156c931232a5e3e42ca370c0da83db68bc6348f5da2f728495d2c3
|
@@ -4,16 +4,16 @@ module Bridgetown
|
|
4
4
|
module Builders
|
5
5
|
module DSL
|
6
6
|
module Liquid
|
7
|
-
def liquid_filter(filter_name, method_name = nil, &block)
|
7
|
+
def liquid_filter(filter_name, method_name = nil, filters_scope: false, &block)
|
8
8
|
builder_self = self
|
9
9
|
m = Module.new
|
10
10
|
|
11
|
-
if block
|
11
|
+
if block && !filters_scope
|
12
12
|
m.define_method filter_name do |*args|
|
13
13
|
builder_self.instance_exec(*args, &block)
|
14
14
|
end
|
15
|
-
|
16
|
-
block = method(method_name)
|
15
|
+
else
|
16
|
+
block = method(method_name) if method_name
|
17
17
|
m.define_method filter_name, &block
|
18
18
|
end
|
19
19
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.19.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bridgetown Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-12-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bridgetown-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.19.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.19.0
|
27
27
|
description:
|
28
28
|
email: maintainers@bridgetownrb.com
|
29
29
|
executables: []
|