golf 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- golf (0.5.3)
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}/**/*.#{type}"].sort.reverse.each do |path|
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
@@ -1,3 +1,3 @@
1
1
  module Golf
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: golf
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.6.2
5
+ version: 0.6.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Micha Niskin, Alan Dipert, Julio Capote