summaryrefslogtreecommitdiffstats
path: root/lib/tasks
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2021-04-13 07:30:15 +0000
committerGo MAEDA <maeda@farend.jp>2021-04-13 07:30:15 +0000
commit6c5a16daf858149933e161595cf98534ea2e445b (patch)
treefbda99bbecb0311b1515f50c0cb3f44d05614448 /lib/tasks
parent53b34f63c7c7b683dd060d299b9721eb2e2a7a90 (diff)
downloadredmine-6c5a16daf858149933e161595cf98534ea2e445b.tar.gz
redmine-6c5a16daf858149933e161595cf98534ea2e445b.zip
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
Diffstat (limited to 'lib/tasks')
-rw-r--r--lib/tasks/locales.rake27
1 files changed, 0 insertions, 27 deletions
diff --git a/lib/tasks/locales.rake b/lib/tasks/locales.rake
index 952f8f6de..8ca224351 100644
--- a/lib/tasks/locales.rake
+++ b/lib/tasks/locales.rake
@@ -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