blocks 3.0.0.rc8 → 3.0.0.rc9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/docs/_includes/acknowledgements.md +2 -1
- data/lib/blocks/renderers/block_renderer.rb +1 -1
- data/lib/blocks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c873deb32381d56c053b7505ae57809532da555c
|
4
|
+
data.tar.gz: 2e6e465f4933a97fd98bae909826655a66ac86da
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa8493bff4fdac63d593e75d46eaa770c1075d5e18c48ac7c95fd271b7fbe6b67e3d79623ea7b7bac80269961c286bab454c18ef89866f778f70c8a02e8b7972
|
7
|
+
data.tar.gz: 3fc1889eccf148a4d9907d0e4620b0248a27aa9ef694b88b1e8a72c6030533e08a4c08059a5655a36a7e57e16bbd59fae87ca917c8a3ed7043c2eef3d32f016e
|
@@ -10,4 +10,5 @@ Special thanks to the following people for helping advance this gem and its corr
|
|
10
10
|
* [Jon Phillips](https://github.com/elguapo1611) - For helping me work out syntax and use cases for the Blocks gem
|
11
11
|
* [Various people and teams at LivingSocial](https://www.livingsocial.com/) - For allowing and believing in me to run with an experimental and unproven technology to help my gem start to take shape into what it is today.
|
12
12
|
* [Various people at MobileCause](https://www.mobilecause.com/) - For helping me to advance my vision for this gem into what it is today and what is being documented here.
|
13
|
-
* [Alexis Gormley](https://github.com/n2diving) - For suggesting the [Slate theme](https://github.com/lord/slate) for the documentation, designing the gem's branding, and proofing the documentation.
|
13
|
+
* [Alexis Gormley](https://github.com/n2diving) - For suggesting the [Slate theme](https://github.com/lord/slate) for the documentation, designing the gem's branding, and proofing the documentation.
|
14
|
+
* [Vaughn Weiss](https://github.com/VonTeacher) - For reviewing and revising the Blocks Docs.
|
@@ -2,7 +2,7 @@ module Blocks
|
|
2
2
|
class BlockRenderer < AbstractRenderer
|
3
3
|
def render(*args, runtime_context)
|
4
4
|
render_item = runtime_context.render_item
|
5
|
-
if render_item.is_a?(String)
|
5
|
+
if render_item.is_a?(String) || render_item.respond_to?(:to_partial_path)
|
6
6
|
output_buffer << partial_renderer.render(render_item, runtime_context)
|
7
7
|
elsif render_item.is_a?(Proc)
|
8
8
|
args = args + runtime_context.runtime_args
|
data/lib/blocks/version.rb
CHANGED