golf 0.6.2 → 0.6.3
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 -3
- 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,8 @@ 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
|
-
next if path.include?('~')
|
135
|
+
Dir["#{dir}/**/*"].sort.reverse.each do |path|
|
136
|
+
next if path.include?('~') or !path.include?(".#{type}")
|
137
137
|
name = path.split('/').last.gsub(".#{type}",'')
|
138
138
|
data = filtered_read(path)
|
139
139
|
results = results.merge({ name => { "name" => name, "#{type}" => data }})
|
@@ -170,7 +170,7 @@ module Golf
|
|
170
170
|
|
171
171
|
#load from files, ".js.coffee", etc
|
172
172
|
Dir["#{component_dir}/*"].each do |file_path|
|
173
|
-
next if file_path.include('~')
|
173
|
+
next if file_path.include?('~')
|
174
174
|
valid_arr = path_valid_for_filtering?(file_path)
|
175
175
|
if valid_arr
|
176
176
|
filter_name = valid_arr[1]
|
data/lib/golf/version.rb
CHANGED