-
Notifications
You must be signed in to change notification settings - Fork 2
/
ruby-fizzbuzz.gemspec
56 lines (45 loc) · 1.75 KB
/
ruby-fizzbuzz.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
signing_key = File.expand_path('~/.gem/kwilczynski-private.pem')
Gem::Specification.new do |s|
s.name = 'ruby-fizzbuzz'
s.summary = 'Yet another FizzBuzz in Ruby!'
s.description = (<<-EOS).gsub(/^[ ]+/, '')
Yet another FizzBuzz in Ruby!
Provides simple and fast solution to a popular FizzBuzz problem for Ruby.
Written in C as an example of using Ruby's C API - with the support for
arbitrary large numeric values.
EOS
s.post_install_message = (<<-EOS).gsub(/^[ ]+/, '')
Thank you for installing! Happy FizzBuzz!
EOS
s.platform = Gem::Platform::RUBY
s.version = File.read('VERSION').strip
s.license = 'Apache-2.0'
s.author = 'Krzysztof Wilczyński'
s.email = 'kw@linux.com'
s.homepage = 'https://github.com/kwilczynski/ruby-fizzbuzz'
s.required_ruby_version = '>= 2.5.0'
s.rubygems_version = '>= 3.1.0'
s.metadata = {
'bug_tracker_uri' => 'https://github.com/kwilczynski/ruby-fizzbuzz/issues',
'source_code_uri' => 'https://github.com/kwilczynski/ruby-fizzbuzz',
'changelog_uri' => 'https://github.com/kwilczynski/ruby-fizzbuzz/blob/master/CHANGELOG.md',
'documentation_uri' => 'https://www.rubydoc.info/gems/ruby-fizzbuzz',
'wiki_uri' => 'https://github.com/kwilczynski/ruby-fizzbuzz/wiki'
}
s.files = Dir['ext/**/*.{c,h,rb}'] +
Dir['lib/**/*.rb'] + %w(
AUTHORS
CHANGELOG.md
COPYRIGHT
LICENSE
NOTICE
README.md
VERSION
kwilczynski-public.pem
)
s.executables << 'fizzbuzz'
s.require_paths << 'lib'
s.extensions << 'ext/fizzbuzz/extconf.rb'
s.cert_chain = [ 'kwilczynski-public.pem' ]
s.signing_key = signing_key if File.exist?(signing_key)
end