golf 0.4.9 → 0.4.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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