"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "Rakefile" between
linguist-7.23.0.tar.gz and linguist-7.24.0.tar.gz

About: Linguist is a library mainly to detect the programming language used in a file (on GitHub.com it is used to detect blob languages, ignore binary or vendored files, suppress generated files in diffs, and generate language breakdown graphs).

Rakefile  (linguist-7.23.0):Rakefile  (linguist-7.24.0)
skipping to change at line 62 skipping to change at line 62
task :flex do task :flex do
if `flex -V` !~ /^flex \d+\.\d+\.\d+/ if `flex -V` !~ /^flex \d+\.\d+\.\d+/
fail "flex not detected" fail "flex not detected"
end end
system "cd ext/linguist && flex tokenizer.l" system "cd ext/linguist && flex tokenizer.l"
end end
# The error count will need to be adjusted here until such time as all grammars are 100% error free. # The error count will need to be adjusted here until such time as all grammars are 100% error free.
desc "Check that compiling the grammars doesn't introduce any new unexpected err ors" desc "Check that compiling the grammars doesn't introduce any new unexpected err ors"
task :check_grammars do task :check_grammars do
expected_error_count = 32 # This count should only ever go down. If it goes u p, there's a new issue that needs to be addressed before updating the grammar. expected_error_count = 31 # This count should only ever go down. If it goes u p, there's a new issue that needs to be addressed before updating the grammar.
rm_rf "linguist-grammars" rm_rf "linguist-grammars"
output, status = Open3.capture2e("script/grammar-compiler", "compile", "-o", " linguist-grammars") output, status = Open3.capture2e("script/grammar-compiler", "compile", "-o", " linguist-grammars")
errors_found = output[/The grammar library contains ([0-9]+) errors/, 1].to_i errors_found = output[/The grammar library contains ([0-9]+) errors/, 1].to_i
missing_grammars = output.scan(/Missing scope in repository: `([^`].+)` is lis ted in grammars.yml but cannot be found/) missing_grammars = output.scan(/Missing scope in repository: `([^`].+)` is lis ted in grammars.yml but cannot be found/)
unless missing_grammars.empty? unless missing_grammars.empty?
fail <<~MISSING fail <<~MISSING
#{output} #{output}
ERROR: Could not find the following grammars: ERROR: Could not find the following grammars:
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)