Sha256: f613acdfcba9ccbf071b39ba7437fdaf72e0f39b3a84a9753cc80163a8013636
Contents?: true
Size: 559 Bytes
Versions: 5
Compression:
Stored size: 559 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
5 entries across 5 versions & 1 rubygems