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

@@ -11,7 +11,7 @@ end
file 'lib/linguist/classifier.yml' => Dir['samples/**/*'] do |f|
require 'linguist/sample'
classifier = Linguist::Sample.classifier
File.open(f.name, 'w') { |io| YAML.dump(classifier, io) }
File.open(f.name, 'w') { |io| classifier.to_yaml(io) }
end
CLOBBER.include 'lib/linguist/classifier.yml'