blocks 3.0.0.rc3 → 3.0.0.rc4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +0 -1
- data/Gemfile +1 -0
- data/lib/blocks/renderers/partial_renderer.rb +4 -1
- 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: 1e022666ec160d8b6eee526393d150b0b84c6af8
|
4
|
+
data.tar.gz: 41b615d2770f0e0a065a9a86db133b9bc89c5f97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a37e882249043b9651fda7c422eb3e9af4714d205ad71bdf7377d368744508e342b60829434c47471ab08be0e7d62922b9b5e7767e40f5031d2a1da2f5d65f2b
|
7
|
+
data.tar.gz: 39da51207e66968d0e1d4df45ce8de3f2a483fb5b59a6689b93b0d7e84d43d2fb3277463d2d79bd31577de04a821bcaa24b0d281279d496d235d46839f886c08
|
data/.rspec
CHANGED
data/Gemfile
CHANGED
@@ -1,7 +1,10 @@
|
|
1
1
|
module Blocks
|
2
2
|
class PartialRenderer < AbstractRenderer
|
3
3
|
def render(partial, options={}, &block)
|
4
|
-
|
4
|
+
if !options.is_a?(Blocks::RuntimeContext)
|
5
|
+
options = RuntimeContext.new(builder, options).to_hash.with_indifferent_access.deep_dup
|
6
|
+
end
|
7
|
+
overrides_and_provided_content = capture(builder, options, &block) if block_given?
|
5
8
|
locals = options.merge(
|
6
9
|
(options[:builder_variable] || :builder) => builder,
|
7
10
|
).symbolize_keys
|
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.0.
|
4
|
+
version: 3.0.0.rc4
|
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-
|
11
|
+
date: 2017-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: call_with_params
|