-
Notifications
You must be signed in to change notification settings - Fork 51
/
iodine.gemspec
50 lines (41 loc) · 2.41 KB
/
iodine.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
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'iodine/version'
Gem::Specification.new do |spec|
spec.name = 'iodine'
spec.version = Iodine::VERSION
spec.authors = ['Boaz Segev']
spec.email = ['[email protected]']
spec.summary = 'iodine - a fast HTTP / Websocket Server with Pub/Sub support, optimized for Ruby MRI on Linux / BSD / Windows'
spec.description = 'A fast HTTP / Websocket Server with built-in Pub/Sub support (with or without Redis), static file support and many other features, optimized for Ruby MRI on Linux / BSD / macOS / Windows'
spec.homepage = 'https://github.com/boazsegev/iodine'
spec.license = 'MIT'
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
# delete this section to allow pushing this gem to any host.
if spec.respond_to?(:metadata)
spec.metadata['allowed_push_host'] = 'https://rubygems.org'
else
raise 'RubyGems 2.0 or newer is required to protect against public gem pushes.'
end
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = %w(lib ext)
spec.extensions = %w(ext/iodine/extconf.rb)
spec.required_ruby_version = '>= 2.2.2' # Because earlier versions had been discontinued
spec.requirements << 'A Unix based system: Linux / macOS / BSD.'
spec.requirements << 'An updated C compiler.'
spec.requirements << 'Ruby >= 2.3.8 (Ruby EOL).'
spec.requirements << 'Ruby >= 2.5.0 recommended.'
spec.requirements << 'TLS requires OpenSSL >= 1.1.0.'
spec.requirements << 'Or Windows with Ruby >= 3.0.0 build with MingW and MingW as compiler.'
# spec.add_development_dependency 'bundler', '>= 1.10', '< 2.0'
spec.add_development_dependency 'rake', '>= 12.0', '< 14.0'
spec.add_development_dependency 'minitest', '>=5', '< 6.0'
spec.add_development_dependency 'rspec', '>=3.9.0', '< 4.0'
spec.add_development_dependency 'spec', '>=5.3.0', '< 6.0'
spec.add_development_dependency 'rake-compiler', '>= 1', '< 2.0'
spec.post_install_message = "Thank you for installing Iodine #{Iodine::VERSION}.\n" +
"Remember: if iodine supports your business, it's only fair to give value back (code contributions / donations)."
end