-
Notifications
You must be signed in to change notification settings - Fork 2
/
ruby-ulid.gemspec
45 lines (36 loc) · 1.42 KB
/
ruby-ulid.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
# coding: us-ascii
# frozen_string_literal: true
lib_name = 'ruby-ulid'
require_relative('lib/ulid/version')
repository_url = "https://github.com/kachick/#{lib_name}"
Gem::Specification.new do |gem|
gem.summary = %q{ULID manipulation library}
gem.description = <<-'DESCRIPTION'
generator, optional monotonicity, parser and tools for ULID (RBS included)
DESCRIPTION
gem.homepage = repository_url
gem.license = 'MIT'
gem.name = lib_name
gem.version = ULID::VERSION
gem.metadata = {
'documentation_uri' => 'https://kachick.github.io/ruby-ulid/',
'source_code_uri' => repository_url,
'bug_tracker_uri' => "#{repository_url}/issues",
'rubygems_mfa_required' => 'true'
}
gem.required_ruby_version = Gem::Requirement.new('>= 3.3')
# common
gem.authors = ['Kenichi Kamiya']
gem.email = ['[email protected]']
git_managed_files = `git ls-files`.lines.map(&:chomp)
might_be_parsing_by_tool_as_dependabot = git_managed_files.empty?
base_files = Dir['README*', '*LICENSE*', 'lib/**/*', 'sig/**/*'].uniq
files = might_be_parsing_by_tool_as_dependabot ? base_files : (base_files & git_managed_files)
unless might_be_parsing_by_tool_as_dependabot
if files.grep(%r!\A(?:lib|sig)/!).size < 5
raise("obvious mistaken in packaging files, looks shortage: #{files.inspect}")
end
end
gem.files = files
gem.require_paths = ['lib']
end