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: c36f73b0c33a2bf052be5e78359a241dce3034f144f9ff12bdd37515ba008f5a
4
- data.tar.gz: fb6296ecf818c0fe40244359672babde4f4353549b4972ca5c112ff8ed8579bf
3
+ metadata.gz: 1d25b97e8914ef6cab51dcd4de4c2f17f8ba44fa27acf05ed87ef205785a440f
4
+ data.tar.gz: 556ab43a620ac12adf2d9e68abf42cb0a0143abc513dc2f579b8ee030103cf9b
5
5
  SHA512:
6
- metadata.gz: 52c7d713936d04fbcd76e0605d0eaf022800c3ca0ce3e5424630ff12486fa0cfdf786c693099211e2e2a5b2fe483a8eb1ab80a96eef92552397eaef348579ee8
7
- data.tar.gz: 76d621f1fc7779830b15768ae21c37e95c5baf0a0949deb59d5d6677a35d68519d12a1bb05299c292420ca1062d73267acb944e77d88ae45b1a57499361c90b2
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] = yield if block_given?
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/AbcSize, Metrics/MethodLength
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/AbcSize, Metrics/MethodLength
40
+ # rubocop:enable Metrics/MethodLength
41
41
 
42
42
  private
43
43
 
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bridgetown
4
- VERSION = "0.18.0"
4
+ VERSION = "0.18.1"
5
5
  CODE_NAME = "Taylor Street"
6
6
  end
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.0
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-29 00:00:00.000000000 Z
11
+ date: 2020-10-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport