buff-config 1.0.0 → 1.0.1

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: 0cefc4c253885c77e085503fbc3c1248b52e8158
4
- data.tar.gz: 7be452ba9e2faa682039c3a2e71bdbfa6658c504
3
+ metadata.gz: 604c330c124ac44b9709fdc1d1b26b32fdbe72ab
4
+ data.tar.gz: 3291fa52af9fd86c75fc7cc3b8c742eac9a10667
5
5
  SHA512:
6
- metadata.gz: aabf0a89dd3e3b031eea379a5fa3fcbbb67c9e59029523d8cdaa727b1a75ca3cca8378d4f71534ccf37abb870fc3ae03c37dda65d04f3aa4a3af1ce460fa9b39
7
- data.tar.gz: c575d7e19a04141a02f5e4e63f45a62c83d8a495d58f7b56869092e04c3abcacd6b087c63a11f3e892a40a75975d1860aeb0f2e90ab80e3bb33e15cd48190790
6
+ metadata.gz: e51c5e2aca365be77eb2ae6f3ffa1cf7a0831c0b5dd307fd9c9de6c22735d39c5bbb0eae596668ba08aab705406a0d4047b6580330796e7c8af164501e9f061e
7
+ data.tar.gz: dc650b64be4ed24e832bd0cae533262d074af35d8a210ca85eaf0ae30127f1a3e25eecff203d245d9c7ef75bea5e37a4067dcdee1e7c890e25931ab027bb814a
@@ -35,19 +35,25 @@ module Buff
35
35
  Buff::Config::Ruby.platform_specific_path(path)
36
36
  end
37
37
 
38
- def method_missing(m, *args, &block)
39
- if args.size > 0
40
- attributes[m.to_sym] = (args.length == 1) ? args[0] : args
41
- elsif @context && @context.respond_to?(m)
42
- @context.send(m, *args, &block)
43
- else
44
- super
45
- end
46
- end
47
-
48
38
  private
49
39
 
50
40
  attr_reader :attributes
41
+
42
+ def method_missing(m, *args, &block)
43
+ if args.size > 0
44
+ attributes[m.to_sym] = (args.length == 1) ? args[0] : args
45
+ elsif @context && @context.respond_to?(m)
46
+ @context.send(m, *args, &block)
47
+ else
48
+ Proxy.new
49
+ end
50
+ end
51
+
52
+ class Proxy
53
+ def method_missing(m, *args, &block)
54
+ self
55
+ end
56
+ end
51
57
  end
52
58
 
53
59
  class << self
@@ -1,5 +1,5 @@
1
1
  module Buff
2
2
  module Config
3
- VERSION = "1.0.0"
3
+ VERSION = "1.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: buff-config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie Winsor
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-06-03 00:00:00.000000000 Z
12
+ date: 2014-07-28 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: varia_model