djc 1.1.0 → 1.1.1

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.
Files changed (2) hide show
  1. data/lib/djc.rb +2 -1
  2. metadata +2 -2
data/lib/djc.rb CHANGED
@@ -318,7 +318,8 @@ module DJC
318
318
  @partials[name] = block
319
319
  self
320
320
  else
321
- dsl = __djc_partial(name).call(*args)
321
+ partial = __djc_partial(name)
322
+ dsl = instance_exec(*args, &partial)
322
323
  dsl.__djc_reparent(self)
323
324
  @nodes << dsl
324
325
  dsl
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: djc
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-12-08 00:00:00.000000000 Z
13
+ date: 2012-12-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec