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 +4 -4
- data/lib/buff/config/ruby.rb +16 -10
- data/lib/buff/config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 604c330c124ac44b9709fdc1d1b26b32fdbe72ab
|
4
|
+
data.tar.gz: 3291fa52af9fd86c75fc7cc3b8c742eac9a10667
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e51c5e2aca365be77eb2ae6f3ffa1cf7a0831c0b5dd307fd9c9de6c22735d39c5bbb0eae596668ba08aab705406a0d4047b6580330796e7c8af164501e9f061e
|
7
|
+
data.tar.gz: dc650b64be4ed24e832bd0cae533262d074af35d8a210ca85eaf0ae30127f1a3e25eecff203d245d9c7ef75bea5e37a4067dcdee1e7c890e25931ab027bb814a
|
data/lib/buff/config/ruby.rb
CHANGED
@@ -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
|
data/lib/buff/config/version.rb
CHANGED
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.
|
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-
|
12
|
+
date: 2014-07-28 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: varia_model
|