golf 0.4.5 → 0.4.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/golf/compiler.rb +2 -1
- data/lib/golf/version.rb +1 -1
- metadata +2 -2
data/lib/golf/compiler.rb
CHANGED
@@ -21,9 +21,10 @@ module Golf
|
|
21
21
|
|
22
22
|
def res_json
|
23
23
|
results = {}
|
24
|
+
path = "#{@golfpath}/"
|
24
25
|
Find.find(@golfpath) do |path|
|
25
26
|
start = @golfpath.length
|
26
|
-
e = path.slice(start, path.length-start)
|
27
|
+
e = path.slice(start+1, path.length-start-1)
|
27
28
|
f = URI.escape(e)
|
28
29
|
g = File.basename(e)
|
29
30
|
h = File.dirname(e) == "." ? [] : File.dirname(e).split("/")
|
data/lib/golf/version.rb
CHANGED