uber_config 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/uber_config.rb +0 -9
- data/lib/uber_config/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed96b3e00a1b9f41981617c511804d0ef860faf4
|
4
|
+
data.tar.gz: 41f86bef49433de7556251fc6cdb53e940ef0ad5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1978b0e6d1530a2f4ac744e095644b99e6e32afaf3834ff4338e6d524a79b9c7629f2031dd1c0c1ce538cb3a5e18d19e7a11f82a49fe98df0c5699f357079df8
|
7
|
+
data.tar.gz: be81c7c16fa13f739b3bd49e901af9bf34bfee636e3fe61f6ea2a3164e6334990e1d1d72a1b344f43e992ccef31ae826130cdd6cd9ed4a50ced9297d50c71f08
|
data/lib/uber_config.rb
CHANGED
@@ -79,16 +79,11 @@ module UberConfig
|
|
79
79
|
end
|
80
80
|
end
|
81
81
|
|
82
|
-
#p Kernel.caller
|
83
82
|
caller_file = caller[0][0...(caller[0].index(":in"))]
|
84
83
|
caller_file = caller_file[0...(caller_file.rindex(":"))]
|
85
|
-
#p caller_file
|
86
84
|
caller_dir = File.dirname(caller_file)
|
87
|
-
#puts "caller_dir: " + caller_dir
|
88
85
|
caller_dir = File.expand_path(caller_dir)
|
89
|
-
#puts "caller_dir: " + caller_dir
|
90
86
|
caller_dir_split = caller_dir.split("/")
|
91
|
-
#p caller_dir_split
|
92
87
|
auto_dir_name = caller_dir_split.last
|
93
88
|
if auto_dir_name == "test"
|
94
89
|
caller_dir_split.pop
|
@@ -98,11 +93,8 @@ module UberConfig
|
|
98
93
|
# Now check near caller file
|
99
94
|
filenames.each do |file|
|
100
95
|
dir_and_file = dir.nil? ? [] : dir.dup
|
101
|
-
p dir_and_file
|
102
96
|
dir_and_file << file
|
103
|
-
p dir_and_file
|
104
97
|
location = File.join(dir_and_file)
|
105
|
-
#p location
|
106
98
|
cf = File.expand_path(location, caller_dir)
|
107
99
|
@config = load_from(cf)
|
108
100
|
return @config if @config
|
@@ -146,7 +138,6 @@ module UberConfig
|
|
146
138
|
|
147
139
|
def self.set_default_proc(hash)
|
148
140
|
#puts 'setting default proc'
|
149
|
-
#p hash
|
150
141
|
hash.default_proc = proc do |h, k|
|
151
142
|
case k
|
152
143
|
when String
|
data/lib/uber_config/version.rb
CHANGED