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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1dd0be2da1cfdb77d20734c176b456a458e06e5b
4
- data.tar.gz: 995ccc899d450c477d3c26bd7a3c1e219e6e8a62
3
+ metadata.gz: b4e941809483194d134933db9ccc8f985383ff4f
4
+ data.tar.gz: 75557924121d4db8cd1147cbb45ce8233d4e2e70
5
5
  SHA512:
6
- metadata.gz: 2798edcdebe0af61ce996495f05b13547a3ab182544b5c7cb4cd8e7c3ece411d6315498ae68a77d2a951bf92e98722b2823bc30fe9b709e04c4fe7e1dcbbd2a5
7
- data.tar.gz: b1fa206ea0c9154833669bb8b2adedfec683bf4e17167ae138ed7f7635d1c399ba58f05c7f2bfda50fb8eb28f8cc89417ede60200750e6e4ed413bc319d81523
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
@@ -1,3 +1,3 @@
1
1
  module Blocks
2
- VERSION = "3.0.2"
2
+ VERSION = "3.0.3"
3
3
  end
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.2
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: 2017-12-11 00:00:00.000000000 Z
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