Skip to content

Commit 6cc0b64

Browse files
authored
Merge pull request #225 from bjfish/truffleruby-engine
Handle truffleruby RUBY_ENGINE in case statements
2 parents 55808c1 + 8d66de9 commit 6cc0b64

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

ext/oci8/extconf.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,8 @@ def fmt.%(x)
139139
so_basename += 'rbx'
140140
when 'jruby'
141141
raise "Ruby-oci8 doesn't support jruby because its C extension support is in development in jruby 1.6 and deprecated in jruby 1.7."
142+
when 'truffleruby'
143+
so_basename += 'truffleruby'
142144
else
143145
raise 'unsupported ruby engine: ' + RUBY_ENGINE
144146
end

lib/oci8.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,8 @@
6666
so_basename += 'rbx'
6767
when 'jruby'
6868
raise "Ruby-oci8 doesn't support jruby because its C extension support is in development in jruby 1.6 and deprecated in jruby 1.7."
69+
when 'truffleruby'
70+
so_basename += 'truffleruby'
6971
else
7072
raise 'unsupported ruby engine: ' + RUBY_ENGINE
7173
end

0 commit comments

Comments
 (0)