blocks 3.0.2 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/blocks/renderers/runtime_context.rb +6 -0
- data/lib/blocks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4e941809483194d134933db9ccc8f985383ff4f
|
4
|
+
data.tar.gz: 75557924121d4db8cd1147cbb45ce8233d4e2e70
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 315c441d6ba6a50d2432acbea6c704931e76ea7e0b498af6936f1c8e48897b8bcc01dd36134c01b6346c17e5fbadc56a373af1a25ad43ad610768800705c9972
|
7
|
+
data.tar.gz: c7bdf193b1b32eab6f7d1703d04c5582cbd6fa06f25d7bc950f27a98b440283e5858fea2eee327f9913aafeab5082e9c775239710d38b128d09e4ca4a22de85f
|
@@ -121,6 +121,12 @@ module Blocks
|
|
121
121
|
|
122
122
|
if render_strategy == RENDER_WITH_PROXY
|
123
123
|
add_proxy_options render_item
|
124
|
+
elsif render_item.nil? && builder.respond_to?(proxy_block_name)
|
125
|
+
Proc.new do |*args|
|
126
|
+
options = args.extract_options!
|
127
|
+
runtime_block = runtime_block || options[:block]
|
128
|
+
builder.send(proxy_block_name, *args, options, &runtime_block)
|
129
|
+
end
|
124
130
|
else
|
125
131
|
render_item
|
126
132
|
end
|
data/lib/blocks/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: blocks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrew Hunter
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: call_with_params
|