-
Notifications
You must be signed in to change notification settings - Fork 8
/
ruby-magic.gemspec
65 lines (51 loc) · 1.89 KB
/
ruby-magic.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
signing_key = File.expand_path('~/.gem/kwilczynski-private.pem')
require 'yaml'
dependencies = YAML.load_file(File.join(File.dirname(__FILE__), "dependencies.yml"))
Gem::Specification.new do |s|
s.name = 'ruby-magic'
s.summary = 'File Magic in Ruby'
s.description = (<<-EOS).gsub(/^[ ]+/, '')
File Magic in Ruby.
Simple interface to libmagic for Ruby Programming Language.
EOS
s.post_install_message = (<<-EOS).gsub(/^[ ]+/, '')
Thank you for installing!
EOS
s.platform = Gem::Platform::RUBY
s.version = File.read('VERSION').strip
s.license = 'Apache-2.0'
s.author = 'Krzysztof Wilczyński'
s.email = '[email protected]'
s.homepage = 'https://github.com/kwilczynski/ruby-magic'
s.required_ruby_version = '>= 2.6.0'
s.metadata = {
'bug_tracker_uri' => 'https://github.com/kwilczynski/ruby-magic/issues',
'changelog_uri' => 'https://github.com/kwilczynski/ruby-magic/blob/master/CHANGELOG.md',
'documentation_uri' => 'https://www.rubydoc.info/gems/ruby-magic',
'source_code_uri' => 'https://github.com/kwilczynski/ruby-magic',
'rubygems_mfa_required' => 'true'
}
s.files = Dir['ext/**/*.{c,h,rb}'] +
Dir['lib/**/*.rb'] + %w(
AUTHORS
CHANGELOG.md
CONTRIBUTORS.md
COPYRIGHT
LICENSE
NOTICE
README.md
dependencies.yml
kwilczynski-public.pem
)
s.extra_rdoc_files = Dir['ext/**/*.c'] + %w(
README.md
)
s.rdoc_options = ['--main', 'README.md', '--line-numbers']
s.require_paths << 'lib'
s.extensions << 'ext/magic/extconf.rb'
if File.exist?(signing_key)
s.cert_chain = ['kwilczynski-public.pem']
s.signing_key = signing_key
end
s.add_runtime_dependency("mini_portile2", "~> 2.8") # keep version in sync with extconf.rb
end