<commit_before># frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'i18n/tasks/version'

Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
  s.name          = 'i18n-tasks'
  s.version       = I18n::Tasks::VERSION
  s.authors       = ['glebm']
  s.email         = ['<EMAIL>']
  s.license       = 'MIT'
  s.summary       = 'Manage localization and translation with the awesome power of static analysis'
  s.description   = <<-TEXT
i18n-tasks helps you find and manage missing and unused translations.

It analyses code statically for key usages, such as `I18n.t('some.key')`, in order to report keys that are missing or unused,
pre-fill missing keys (optionally from Google Translate), and remove unused keys.
TEXT
  s.post_install_message = <<-TEXT
# Install default configuration:
cp $(i18n-tasks gem-path)/templates/config/i18n-tasks.yml config/
# Add an RSpec for missing and unused keys:
cp $(i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/
TEXT
  s.homepage = 'https://github.com/glebm/i18n-tasks'
  s.metadata = { 'issue_tracker' => 'https://github.com/glebm/i18n-tasks' } if s.respond_to?(:metadata=)
  # rubocop:disable Gemspec/RequiredRubyVersion
  s.required_ruby_version = '~> 2.1' if s.respond_to?(:required_ruby_version=)
  # rubocop:enable Gemspec/RequiredRubyVersion

  s.files = `git ls-files`.split($/)
  s.files -= s.files.grep(%r{^(doc/|\.|spec/)}) + %w[CHANGES.md config/i18n-tasks.yml Gemfile]
  s.executables   = s.files.grep(%r{^bin/}) { |f| File.basename(f) } - %w[i18n-tasks.cmd]
  s.test_files    = s.files.grep(%r{^(test|spec|features)/})
  s.require_paths = ['lib']

  s.add_dependency 'activesupport', '>= 4.0.2'
  s.add_dependency 'ast', '>= 2.1.0'
  s.add_dependency 'easy_translate', '>= 0.5.1'
  s.add_dependency 'erubi'
  s.add_dependency 'highline', '>= 1.7.3'
  s.add_dependency 'i18n'
  s.add_dependency 'parser', '>= 2.2.3.0'
  s.add_dependency 'rainbow', '~> 2.2'
  s.add_dependency 'terminal-table', '>= 1.5.1'
  s.add_development_dependency 'axlsx', '~> 2.0'
  s.add_development_dependency 'bundler', '~> 1.3'
  s.add_development_dependency 'rake'
  s.add_development_dependency 'rspec', '~> 3.3'
  s.add_development_dependency 'rubocop'
  s.add_development_dependency 'simplecov'
  s.add_development_dependency 'yard'
end<commit_msg>Lock simplecov to work around CodeClimate issue<commit_after># frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'i18n/tasks/version'

Gem::Specification.new do |s| # rubocop:disable Metrics/BlockLength
  s.name          = 'i18n-tasks'
  s.version       = I18n::Tasks::VERSION
  s.authors       = ['glebm']
  s.email         = ['<EMAIL>']
  s.license       = 'MIT'
  s.summary       = 'Manage localization and translation with the awesome power of static analysis'
  s.description   = <<-TEXT
i18n-tasks helps you find and manage missing and unused translations.

It analyses code statically for key usages, such as `I18n.t('some.key')`, in order to report keys that are missing or unused,
pre-fill missing keys (optionally from Google Translate), and remove unused keys.
TEXT
  s.post_install_message = <<-TEXT
# Install default configuration:
cp $(i18n-tasks gem-path)/templates/config/i18n-tasks.yml config/
# Add an RSpec for missing and unused keys:
cp $(i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/
TEXT
  s.homepage = 'https://github.com/glebm/i18n-tasks'
  s.metadata = { 'issue_tracker' => 'https://github.com/glebm/i18n-tasks' } if s.respond_to?(:metadata=)
  # rubocop:disable Gemspec/RequiredRubyVersion
  s.required_ruby_version = '~> 2.1' if s.respond_to?(:required_ruby_version=)
  # rubocop:enable Gemspec/RequiredRubyVersion

  s.files = `git ls-files`.split($/)
  s.files -= s.files.grep(%r{^(doc/|\.|spec/)}) + %w[CHANGES.md config/i18n-tasks.yml Gemfile]
  s.executables   = s.files.grep(%r{^bin/}) { |f| File.basename(f) } - %w[i18n-tasks.cmd]
  s.test_files    = s.files.grep(%r{^(test|spec|features)/})
  s.require_paths = ['lib']

  s.add_dependency 'activesupport', '>= 4.0.2'
  s.add_dependency 'ast', '>= 2.1.0'
  s.add_dependency 'easy_translate', '>= 0.5.1'
  s.add_dependency 'erubi'
  s.add_dependency 'highline', '>= 1.7.3'
  s.add_dependency 'i18n'
  s.add_dependency 'parser', '>= 2.2.3.0'
  s.add_dependency 'rainbow', '~> 2.2'
  s.add_dependency 'terminal-table', '>= 1.5.1'
  s.add_development_dependency 'axlsx', '~> 2.0'
  s.add_development_dependency 'bundler', '~> 1.3'
  s.add_development_dependency 'rake'
  s.add_development_dependency 'rspec', '~> 3.3'
  s.add_development_dependency 'rubocop'
  # Newer versions of SimpleCov do not work with the codeclimate-test-reporter gem, see:
  # https://github.com/codeclimate/ruby-test-reporter/pull/181
  s.add_development_dependency 'simplecov', '~> 0.13.0'
  s.add_development_dependency 'yard'
end
{'fraction_non_alphanumeric': 0.15469724401528867, 'fraction_numerical': 0.024341178837256085, 'mean_word_length': 4.131062951496388, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 30, 'https://': 5, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4467730', 'n_tokens_mistral': 1968, 'n_tokens_neox': 1834, 'n_words': 377}