gherkin 1.0.1-i386-mingw32 → 1.0.2-i386-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,16 +0,0 @@
1
- #!/usr/bin/env ruby
2
- $:.unshift(File.dirname(__FILE__) + '/../lib') unless $:.include?(File.dirname(__FILE__) + '/../lib')
3
-
4
- require 'stringio'
5
- require 'gherkin'
6
- require 'gherkin/tools/pretty_printer'
7
-
8
- Dir[ARGV[0]].each do |f|
9
- purdy = StringIO.new
10
- listener = Gherkin::Tools::PrettyPrinter.new(purdy)
11
- parser = Gherkin::Parser.new(listener, true) # We could skip the parser here, if we don't want to verify well-formedness
12
- lexer = Gherkin::I18nLexer.new(parser)
13
- lexer.scan(IO.read(f))
14
- purdy.rewind
15
- File.open(f, 'w') {|io| io.write(purdy.read)}
16
- end