configurer 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.1
1
+ 0.4.2
@@ -12,7 +12,7 @@ module Configurer
12
12
  define_method sym do
13
13
  frame = Module===self ? self : self.class
14
14
  blk = arr.inject(nil){ |m, e| m || e[sym] }
15
- frame.instance_exec(&blk)
15
+ frame.instance_eval(&blk)
16
16
  end
17
17
  end
18
18
  end
@@ -53,13 +53,16 @@ class TestConfigable < Test::Unit::TestCase
53
53
  extend Configurer
54
54
  config :f do "A"; end
55
55
  config :g do f; end
56
+ config :h do g; end
56
57
  end
57
58
  class ::D
58
59
  extend Configurer
60
+ include ::C
59
61
  config_from ::C
60
62
  end
61
63
 
62
- assert_equal 'A', D.new.g
64
+ assert_equal 'A', D.new.h
65
+ assert_equal 'A', D.h
63
66
  end
64
67
 
65
68
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 1
9
- version: 0.4.1
8
+ - 2
9
+ version: 0.4.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Joe Edelman
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-26 00:00:00 -07:00
17
+ date: 2010-10-07 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies: []
20
20