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.5.1 lib/tasks/locale_checker.rake
decidim-0.5.1 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.5.0 lib/tasks/locale_checker.rake
decidim-0.5.0 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.4.4 lib/tasks/locale_checker.rake
decidim-0.4.4 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.4.1 lib/tasks/locale_checker.rake
decidim-dev-0.4.3 lib/tasks/locale_checker.rake
decidim-0.4.3 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.4.2 lib/tasks/locale_checker.rake
decidim-0.4.2 decidim-dev/lib/tasks/locale_checker.rake
decidim-0.4.1 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.4.0 lib/tasks/locale_checker.rake
decidim-0.4.0 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.3.2 lib/tasks/locale_checker.rake
decidim-0.3.2 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.3.1 lib/tasks/locale_checker.rake
decidim-0.3.1 decidim-dev/lib/tasks/locale_checker.rake
decidim-dev-0.3.0 lib/tasks/locale_checker.rake
decidim-0.3.0 decidim-dev/lib/tasks/locale_checker.rake