forked from glebm/i18n-tasks
-
Notifications
You must be signed in to change notification settings - Fork 0
/
i18n-tasks.gemspec
64 lines (58 loc) · 2.67 KB
/
i18n-tasks.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# frozen_string_literal: true
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'i18n/tasks/version'
Gem::Specification.new do |s|
s.name = 'i18n-tasks'
s.version = I18n::Tasks::VERSION
s.authors = ['glebm']
s.email = ['glex.spb@gmail.com']
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 $(bundle exec i18n-tasks gem-path)/templates/config/i18n-tasks.yml config/
# Add an RSpec for missing and unused keys:
cp $(bundle exec i18n-tasks gem-path)/templates/rspec/i18n_spec.rb spec/
# Or for minitest:
cp $(bundle exec i18n-tasks gem-path)/templates/minitest/i18n_test.rb test/
TEXT
s.homepage = 'https://github.com/glebm/i18n-tasks'
s.metadata = {
'issue_tracker' => 'https://github.com/glebm/i18n-tasks',
'rubygems_mfa_required' => 'true'
}
s.required_ruby_version = '>= 2.6', '< 4.0'
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.require_paths = ['lib']
s.add_dependency 'activesupport', '>= 4.0.2'
s.add_dependency 'ast', '>= 2.1.0'
s.add_dependency 'better_html', '>= 1.0', '< 3.0'
s.add_dependency 'erubi'
s.add_dependency 'highline', '>= 2.0.0'
s.add_dependency 'i18n'
s.add_dependency 'parser', '>= 3.2.2.1'
s.add_dependency 'rails-i18n'
s.add_dependency 'rainbow', '>= 2.2.2', '< 4.0'
s.add_dependency 'terminal-table', '>= 1.5.1'
s.add_development_dependency 'bundler', '~> 2.0', '>= 2.0.1'
s.add_development_dependency 'overcommit', '~> 0.58.0'
s.add_development_dependency 'rake'
s.add_development_dependency 'rspec', '~> 3.3'
s.add_development_dependency 'rubocop', '~> 1.50.1'
s.add_development_dependency 'rubocop-rake', '~> 0.6.0'
s.add_development_dependency 'rubocop-rspec', '~> 2.19.0'
s.add_development_dependency 'simplecov'
s.add_development_dependency 'yard'
# Translation backends
s.add_development_dependency 'deepl-rb', '>= 2.1.0'
s.add_development_dependency 'easy_translate', '>= 0.5.1' # Google Translate
s.add_development_dependency 'yandex-translator', '>= 0.3.3'
end