summaryrefslogtreecommitdiff
path: root/ext/io/console/io-console.gemspec
blob: 0d6b7d64c1aab470b48299105f2758285c81eda5 (plain)
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
# -*- ruby -*-
_VERSION = "0.5.7"

Gem::Specification.new do |s|
  s.name = "io-console"
  s.version = _VERSION
  s.summary = "Console interface"
  s.email = "nobu@ruby-lang.org"
  s.description = "add console capabilities to IO instances."
  s.required_ruby_version = ">= 2.4.0"
  s.homepage = "https://github.com/ruby/io-console"
  s.metadata["source_code_url"] = s.homepage
  s.authors = ["Nobu Nakada"]
  s.require_path = %[lib]
  s.files = %w[
    LICENSE.txt
    README.md
    ext/io/console/console.c
    ext/io/console/extconf.rb
    ext/io/console/win32_vk.inc
    lib/io/console/size.rb
  ]
  s.extensions = %w[ext/io/console/extconf.rb]

  if Gem::Platform === s.platform and s.platform =~ 'java'
    s.files.delete_if {|f| f.start_with?("ext/")}
    s.extensions.clear
    s.require_paths.unshift("jruby")
    s.files.concat(%w[
      jruby/io/console.rb
      jruby/io/console/bsd_console.rb
      jruby/io/console/common.rb
      jruby/io/console/linux_console.rb
      jruby/io/console/native_console.rb
      jruby/io/console/stty_console.rb
      jruby/io/console/stub_console.rb
    ])
  end

  s.licenses = ["Ruby", "BSD-2-Clause"]
end