Sha256: 25914bf1c2040a33b94b42de16606e9d1ff44b9c49e44287d19000caf0dd2706

Contents?: true

Size: 548 Bytes

Versions: 90

Compression:

Stored size: 548 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 examples_working?(lang)
        Dir.chdir(f) do
          rake("features")
        end
      else
        STDERR.puts %{
!!!!!
!!!!!
!!!!! SKIPPING #{lang} (The examples are out of date - please help update them)
!!!!!
!!!!!
}
      end
    end
  end
end

def examples_working?(lang)
  !%w{ro ko li lt}.index(lang)
end

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

Version data entries

90 entries across 90 versions & 10 rubygems

Version Path
aslakhellesoy-cucumber-0.2.2.2 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.3.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.3.2 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.3.3 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.3.4 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.2.3 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.0.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.0 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.1.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.10 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.11.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.11.200907091518 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.11.3 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.11.5 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.11.6 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.11 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.2 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.3.1 examples/i18n/Rakefile
aslakhellesoy-cucumber-0.3.3.2 examples/i18n/Rakefile