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

Version Path
aslakhellesoy-cucumber-0.1.100.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.1.100.2 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.1.100.3 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.1.100.4 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.1.100.5 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.1.99.22 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.1.99.23 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.0.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.0.2 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.0.3 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.0.4 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.0 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.2.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.2 examples/i18n/Rakefile
notch8-cucumber-0.1.99.23 examples/i18n/Rakefile
cucumber-0.2.2 examples/i18n/Rakefile
cucumber-0.2.0 examples/i18n/Rakefile
cucumber-0.2.1 examples/i18n/Rakefile