Sha256: 0968cfde133995bedbc6ab0047e46f7ba538e937e8123f2ea7c43a1c36650aca

Contents?: true

Size: 565 Bytes

Versions: 21

Compression:

Stored size: 565 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 ja ko zh-CN}.index(lang)
  else
    !%w{ar ja ko}.index(lang)
  end
end

def rake(args)
  ruby($0, args) rescue nil
end

Version data entries

21 entries across 21 versions & 2 rubygems

Version Path
kosmas58-cucumber-0.1.99.21 examples/i18n/Rakefile