forked from socketry/nio4r
-
Notifications
You must be signed in to change notification settings - Fork 0
/
nio4r.gemspec
42 lines (35 loc) · 1.54 KB
/
nio4r.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
# frozen_string_literal: true
require File.expand_path("lib/nio/version", __dir__)
Gem::Specification.new do |spec|
spec.authors = ["Tony Arcieri"]
spec.email = ["[email protected]"]
spec.homepage = "https://github.com/socketry/nio4r"
spec.license = "MIT"
spec.summary = "New IO for Ruby"
spec.description = <<-DESCRIPTION.strip.gsub(/\s+/, " ")
Cross-platform asynchronous I/O primitives for scalable network clients
and servers. Inspired by the Java NIO API, but simplified for ease-of-use.
DESCRIPTION
spec.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) }
spec.files = `git ls-files`.split("\n")
spec.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
spec.name = "nio4r"
spec.require_paths = ["lib"]
spec.version = NIO::VERSION
spec.metadata = {
"bug_tracker_uri" => "https://github.com/socketry/nio4r/issues",
"changelog_uri" => "https://github.com/socketry/nio4r/blob/master/CHANGES.md",
"documentation_uri" => "https://www.rubydoc.info/gems/nio4r/#{spec.version}",
"source_code_uri" => "https://github.com/socketry/nio4r/tree/v#{spec.version}",
"wiki_uri" => "https://github.com/socketry/nio4r/wiki"
}
spec.required_ruby_version = ">= 2.4"
if defined? JRUBY_VERSION
spec.files << "lib/nio4r_ext.jar"
spec.platform = "java"
else
spec.extensions = ["ext/nio4r/extconf.rb"]
end
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
end