golf 0.4.9 → 0.4.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/golf/compiler.rb +5 -1
- data/lib/golf/version.rb +1 -1
- metadata +2 -2
data/lib/golf/compiler.rb
CHANGED
@@ -19,7 +19,11 @@ module Golf
|
|
19
19
|
traverse("#{@golfpath}/components", "html")
|
20
20
|
end
|
21
21
|
|
22
|
-
def res_json
|
22
|
+
def res_json
|
23
|
+
JSON.dump(compile_res(@golfpath))
|
24
|
+
end
|
25
|
+
|
26
|
+
def compile_res(dir)
|
23
27
|
results = {}
|
24
28
|
mypath = dir.split('').last == "/" ? dir : dir+"/"
|
25
29
|
myroot = @golfpath.split('').last == "/" ? @golfpath : @golfpath+"/"
|
data/lib/golf/version.rb
CHANGED