blocks 3.0.0.rc6 → 3.0.0.rc7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '018a7c22841a5dd37edc183e18a0a105c52dfdbb'
4
- data.tar.gz: b869d230657f1eb1740a135b3a46694cd7edc737
3
+ metadata.gz: b2c9902373a222d24d5785b7485b9fada199f43d
4
+ data.tar.gz: 701646e71d0644b84e3380fe2d7120165e055c21
5
5
  SHA512:
6
- metadata.gz: 954c8fcaa1290b02b06ecc32b1fedcf1b3f23f89fd74d2578a83763b7b53492ee43cb3af80f759f38ad19505b9f10e20eac11e6e750817373768da0e6de297a5
7
- data.tar.gz: 8897465d0814eec1ac500ad1ce24616217d2a38cfef6055f7f48466a19c66be2a9b50a2024764512f38a9b19399bc4dd80050f1284bcf22f4ff641e27a532824
6
+ metadata.gz: 9c747b34bcbdc47dd542fded6ac3794a36375dc34fa4ab9301557c7cf622a241d6be4fac2df10470024efc42e948db8ba58e4e22e4be75abf8e5c1f979f244bd
7
+ data.tar.gz: 10b5a023ae6ce04e9f32b22f0c9c58bcc3544d6c7fd404af618c2df542f7f6cada78433d1dd4dd19793b339c69e5d400e0af0130a64f4688a46c3ff933f38db1
@@ -7,7 +7,12 @@ module Blocks
7
7
  overrides_and_provided_content = capture(builder, options, &block) if block_given?
8
8
  locals = options.merge(
9
9
  (options[:builder_variable] || :builder) => builder,
10
- ).symbolize_keys
10
+ )
11
+ locals = if locals.respond_to?(:deep_symbolize_keys)
12
+ locals.deep_symbolize_keys
13
+ else
14
+ locals.symbolize_keys
15
+ end
11
16
  locals[:options] = options
12
17
  view.render(layout: partial, locals: locals) do |*args|
13
18
  if overrides_and_provided_content
@@ -1,3 +1,3 @@
1
1
  module Blocks
2
- VERSION = "3.0.0.rc6"
2
+ VERSION = "3.0.0.rc7"
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.0.rc6
4
+ version: 3.0.0.rc7
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-09-19 00:00:00.000000000 Z
11
+ date: 2017-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: call_with_params