bin/smoke_runner.rb in steep-0.27.0 vs bin/smoke_runner.rb in steep-0.28.0
- old
+ new
@@ -17,25 +17,24 @@
Expectation = Struct.new(:line, :message, :path, :starts) do
attr_accessor :prefix_test
end
-allowed_paths = []
-
failed = false
ARGV.each do |arg|
dir = Pathname(arg)
puts "🏇 Running smoke test in #{dir}..."
rb_files = []
expectations = []
-
+ allowed_paths = []
+
dir.children.each do |file|
if file.extname == ".rb"
buffer = ::Parser::Source::Buffer.new(file.to_s)
buffer.source = file.read
- parser = ::Parser::Ruby25.new
+ parser = ::Parser::Ruby27.new
_, comments, _ = parser.tokenize(buffer)
comments.each do |comment|
src = comment.text.gsub(/\A#\s*/, '')