This repository has been archived by the owner on Sep 9, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy patheqq.gemspec
51 lines (39 loc) · 1.49 KB
/
eqq.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
# coding: us-ascii
# frozen_string_literal: true
lib_name = 'eqq'
require_relative 'lib/eqq/version'
repository_url = "https://github.com/kachick/#{lib_name}"
Gem::Specification.new do |gem|
gem.summary = %q{Pattern objects builder}
gem.description = <<-'DESCRIPTION'
Pattern objects builder.
All products can be used as `pattern === something`.
All products can be mixed with other products as a parts.
Reuse as you wish!
DESCRIPTION
gem.homepage = repository_url
gem.license = 'MIT'
gem.name = lib_name
gem.version = Eqq::VERSION
gem.metadata = {
'homepage_uri' => repository_url,
'source_code_uri' => repository_url,
'bug_tracker_uri' => "#{repository_url}/issues",
'rubygems_mfa_required' => 'true'
}
gem.required_ruby_version = Gem::Requirement.new('>= 3.2')
# common
gem.authors = ['Kenichi Kamiya']
gem.email = ['kachick1+ruby@gmail.com']
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 < 2
raise "obvious mistaken in packaging files, looks shortage: #{files.inspect}"
end
end
gem.files = files
gem.require_paths = ['lib']
end