golf 0.6.21 → 0.6.22
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/Gemfile.lock +6 -1
- data/lib/golf/compiler.rb +3 -2
- data/lib/golf/version.rb +1 -1
- metadata +1 -1
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
golf (0.
|
|
4
|
+
golf (0.6.21)
|
|
5
|
+
compass
|
|
6
|
+
haml
|
|
5
7
|
hpricot
|
|
6
8
|
json
|
|
7
9
|
rack
|
|
@@ -10,6 +12,9 @@ PATH
|
|
|
10
12
|
GEM
|
|
11
13
|
remote: http://rubygems.org/
|
|
12
14
|
specs:
|
|
15
|
+
compass (0.10.6)
|
|
16
|
+
haml (>= 3.0.4)
|
|
17
|
+
haml (3.0.25)
|
|
13
18
|
hpricot (0.8.4)
|
|
14
19
|
json (1.5.1)
|
|
15
20
|
rack (1.2.2)
|
data/lib/golf/compiler.rb
CHANGED
|
@@ -132,8 +132,9 @@ module Golf
|
|
|
132
132
|
def traverse(dir, type)
|
|
133
133
|
results = {}
|
|
134
134
|
if File.exists?(dir) and File.directory?(dir)
|
|
135
|
-
Dir["#{dir}
|
|
136
|
-
|
|
135
|
+
Dir["#{dir}/**/*"].sort.reverse.each do |path|
|
|
136
|
+
puts path
|
|
137
|
+
next if path.include?('~') or !path.include?(".#{type}")
|
|
137
138
|
name = path.split('/').last.gsub(".#{type}",'')
|
|
138
139
|
data = filtered_read(path)
|
|
139
140
|
results = results.merge({ name => { "name" => name, "#{type}" => data }})
|
data/lib/golf/version.rb
CHANGED