mirror of
https://github.com/KevinMidboe/linguist.git
synced 2025-10-29 17:50:22 +00:00
Fix calling to_yaml on 1.9
This commit is contained in:
@@ -170,7 +170,7 @@ module Linguist
|
||||
@tokens.sort.each do |language, tokens|
|
||||
data << " #{{language => true}.to_yaml.lines.to_a[1].sub(/ true/, "")}"
|
||||
tokens.sort.each do |token, count|
|
||||
data << " #{{token => count}.to_yaml.lines.to_a[1]}"
|
||||
data << " #{{token => count}.to_yaml.lines.to_a[1].sub(/! /, "")}"
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user