golf 0.6.21 → 0.6.22

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,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}/**/*.#{type}"].sort.reverse.each do |path|
136
- next if path.include?('~')
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
@@ -1,3 +1,3 @@
1
1
  module Golf
2
- VERSION = "0.6.21"
2
+ VERSION = "0.6.22"
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.21
5
+ version: 0.6.22
6
6
  platform: ruby
7
7
  authors:
8
8
  - Micha Niskin, Alan Dipert, Julio Capote