This repository was archived by the owner on May 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmy_new_library.gemspec
More file actions
46 lines (37 loc) · 1.43 KB
/
my_new_library.gemspec
File metadata and controls
46 lines (37 loc) · 1.43 KB
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
# coding: us-ascii
# frozen_string_literal: true
lib_name = 'my_new_library'
require_relative('lib/my_new_library/version')
repository_url = "https://github.com/kachick/#{lib_name}"
Gem::Specification.new do |gem|
gem.summary = %q{my_new_library}
gem.description = <<-'DESCRIPTION'
my_new_library
DESCRIPTION
gem.homepage = repository_url
gem.license = 'MIT'
gem.name = lib_name
gem.version = MyNewLibrary::VERSION
gem.metadata = {
'documentation_uri' => 'https://kachick.github.io/my_new_library/',
'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/**/*'].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)/!).size < 2
raise("obvious mistaken in packaging files, looks shortage: #{files.inspect}")
end
end
gem.files = files
gem.require_paths = ['lib']
end