mirror of
https://github.com/KevinMidboe/linguist.git
synced 2026-01-21 16:55:54 +00:00
Fix calling to_yaml on 1.9
This commit is contained in:
2
Rakefile
2
Rakefile
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user