We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c8b0b6 commit 3bf1a7bCopy full SHA for 3bf1a7b
io-console.gemspec
@@ -21,5 +21,20 @@ Gem::Specification.new do |s|
21
lib/io/console/size.rb
22
]
23
s.extensions = %w[ext/io/console/extconf.rb]
24
+
25
+ if i = ARGV.index("--") and !(argv = ARGV[i+1..-1]).empty?
26
+ OptionParser.new(__FILE__) do |opt|
27
+ opt.on("--platform=PLATFORM") {|p| s.platform = p}
28
+ end.parse!(argv)
29
+ end
30
+ if Gem::Platform === s.platform and s.platform =~ 'java'
31
+ s.files.delete_if {|f| f.start_with?("ext/")}
32
+ s.extensions.clear
33
+ s.require_paths.unshift("jruby")
34
+ s.files.concat(%w[
35
+ jruby/io/console.rb
36
+ ])
37
38
39
s.license = "BSD-2-Clause"
40
end
jruby/io/console.rb
@@ -0,0 +1 @@
1
+require 'io/console/jruby'
0 commit comments