gherkin 1.0.1-i386-mswin32 → 1.0.2-i386-mswin32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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