]> source.dussan.org Git - redmine.git/commitdiff
Remove rake task check_parsing_by_psych (#35026).
authorGo MAEDA <maeda@farend.jp>
Tue, 13 Apr 2021 07:30:15 +0000 (07:30 +0000)
committerGo MAEDA <maeda@farend.jp>
Tue, 13 Apr 2021 07:30:15 +0000 (07:30 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@20940 e93f8b46-1217-0410-a6f0-8f06a7374b81

lib/tasks/locales.rake

index 952f8f6de66facac5bd270fbe4d2f1eeb86dcfc6..8ca22435148a2fe8fa4545239a60624b9af9bd67 100644 (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