configuration 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README +0 -2
  2. data/lib/configuration.rb +7 -3
  3. data/samples/e.rb +0 -2
  4. metadata +2 -2
data/README CHANGED
@@ -222,8 +222,6 @@ SAMPLES
222
222
  p c.foo
223
223
  p c.bar
224
224
  p c.foobar
225
-
226
-
227
225
 
228
226
  ~ > cat config/e.rb
229
227
 
@@ -1,6 +1,6 @@
1
1
 
2
2
  class Configuration
3
- Version = '0.0.4'
3
+ Version = '0.0.5'
4
4
  def Configuration.version() Version end
5
5
 
6
6
  Path = [
@@ -92,11 +92,11 @@ class Configuration
92
92
  end
93
93
 
94
94
  def Send(m, *a, &b)
95
- Pure[self].send(m, *a, &b)
95
+ Method(m).call(*a, &b)
96
96
  end
97
97
 
98
98
  def Method m
99
- Pure[self].send('method', m)
99
+ @__configuration.method(m)
100
100
  end
101
101
 
102
102
  def self.evaluate configuration, options = {}, &block
@@ -114,6 +114,10 @@ class Configuration
114
114
  end
115
115
  end
116
116
 
117
+ def __configuration__
118
+ @__configuration
119
+ end
120
+
117
121
  def method_missing m, *a, &b
118
122
  if(a.empty? and b.nil?)
119
123
  return Pure[@__configuration].send(m, *a, &b)
@@ -10,5 +10,3 @@
10
10
  p c.foo
11
11
  p c.bar
12
12
  p c.foobar
13
-
14
-
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configuration
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ara T. Howard
@@ -9,7 +9,7 @@ autorequire: configuration
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-02-19 00:00:00 -07:00
12
+ date: 2008-02-20 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15