Browse Source

Remove rake task check_parsing_by_psych (#35026).

Patch by Go MAEDA.


git-svn-id: http://svn.redmine.org/redmine/trunk@20940 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/5.0.0
Go MAEDA 3 years ago
parent
commit
6c5a16daf8
1 changed files with 0 additions and 27 deletions
  1. 0
    27
      lib/tasks/locales.rake

+ 0
- 27
lib/tasks/locales.rake View File

@@ -150,31 +150,4 @@ END_DESC
end
end
end

desc 'Check parsing yaml by psych library on Ruby 1.9.'

# On Fedora 12 and 13, if libyaml-devel is available,
# in case of installing by rvm,
# Ruby 1.9 default yaml library is psych.

task :check_parsing_by_psych do
begin
require 'psych'
parser = Psych::Parser.new
dir = ENV['DIR'] || './config/locales'
files = Dir.glob(File.join(dir,'*.yml'))
files.sort.each do |filename|
next if File.directory? filename
puts "parsing #{filename}..."
begin
parser.parse File.open(filename)
rescue => e1
puts(e1.message)
puts("")
end
end
rescue => e
puts(e.message)
end
end
end

Loading…
Cancel
Save