Sha256: 5a1611d2677af36e6a45d9fa298f4f658222a2c456752c9241f977a676bd22ac

Contents?: true

Size: 1.65 KB

Versions: 2

Compression:

Stored size: 1.65 KB

Contents

# frozen_string_literal: true

require File.expand_path("lib/nio/version", __dir__)

Gem::Specification.new do |spec|
  spec.authors       = ["Tony Arcieri"]
  spec.email         = ["bascule@gmail.com"]
  spec.homepage      = "https://github.com/socketry/nio4r"
  spec.license       = "MIT AND (BSD-2-Clause OR GPL-2.0-or-later)"
  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/main/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",
    "funding_uri"       => "https://github.com/sponsors/ioquatix/",
  }

  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

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
nio4r-2.7.0-java nio4r.gemspec
nio4r-2.7.0 nio4r.gemspec