Sha256: 1550cc37e033e1d0a94638f4670ddf96c45c2e2d4ab9d7433f04ffe8aa026cc5
Contents?: true
Size: 563 Bytes
Versions: 22
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true namespace :decidim do desc "Allows a decidim installation to check whether its locales are complete" task :check_locales do env = { "BUNDLE_GEMFILE" => File.expand_path("Gemfile"), "ENFORCED_LOCALES" => Decidim.available_locales.join(",") } Bundler.definition.specs.each do |spec| next unless spec.name.match?(/decidim-/) Dir.chdir(spec.full_gem_path) do Bundler.with_clean_env do system(env, "bundle exec rspec spec/i18n_spec.rb") end end end end end
Version data entries
22 entries across 22 versions & 2 rubygems
Version | Path |
---|---|
decidim-dev-0.2.0 | lib/tasks/locale_checker.rake |
decidim-0.2.0 | decidim-dev/lib/tasks/locale_checker.rake |