Sha256: e75a93f9f26745ca5cde1a3b1381d7d11025376eec76cbc56f50c71d72486f7b
Contents?: true
Size: 560 Bytes
Versions: 19
Compression:
Stored size: 560 Bytes
Contents
desc 'Run features for all languages' task :i18n do dir = File.dirname(__FILE__) Dir["#{dir}/*"].each do |f| if File.directory?(f) lang = f[dir.length+1..-1] if supported?(lang) Dir.chdir(f) do rake("features") end else STDERR.puts %{ !!!!! !!!!! SKIPPING #{lang} (Still needs some work) !!!!! } end end end end def supported?(lang) if RUBY_VERSION =~ /^1\.9/ !%w{ar ko zh-CN}.index(lang) else !%w{ar ko}.index(lang) end end def rake(args) ruby($0, args) rescue nil end
Version data entries
19 entries across 19 versions & 3 rubygems