-
Notifications
You must be signed in to change notification settings - Fork 0
/
clocale.gemspec
41 lines (33 loc) · 1.5 KB
/
clocale.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
# frozen_string_literal: true
CLOCALE_VERSION = '0.0.4'
Gem::Specification.new do |spec|
is_tagged = ENV['TRAVIS_TAG'] == "v#{CLOCALE_VERSION}"
is_origin = ENV['TRAVIS_REPO_SLUG'] == 'avdv/clocale'
job_number = ENV['TRAVIS_JOB_NUMBER']
spec.name = 'clocale'
spec.version = if job_number && is_origin && !is_tagged
# Prereleasing on Travis CI
digits = CLOCALE_VERSION.to_s.split '.'
digits[-1] = digits[-1].to_s.succ
digits.join('.') + ".alpha.#{ENV['TRAVIS_JOB_NUMBER']}"
else
CLOCALE_VERSION
end
spec.authors = ['Claudio Bley']
spec.email = ['[email protected]']
spec.summary = 'A Ruby gem that wraps C locale functions.'
spec.homepage = 'https://github.com/avdv/clocale'
spec.license = 'MIT'
spec.required_ruby_version = '>= 2.5'
spec.extensions = %w[ext/clocale/extconf.rb]
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(/^.gitignore/)
end
spec.add_development_dependency 'codecov', '~> 0.6.0'
spec.add_development_dependency 'rake', '~> 13.1.0'
spec.add_development_dependency 'rake-compiler', '~> 1.2.0'
spec.add_development_dependency 'rspec', '~> 3.13.0'
spec.add_development_dependency 'rubocop', '~> 0.93.0'
spec.add_development_dependency 'rubocop-rspec', '~> 1.44.1'
spec.add_development_dependency 'rubygems-tasks', '~> 0.2.4'
end