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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c0d75ed6b31b7644966c11eadfdd5c7ec313eb245864b507592ce51822ded2c5
4
- data.tar.gz: 2ce03dd9a1f1a438e4b96ab2394566635565e126e78caed73cceaec4ede59ed1
3
+ metadata.gz: 9fff8de9faf874a66703eeafcb642b570a7bfc0d1a4ca8d716883c058800fa36
4
+ data.tar.gz: 758042bfb3bed69c6df29bb7da891ab406f0f8808feacfc7e930c71a4ecbcdd3
5
5
  SHA512:
6
- metadata.gz: 3bea57f485c649d6063fdb9234946b0816d37159f7536141f842d32cb5dfd84a54126c9e748aa51ef23cf561955a5fc881bfafbb309cbbc0c317f10854168ac1
7
- data.tar.gz: ed9da6ec35cc3d3a6cda7b7b85b8d16ae39c24df45edc07beaa4ee1be3e215b35076f0be87a784203a41eb6de89a956b48b1d7862b33f1e1108a7ae7a3af0909
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
- elsif method_name
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.18.6
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-12 00:00:00.000000000 Z
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.18.6
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.18.6
26
+ version: 0.19.0
27
27
  description:
28
28
  email: maintainers@bridgetownrb.com
29
29
  executables: []