-
Notifications
You must be signed in to change notification settings - Fork 2
/
str_metrics.gemspec
44 lines (35 loc) · 2.01 KB
/
str_metrics.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
# frozen_string_literal: true
require_relative 'lib/str_metrics/version'
Gem::Specification.new do |spec|
spec.name = 'str_metrics'
spec.version = StrMetrics::VERSION
spec.authors = ['Anirban Mukhopadhyay']
spec.email = ['anirban.mukhop@gmail.com']
spec.summary = 'Ruby gem providing native implementations of various string metrics'
spec.description = [
'Ruby gem (native extension in Rust) providing implementations of various string metrics.',
'Current metrics supported are: Sørensen–Dice, Levenshtein, Damerau–Levenshtein, Jaro & Jaro–Winkler.',
'Strings that are UTF-8 encodable (convertible to UTF-8 representation) are supported.',
'All comparison of strings is done at the grapheme cluster level as described by',
'Unicode Standard Annex #29 (https://www.unicode.org/reports/tr29/#Grapheme_Cluster_Boundaries);',
'this may be different from many gems that calculate string metrics.'
].join(' ')
spec.homepage = 'https://github.com/anirbanmu/str_metrics'
spec.license = 'MIT'
spec.required_ruby_version = Gem::Requirement.new('>= 2.3.0')
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['bug_tracker_uri'] = 'https://github.com/anirbanmu/str_metrics/issues'
spec.metadata['source_code_uri'] = 'https://github.com/anirbanmu/str_metrics'
spec.metadata['changelog_uri'] = "https://github.com/anirbanmu/str_metrics/blob/v#{spec.version}/CHANGELOG.md"
spec.files = Dir['lib/**/*.rb', 'src/**/*.rs', 'Cargo.toml', 'extconf.rb', 'LICENSE', 'README.md']
spec.extensions = %w[extconf.rb]
spec.add_runtime_dependency 'ffi'
spec.add_development_dependency 'pry'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'rspec'
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'rubocop-performance'
spec.add_development_dependency 'rubocop-rspec'
spec.metadata['rubygems_mfa_required'] = 'true'
end