spec/helpers/generator.rb in ore-0.4.0 vs spec/helpers/generator.rb in ore-0.4.1
- old
+ new
@@ -25,9 +25,21 @@
def yard_opts
@path.join('.yardopts').read
end
+ def gitignore
+ lines = []
+
+ @path.join('.gitignore').read.each_line do |line|
+ unless (line.empty? && line =~ /\s*\#/)
+ lines << line.strip
+ end
+ end
+
+ return lines
+ end
+
def cleanup!
FileUtils.rm_r(ROOT)
end
end
end