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

Version Path
kosmas58-cucumber-0.1.100.5 examples/i18n/Rakefile
kosmas58-cucumber-0.1.99.23 examples/i18n/Rakefile
kosmas58-cucumber-0.2.0.1 examples/i18n/Rakefile
kosmas58-cucumber-0.2.0 examples/i18n/Rakefile
kosmas58-cucumber-0.2.2.1 examples/i18n/Rakefile