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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 242d94c843469d6a2d4157e4cc145043c4895a79
4
- data.tar.gz: 842fdfde31635095c2792cdffd18289f27a13ad6
3
+ metadata.gz: 1e022666ec160d8b6eee526393d150b0b84c6af8
4
+ data.tar.gz: 41b615d2770f0e0a065a9a86db133b9bc89c5f97
5
5
  SHA512:
6
- metadata.gz: f3369f0bdf67c5c843e86f9970439c3fbff4d9f016720b20cac2a0bcd7c7c982bb3bf93d35b57e22b35f9a4a6ab65de1664af6a05bd70806ef0afb4efb9216e7
7
- data.tar.gz: 38fcbef4d4c1c88f786fa168f0bf551f6bcb62e0aa2aae3327a7d5f2295a6b48f43d82bc24a328a9b7f4efef489ceaf2740010ba72803f56b60a04a5faaf9726
6
+ metadata.gz: a37e882249043b9651fda7c422eb3e9af4714d205ad71bdf7377d368744508e342b60829434c47471ab08be0e7d62922b9b5e7767e40f5031d2a1da2f5d65f2b
7
+ data.tar.gz: 39da51207e66968d0e1d4df45ce8de3f2a483fb5b59a6689b93b0d7e84d43d2fb3277463d2d79bd31577de04a821bcaa24b0d281279d496d235d46839f886c08
data/.rspec CHANGED
@@ -1,4 +1,3 @@
1
1
  --colour
2
2
  --backtrace
3
- --exclude-pattern "spec/features/*_spec.rb"
4
3
  --format documentation
data/Gemfile CHANGED
@@ -5,6 +5,7 @@ gemspec
5
5
  gem "nokogiri"
6
6
  gem "capybara"
7
7
  gem "rspec", "~> 3.6.0"
8
+ gem "arel", github: "rails/arel"
8
9
  gem "rails", github: "rails/rails"
9
10
  gem 'rack'
10
11
  gem "shoulda-matchers", "~> 2.0"
@@ -1,7 +1,10 @@
1
1
  module Blocks
2
2
  class PartialRenderer < AbstractRenderer
3
3
  def render(partial, options={}, &block)
4
- overrides_and_provided_content = capture(builder, &block) if block_given?
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
@@ -1,3 +1,3 @@
1
1
  module Blocks
2
- VERSION = "3.0.0.rc3"
2
+ VERSION = "3.0.0.rc4"
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.rc3
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-07-21 00:00:00.000000000 Z
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