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 CHANGED
@@ -19,7 +19,11 @@ module Golf
19
19
  traverse("#{@golfpath}/components", "html")
20
20
  end
21
21
 
22
- def res_json(dir = @golfpath)
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
@@ -1,3 +1,3 @@
1
1
  module Golf
2
- VERSION = "0.4.9"
2
+ VERSION = "0.4.10"
3
3
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 4
8
- - 9
9
- version: 0.4.9
8
+ - 10
9
+ version: 0.4.10
10
10
  platform: ruby
11
11
  authors:
12
12
  - Micha Niskin, Alan Dipert, Julio Capote