bridgetown-core 0.18.0 → 0.18.1
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d25b97e8914ef6cab51dcd4de4c2f17f8ba44fa27acf05ed87ef205785a440f
|
4
|
+
data.tar.gz: 556ab43a620ac12adf2d9e68abf42cb0a0143abc513dc2f579b8ee030103cf9b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cc580ed174c76f365c6b15fff1dbf7927c1b94735833496f5397dff564688e5c132f120320158fc201cbc9b2f8fb25724b428cc99ed7021d9c1a478d860cecb9
|
7
|
+
data.tar.gz: 50ba14145c5e255e3a0c10c22ea067fe655fd97b47596359a13762fc33dd323c7183015b1908106a21a7387064f181bba3f880f1520ea33104c2baa153d96b53
|
@@ -20,8 +20,6 @@ class Bridgetown::Site
|
|
20
20
|
print_stats if config["profile"]
|
21
21
|
end
|
22
22
|
|
23
|
-
# rubocop:disable Metrics/AbcSize
|
24
|
-
|
25
23
|
# Reset all in-memory data and content.
|
26
24
|
# @return [void]
|
27
25
|
def reset
|
@@ -49,8 +47,6 @@ class Bridgetown::Site
|
|
49
47
|
Bridgetown::Hooks.trigger :site, :after_reset, self
|
50
48
|
end
|
51
49
|
|
52
|
-
# rubocop:enable Metrics/AbcSize
|
53
|
-
|
54
50
|
# Read data from disk and load it into internal memory.
|
55
51
|
# @return [void]
|
56
52
|
def read
|
@@ -38,8 +38,8 @@ module Bridgetown
|
|
38
38
|
site.site_payload.site
|
39
39
|
end
|
40
40
|
|
41
|
-
def liquid_render(component, options = {})
|
42
|
-
options[:_block_content] =
|
41
|
+
def liquid_render(component, options = {}, &block)
|
42
|
+
options[:_block_content] = capture(&block) if block && respond_to?(:capture)
|
43
43
|
render_statement = _render_statement(component, options)
|
44
44
|
|
45
45
|
template = site.liquid_renderer.file(
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module Bridgetown
|
4
4
|
module Tags
|
5
5
|
class BlockRenderTag < Liquid::Block
|
6
|
-
# rubocop:disable Metrics/
|
6
|
+
# rubocop:disable Metrics/MethodLength
|
7
7
|
def render(context)
|
8
8
|
context.stack({}) do
|
9
9
|
# unindent the incoming text
|
@@ -37,7 +37,7 @@ module Bridgetown
|
|
37
37
|
.render_tag(context, +"")
|
38
38
|
end
|
39
39
|
end
|
40
|
-
# rubocop:enable Metrics/
|
40
|
+
# rubocop:enable Metrics/MethodLength
|
41
41
|
|
42
42
|
private
|
43
43
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bridgetown-core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.1
|
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-10-
|
11
|
+
date: 2020-10-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|