baldr 0.3.4 → 0.3.5

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.
data/lib/baldr/builder.rb CHANGED
@@ -20,7 +20,13 @@ class Baldr::Builder
20
20
  transaction = Baldr::Transaction.new
21
21
  @transactions << transaction
22
22
 
23
- transaction.instance_eval &block if block_given?
23
+ if block_given?
24
+ if block.arity == 0
25
+ transaction.instance_eval &block
26
+ else
27
+ block.call(transaction)
28
+ end
29
+ end
24
30
  end
25
31
 
26
32
  def prepare!
data/lib/baldr/segment.rb CHANGED
@@ -81,7 +81,7 @@ class Baldr::Segment
81
81
  if block.arity == 0
82
82
  segment.instance_eval &block
83
83
  else
84
- yield(segment)
84
+ block.call(segment)
85
85
  end
86
86
  end
87
87
  else
data/lib/baldr/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Baldr
2
- VERSION = '0.3.4'
2
+ VERSION = '0.3.5'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: baldr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: