File: thin.gemspec

package info (click to toggle)
thin 2.0.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,356 kB
  • sloc: javascript: 6,108; ruby: 5,126; ansic: 1,738; sh: 21; makefile: 8
file content (39 lines) | stat: -rw-r--r-- 1,497 bytes parent folder | download
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
require_relative "lib/thin/version"

# Describe your gem and declare its dependencies:
Thin::GemSpec ||= Gem::Specification.new do |s|
  s.name                  = Thin::NAME
  s.version               = Thin::VERSION
  s.platform              = Thin.win? ? Gem::Platform::CURRENT : Gem::Platform::RUBY
  s.summary               = "A thin and fast web server"
  s.author                = "Marc-Andre Cournoyer"
  s.email                 = 'macournoyer@gmail.com'
  s.homepage              = 'https://github.com/macournoyer/thin'
  s.licenses              = ["GPL-2.0-or-later", "Ruby"]
  s.executables           = %w( thin )

  s.metadata = {
    'source_code_uri' => 'https://github.com/macournoyer/thin',
    'changelog_uri'   => 'https://github.com/macournoyer/thin/blob/master/CHANGELOG'
  }

  s.required_ruby_version = '>= 2.6'
  
  s.add_dependency        'rack',         '>= 1', '< 4'
  s.add_dependency        'eventmachine', '~> 1.0', '>= 1.0.4'
  s.add_dependency        'daemons',      '~> 1.0', '>= 1.0.9'  unless Thin.win?
  s.add_dependency        'logger' 

  s.files                 = %w(CHANGELOG README.md Rakefile) +
                            Dir["{bin,doc,example,lib}/**/*"] - Dir["lib/thin_parser.*"] + 
                            Dir["ext/**/*.{h,c,rb,rl}"]
  
  if Thin.win?
    s.files              += Dir["lib/*/thin_parser.*"]
  else
    s.extensions          = Dir["ext/**/extconf.rb"]
  end
  
  s.require_path          = "lib"
  s.bindir                = "bin"
end