Fix calling to_yaml on 1.9

This commit is contained in:
Joshua Peek
2012-06-22 10:15:14 -05:00
parent 5521dd08a0
commit a7108e4086
2 changed files with 2 additions and 2 deletions

View File

@@ -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